---
title: "Update an expense or other adjustment"
method: PATCH
path: "/adjustments/{id}"
tags: ["Adjustments"]
---

# Update an expense or other adjustment

`PATCH /adjustments/{id}`

## Request

- Base URL: `https://api.letsdeel.com/rest`
- URL: `https://api.letsdeel.com/rest/adjustments/{id}`
- Auth: HTTP bearer

Updates an existing expense or other payroll adjustment identified by its id. Use it when one that has already been created needs correcting, such as a wrong amount, date, category or receipt, so the record keeps its id instead of being deleted with `DELETE /rest/adjustments/{id}` and recreated. Applies a partial update: only fields included in the request body are modified, and omitted fields keep their current values. A worker token can only update the expenses of that worker.

 **Token scopes**: `adjustments:write`, `worker:write`

## Path parameters

- `id` string, required

## Request body

- object
  - `data` AdjustmentsIdPatchRequestBodyContentApplicationJsonSchemaData, required: Details of adjustment to update
    - `file` AdjustmentsIdPatchRequestBodyContentApplicationJsonSchemaDataFile: Receipt or supporting document that was uploaded before this call. Register the upload with `POST /rest/files`, send the file to the upload target it returns, then pass the returned `file_id` and `one_time_secret` here. Accepted file types: JPEG, PNG, HEIC, WebP, GIF, BMP, TIFF, HEIF images and PDF documents, up to 10 MB. The file must have passed the security scan: if the answer says it is not ready yet, wait a few seconds and send the request again. Leave the field out entirely when there is no file. On an update, the file replaces the files the adjustment has.
      - `file_id` string, uuid, required: File id returned by `POST /rest/files`.
      - `one_time_secret` string, required: One-time secret returned by `POST /rest/files` for that file.
    - `title` string: Title of adjustment.
    - `amount` union: Amount of adjustment.
      - string
      - number, double
    - `country` string: Country code.
    - `odp_only` boolean: EOR contracts only. Restrict the adjustment to on-demand payroll: when true it is never attached to a regular payroll cycle, and it is automatically denied if it is still not part of an on-demand payroll 30 days after creation. Sending it for any other contract type is rejected, because on-demand payroll does not exist there. Editable only through this API, and it forces move_next_cycle to false.
    - `description` string: Description of adjustment.
    - `vendor_name` string: Vendor name of adjustment.
    - `date_of_adjustment` string, date: Short date in format ISO-8601 (YYYY-MM-DD). For example: 2022-12-31.
    - `adjustment_category_id` string: Adjustment category id.

## Response `200`

Successful operation.

- AdjustmentsUpdateContractAdjustmentResponse200
  - `data` AdjustmentsIdPatchResponsesContentApplicationJsonSchemaData, required
    - `updated` boolean, required: Confirms the update was successful.

## Other responses

- `400`: Bad Request – failed to update adjustment
- `401`: Operation failed.
- `403`: Operation failed.
- `404`: Operation failed.
- `500`: Operation failed.

## Changes

- **2026-11-19** `48310bfe304e`: 1 breaking, 1 info
  - removed the media type `multipart/form-data` from the request body
  - added the media type `application/json` to the request body

[Operation history](https://skmtc.dev/deel/apis/eor-endpoints/changes/adjustments/:id/patch.md)

---

[API](https://skmtc.dev/deel/apis/eor-endpoints.md) - [All operations](https://skmtc.dev/deel/apis/eor-endpoints/llms.txt) - [OpenAPI document](https://skmtc.dev/deel/apis/eor-endpoints/revisions/7a55c7caa6dc?raw)
