There is no way to get the list of allowed cancelation statuses when using API.
In case of sending request like this:
curl -X 'POST' \
'https://my.prom.ua/api/v1/orders/set_status' \
-H 'accept: application/json' \
-H 'Authorization: Bearer {{token}}' \
-H 'Content-Type: application/json' \
-d '{
"status": "canceled",
"ids": [
{{order_id}}
],
"cancellation_reason": "other",
"cancellation_text": "Повернено відправнику"
}'
The response is:
{
"error": "Incorrect cancellation_reason value"
}
And I see no endpoint or documentation to get the list of allowed cancelation reasons.