v1

latestOpenAPI 3.0.3Apache 2.02026-07-2478177179.1 KB
Order Status Update API Grubtech Endpoints

Reject Order

The Reject Order endpoint is part of the Order Status Update API and allows the user to mark a specific order as rejected. It is generally used when an order cannot be fulfilled due to various reasons (such as unavailability of items, out-of-service areas, or other constraints).

post/{service-id}/orders/{id}/reject

Path parameters

service-idstring required

Integration service id. This will be provided by Grubtech

idstring required

Order id provided by GrubTech

Request body

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

Order cancellation reasons

notestring

Reason or note for rejection

Response

Successful response OK