Direct API
Cancel Order
Cancel an existing shipment order and process refund
DELETE
/orders/{order_id}
Cancel an existing shipment order. Refunds are automatically processed to your wallet.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| order_id | integer | Yes | Unique identifier of the order to cancel (path parameter) |
Request Example
REQUESTJSON
DELETE /orders/12345
No request body required.Response Codes
| Code | Status | Description |
|---|---|---|
| 200 | Success | Order cancelled successfully |
| 400 | Bad Request | Invalid parameters or order cannot be cancelled |
| 401 | Unauthorized | Invalid or missing API key |
| 403 | Forbidden | Customer doesn't own this order |
| 404 | Not Found | Order not found |
| 500 | Internal Server Error | Server error occurred |
Response Format
| Field | Type | Description |
|---|---|---|
| success | boolean | Whether the cancellation request was successful |
| order_id | integer | ID of the order |
| status | string | Cancellation request status (e.g., "Pending") |
| message | string | Cancellation confirmation message |
Response Example
RESPONSEJSON
{
"success": true,
"order_id": 12345,
"status": "Pending",
"message": "Cancellation request has been submitted and is pending approval. Please check back later for the status of your request."
}Complete API Reference
For interactive testing and additional technical details, visit our complete Swagger documentation.
View in Swagger DocumentationImportant Notes
- • Orders can only be cancelled before they are picked up by the carrier
- • Refunds are automatically processed to your eAWB wallet
- • Cancellation may not be available for all order types or statuses
- • Only shipment orders can be cancelled via the API

