post https://yourwebhook.com/cancel_job
A merchant or ordering channel may cancel the order, which in turn will cancel the delivery job
Cancel a delivery job after creation at the partner. This can happen from the merchant side, if dispatch of all the orders is impossible or the customer no longer wants the delivery. You will receive the following request from Deliverect.
The cancel webhook needs to be standardized i.e. the same URL should be used for every customer install.
{
"jobId": "5c8******************0d1",
"account": "5be******************e57",
"pickupLocation": {
"location": "5ea******************4a9"
},
"deliveryLocations": [
{
"orderId": "5f4******************2af",
"channelOrderDisplayId": "MT4YVTPL",
"deliveryId": "ABC567"
}
],
"courier": {
"courierId": "D1234"
}
}
We expect the following response to confirm the cancellation is processed on your side.
{
"status": "confirmed",
"reason": "",
"price": 0
}