Cancel orders
PATCH/api/orders
Cancels one or more orders (up to 50) in a single request.
The overall response returns 200 if the request was processed; the result of each order must be checked in data[].
Possible codes in each data[] item: 200 (cancelled), an error code with the reason if the order cannot be cancelled (for example, because of its current status), 422 if the courier did not confirm the cancellation, and 500 for an internal error.
Request
Responses
- 200
- 400
- 401
- 500
Cancellation processed; check the result of each order in data[]
Invalid parameters. Possible messages: orderIds debe ser un UUID o un arreglo de UUIDs, orderIds no puede estar vacío,
Máximo 50 órdenes por operación, Todos los orderIds deben ser UUIDs válidos, reason es requerido y debe ser una cadena válida,
reason no puede exceder 255 caracteres.
The token is missing, expired (it lasts 15 minutes) or invalid. Log in again to get a new one.
Internal error while processing the cancellation, or the body is not valid JSON