action just_eat_post_orders_tenant_order_id_consumerqueries_lateordercompensatio { label: "Update late order compensation request with Restaurant response" description: "If a customer has requested compensation for a late order, a restaurant response is given by calling this endpoint." provider: just_eat method: POST path: "/orders/{tenant}/{orderId}/consumerqueries/lateordercompensation/restaurantresponse" encoding: json input: { type: "object" properties: { Authorization: { type: "string" } acceptedAmount: { type: "integer" description: "The monetary amount of compensation granted, in cents/pence. Required when `isAccepted = true`." } isAccepted: { type: "boolean" description: "Flag to indicate whether a compensation request has been accepted or rejected." } orderId: { type: "string" } rejectedReasonCode: { type: "string" description: "\n- `BadTraffic` : The driver was stuck in heavy traffic, sorry.\n- `BadWeather` : The bad weather was delaying our deliveries, sorry.\n- `BusierThanExpected` : Our restaurant was busier than we expected.\n- `CompensatedWithItem` : We gave you something from the menu free of charge to make up for it.\n- `NoReason` : We're really sorry your order was late. We hope you enjoyed your food." enum: ["BadTraffic", "BadWeather", "BusierThanExpected", "CompensatedWithItem", "NoReason"] } tenant: { type: "string" } } required: ["Authorization", "orderId", "tenant"] additionalProperties: false } output: { type: "object" additionalProperties: true } }