POST https://webhook.example.com

A merchant or ordering channel may cancel the order, which in turn will cancel the delivery job

application/json

Body

Responses

  • 200 application/json

    200

  • 400 application/json

    400

POST /dispatch/cancel_job
Request example
{
  "jobId": "5c8******************0d1",
  "account": "5be******************e57",
  "pickupLocation": {
    "location": "5ea******************4a9"
  },
  "deliveryLocations": [
    {
      "orderId": "5f4******************2af",
      "channelOrderDisplayId": "MT4YVTPL",
      "deliveryId": "ABC567"
    }
  ],
  "courier": {
    "courierId": "D1234"
  }
}
Response examples (200)
{
  "status": "confirmed",
  "reason": "",
  "price": 0
}
Response examples (400)
{
  "error": "Bad Request"
}