Booking & couriers
POST
/v1/shipping/cancelCancel a shipment
Cancels with the courier and releases the order number for reuse. refunded reports what went back to your wallet.
Request body
| Field | Type | Description |
|---|---|---|
| order_idrequired | integer | The order. |
| logistic_idrequired | integer | The courier it was booked with. |
Responses
| Status | Meaning |
|---|---|
| 200 | {status, awb, forward_id, refunded, order_id, mode}. |
403cannot cancel for another sender | Not your order. |
422cancel_failed | The courier refused the cancellation. |
503cancel_unavailable | The courier is unreachable. Retry. |