v1

latestOpenAPI 3.0.02026-07-1498671635.3 KB
Order Acceptance Webhooks
publicly-accessible

Order cancelled

This webhook will be invoked whenever the order was cancelled.

post/order-cancelled

Request body

Eventstring
OrderIdstring
Reason'cust_cancelled_changed_mind' | 'cust_cancelled_delivery_too_long' | 'cust_cancelled_made_mistake' | 'cust_cancelled_other' | 'delivery_partner_cancelled' | 'rest_cancelled_customer_absent' | 'rest_cancelled_customer_requested' | 'rest_cancelled_declined' | 'rest_cancelled_drivers_unavailable' | 'rest_cancelled_fake_order' | 'rest_cancelled_other' | 'rest_cancelled_out_of_stock' | 'rest_cancelled_too_busy' | 'system_cancelled_other' | 'system_cancelled_test_order'

The reason the order was cancelled.

Example request

{
  "Event": "OrderCancelled",
  "OrderId": "ijdhpy7bdusgtc28bapspa",
  "Reason": "system_cancelled_other"
}

Response

Respond with a 200 status code to indicate that you have received the notification.