Skip to content

Cancelled (cancelled)

POST https://my-api.example.com/first-delivery/webhook

status_v3: cancelled · status: Cancelled

The order was cancelled. Terminal for that delivery lifecycle.

The payload is intentionally minimal: orderNumber, ETAs, and driver fields may be absent. Common fleet fields remain present but nullable.

  • User cancellation may include a user block (id, name, username).
  • DSP cancellation can include provider-specific reason and details values. Do not build a closed enum from these raw values.

If your 2xx response body includes cancelConfirmationId, First stores it on the order. Respond quickly; perform business processing asynchronously.

{
"orderId": "5b1f3c20-0e4a-11f1-8c2d-3f9a7e6b1d42",
"externalId": "ABC-123456",
"status": "Cancelled",
"status_v3": "cancelled",
"cancel_details": {
"user": {
"id": "9c4e2b7a-3f1d-4a8e-b6c5-2d7f9e1a0b34",
"name": "Alex",
"username": "alex@merchant.example.com"
}
},
"trackerLink": "https://trackdelivery.io/?orderId=5b1f3c20-0e4a-11f1-8c2d-3f9a7e6b1d42",
"dspTrackerLink": "https://track.example-dsp.com/d/8f2c41",
"trackerLinkFleet": "https://track.example-dsp.com/d/8f2c41",
"fleetName": "Example Fleet"
}
Terminal window
curl --request POST 'https://my-api.example.com/first-delivery/webhook' \
--header 'Content-Type: application/json' \
--data '{
"orderId": "5b1f3c20-0e4a-11f1-8c2d-3f9a7e6b1d42",
"externalId": "ABC-123456",
"status": "Cancelled",
"status_v3": "cancelled",
"cancel_details": {
"user": {
"id": "9c4e2b7a-3f1d-4a8e-b6c5-2d7f9e1a0b34",
"name": "Alex",
"username": "alex@merchant.example.com"
}
},
"trackerLink": "https://trackdelivery.io/?orderId=5b1f3c20-0e4a-11f1-8c2d-3f9a7e6b1d42",
"dspTrackerLink": "https://track.example-dsp.com/d/8f2c41",
"trackerLinkFleet": "https://track.example-dsp.com/d/8f2c41",
"fleetName": "Example Fleet"
}'
{
"cancelConfirmationId": "CXL-98765"
}