---
title: "Update late order compensation request with Restaurant response"
method: POST
path: "/orders/{tenant}/{orderId}/consumerqueries/lateordercompensation/restaurantresponse"
tags: ["ConsumerQueries", "publicly-accessible"]
---

# Update late order compensation request with Restaurant response

`POST /orders/{tenant}/{orderId}/consumerqueries/lateordercompensation/restaurantresponse`

## Request

- Base URL: `https://uk.api.just-eat.io`
- URL: `https://uk.api.just-eat.io/orders/{tenant}/{orderId}/consumerqueries/lateordercompensation/restaurantresponse`
- Auth: none declared. Required headers: `Authorization`
- TypeScript: <https://skmtc.dev/just-eat/apis/just-eat-api/docs/orders/:tenant/:orderId/consumerqueries/lateordercompensation/restaurantresponse/post.ts> (a function with typed inputs; its response is checked against the schema)

If a customer has requested compensation for a late order, a restaurant response is given by calling this endpoint.

## Path parameters

- `tenant` string, required
- `orderId` string, required

## Headers

- `Authorization` string, required

## Request body

- LateOrderCompensationRestaurantResolution
  - `orderId` string: The ID of the late order compensation request that this response relates to.
  - `isAccepted` boolean: Flag to indicate whether a compensation request has been accepted or rejected.
  - `acceptedAmount` integer: The monetary amount of compensation granted, in cents/pence. Required when `isAccepted = true`.
  - `rejectedReasonCode` 'BadTraffic' | 'BadWeather' | 'BusierThanExpected' | 'CompensatedWithItem' | 'NoReason': - `BadTraffic` : The driver was stuck in heavy traffic, sorry. - `BadWeather` : The bad weather was delaying our deliveries, sorry. - `BusierThanExpected` : Our restaurant was busier than we expected. - `CompensatedWithItem` : We gave you something from the menu free of charge to make up for it. - `NoReason` : We're really sorry your order was late. We hope you enjoyed your food.

## Response `202`

Accepted

## Other responses

- `400`: Bad Request. Returned if the request is invalid - e.g. contains missing or invalid parameters.
- `401`: Unauthorized. Consumer is not authorized to modify the resource
- `404`: Not Found. Order query or Order not found
- `409`: Conflict. Query not in state to accept response
- `500`: Internal Server Error

## Changes

- **2026-07-13** `4b25c7d97a53`: 1 warning
  - the optional response header `Retry-After` removed for the status `500`

[Operation history](https://skmtc.dev/just-eat/apis/just-eat-api/changes/orders/:tenant/:orderId/consumerqueries/lateordercompensation/restaurantresponse/post.md)

---

[API](https://skmtc.dev/just-eat/apis/just-eat-api.md) - [All operations](https://skmtc.dev/just-eat/apis/just-eat-api/llms.txt) - [OpenAPI document](https://skmtc.dev/just-eat/apis/just-eat-api/revisions/4b25c7d97a53?raw)
