---
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`

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

---

[API](https://skmtc.net/just-eat/apis/just-eat-api.md) · [All operations](https://skmtc.net/just-eat/apis/just-eat-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/just-eat/just-eat-api/revisions/4b25c7d97a53/schema)
