Skip to content

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

@sofigern

Description

@sofigern

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions