v1

latestOpenAPI 3.0.3Apache 2.02026-07-2478177179.1 KB
Order API Order Platform Webhooks

Order Rejected

The Order Reject endpoint enables the order platform to mark an order as rejected. This action can be triggered by various scenarios, such as when a restaurant manually rejects an order, the system automatically rejects an order due to mapping issues, or if items in the order are out of stock. This endpoint ensures that rejected orders are properly recorded and communicated to both the restaurant and the customer.

post/orders/{id}/reject

Path parameters

idstring required

Unique identifier representing an order on the order platform

Request body

reason'OUT_OF_ITEMS' | 'INVALID_ITEMS' | 'OTHER' required

Order cancellation reasons

notestring

Reason or note for rejection

timestampstring date-time required

Order rejection time

Response

Successful response OK