RestaurantQueries
publicly-accessible
Create Compensation requests
Changed onWhen an order is cancelled the restaurant might be eligible for compensation, this endpoint allows a request for compensation to be created.
post/orders/{tenant}/{orderId}/restaurantqueries/compensation
Request
- Base URLhttps://uk.api.just-eat.io
- Authnone declared. Required headers: Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
tenantstring required
Request tenant.
orderIdstring required
Id for the order.
Headers
Authorizationstring required
Containing a partner issued API key e.g. JE-API-KEY ABCDE123456789
Request body
Example request
{
"ReasonCode": "OnItsWay",
"Comments": "Driver had just left the restaurant"
}Response
Created
Changes
- warning
the optional response header
Retry-Afterremoved for the status500
- warning