Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No source of truth for the cancelation_reason parameter in orders/set_status #12

Open
sofigern opened this issue Dec 23, 2024 · 0 comments

Comments

@sofigern
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant