---
title: "Add reason and comments to the response"
method: PUT
path: "/restaurants/{tenant}/{restaurantId}/customerclaims/{id}/restaurantresponse/justification"
tags: ["Restaurant Claims", "publicly-accessible"]
---

# Add reason and comments to the response

`PUT /restaurants/{tenant}/{restaurantId}/customerclaims/{id}/restaurantresponse/justification`

## Request

- Base URL: `https://uk.api.just-eat.io`
- URL: `https://uk.api.just-eat.io/restaurants/{tenant}/{restaurantId}/customerclaims/{id}/restaurantresponse/justification`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/just-eat/apis/just-eat-api/docs/restaurants/:tenant/:restaurantId/customerclaims/:id/restaurantresponse/justification/put.ts> (a function with typed inputs; its response is checked against the schema)

Add reason and optional comments in case of rejection of order claim

## Path parameters

- `tenant` string, required
- `restaurantId` string, required
- `id` string, required

## Headers

- `Content-Type` string, required

## Request body

- Justification, nullable: The reason of the claim rejection and optional comments from the restaurant
  - `reason` 'AlreadyRefunded' | 'ItemReplaced' | 'PartialRefundRequired' | 'WasNotMissing' | 'WillRedeliver' | 'OrderWasHot' | 'OrderWasOnTime' | 'OrderWasPacked' | 'FoodWasIntact' | 'AddExtraItem' | 'Other': One of the predefined reasons
  - `comments` string, nullable: Comment from the restaurant owner in case they rejected at least one of the items and want to type their own rejection reason

## Response `204`

Request succeeded. Justification was successfully submitted

## Other responses

- `400`: Bad Request. Returned if the request is invalid e.g. reason doesn't match any of the predefined values
- `401`: Unauthorized. The client did not provide an authentication token or the token was invalid
- `403`: Forbidden. The client is not allowed to perform this action
- `404`: Not Found. Claim could not be found
- `409`: Conflict. The claim you are attempting to update is older than the current claim. Fetch the last copy of the entity and try the request again.
- `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/restaurants/:tenant/:restaurantId/customerclaims/:id/restaurantresponse/justification/put.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)
