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_idintegerYesUnique identifier of the order to cancel (path parameter)

Request Example

REQUESTJSON
DELETE /orders/12345

No request body required.

Response Codes

Code Status Description
200SuccessOrder cancelled successfully
400Bad RequestInvalid parameters or order cannot be cancelled
401UnauthorizedInvalid or missing API key
403ForbiddenCustomer doesn't own this order
404Not FoundOrder not found
500Internal Server ErrorServer error occurred

Response Format

Field Type Description
successbooleanWhether the cancellation request was successful
order_idintegerID of the order
statusstringCancellation request status (e.g., "Pending")
messagestringCancellation 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 Documentation

Important 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