What Is This API?
You can use this API to cancel an Express order. Just submit the required details in the specified request format. Once received, the order is flagged as cancelled in the dispatch engine and the courier rider is immediately unassigned.
Cancellation Window Cut-off Policy
Note: You must cancel BEFORE the shipment reaches 'Picked Up' status. After the rider has arrived at the origin and physically collected the parcel (status changed to Picked Up), the order can no longer be cancelled via API. Any mid-transit cancellation must be handled manually via the Jeebly Service Excellence team.
Authentication Headers
Include the two secret credential headers in every cancellation call along with
Content-Type: application/json:
Request Body & Parameters
The request body requires a single identifier parameter, order_id. Note that only one
express delivery consignment can be cancelled per request:
Sample Requests
Choose your environment below to view complete sample requests matching the official specification:
curl --location 'https://demo.jeebly.com/customer/cancel_express_shipment' \
--header 'X-API-KEY: YOUR_API_KEY' \
--header 'client_key: YOUR_CLIENT_KEY' \
--header 'Content-Type: application/json' \
--data '{
"order_id": "E240524103039106"
}'
Success Response (200 OK)
When the cancellation is accepted, the server returns an HTTP 200 OK response indicating
the shipment has been cancelled:
{
"success": "true",
"message": "Shipment cancelled successfully"
}
Express Consignment State Transition
Error Responses (400 Bad Request)
The cancellation endpoint rejects orders that have already progressed past pickup or have previously been cancelled. Filter through the potential 400 responses below:
{
"success": "false",
"message": "Shipment already cancelled"
}
{
"success": "false",
"message": "Shipment cannot be cancelled."
}
{
"success": "false",
"message": "Invalid JSON format"
}
{
"success": "false",
"message": "Invalid Customer Key"
}
{
"success": "false",
"message": "Invalid API Token"
}
Troubleshooting & Resolution Guide
Consult this official resolution guide to handle cancellation rejections and exception flows gracefully:
Operational Rules & Best Practices
Pre-Pickup Cancellation Window
The express cancellation API is strictly active while the order is in Dispatched or Arrived at Pickup status. Once the rider scans the parcel barcode and triggers Picked Up, automated API cancellation is permanently disabled.
Immediate Rider Re-allocation
Submitting a successful cancellation request immediately updates the dispatch system. The assigned courier rider is notified on their mobile terminal and released back to take other urgent shipments across Dubai.
Express Delivery Lifecycle Workflow
The complete on-demand express integration workflow consists of three primary endpoints designed for high-speed, direct fulfillment:
Create Express Order
Submit pickup and delivery parameters to book the consignment and receive your
AWB No.
Track Express Order
Monitor live courier location, pickup confirmation, and delivery milestones using the order ID.
Cancel Express Order
Cancel an express shipment before the courier arrives at the pickup origin to release the rider.
ON THIS PAGE
Need to cancel an order already marked as 'Picked Up'? Contact our 24/7 hotline.