---
title: "Create Compensation requests"
method: POST
path: "/orders/{tenant}/{orderId}/restaurantqueries/compensation"
tags: ["RestaurantQueries", "publicly-accessible"]
---

# Create Compensation requests

`POST /orders/{tenant}/{orderId}/restaurantqueries/compensation`

## Request

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

When an order is cancelled the restaurant might be eligible for compensation, this endpoint allows a request for compensation to be created.

## Path parameters

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

## Headers

- `Authorization` string, required

## Request body

- CreateRestaurantCompensationQuery
  - `ReasonCode` 'NotSet' | 'BeingPrepared' | 'OnItsWay' | 'Delivered' | 'Unknown': The reason why compensation is due
  - `Comments` string: Any other comments to add to the request

## Response `201`

Created

## Other responses

- `400`: Bad Request - returned if providing invalid data such as an unacceptable reason code
- `401`: Unauthorized - consumer has not provided the necessary credentials
- `403`: Forbidden - credentials provided by consumer do not allow access to this resource
- `404`: Resource not found
- `409`: Conflict - returned if tried to claim compensation for an order that is not eligible
- `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/restaurantqueries/compensation/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)
