---
title: "Create an adjustment"
method: POST
path: "/v1/matching/adjustments"
tags: ["Matching"]
---

# Create an adjustment

`POST /v1/matching/adjustments`

Use this endpoint to create a balancing journal entry (e.g., bank fee, FX difference) to resolve variance between matched transactions or on a single transaction.

## Query parameters

- `contextId` string, required

## Headers

- `X-Request-Id` string
- `X-Idempotency-Key` string

## Request body

- CreateAdjustmentRequest
  - `amount` string, required
  - `currency` string, required
  - `direction` 'DEBIT' | 'CREDIT', required — Direction of the adjustment
  - `description` string, required
  - `matchGroupId` string, uuid
  - `reason` string, required
  - `transactionId` string, uuid
  - `type` 'BANK_FEE' | 'FX_DIFFERENCE' | 'ROUNDING' | 'WRITE_OFF' | 'MISCELLANEOUS', required

## Response `201`

Indicates that the resource was successfully created.

The response includes the `X-Idempotency-Replayed` header.

If the value is false, the request was just processed. If the value is true, the response is a replay of a previously processed request.

See [Retries and idempotency](/en/reference/retries-idempotency) for more details.

- AdjustmentResponse
  - `adjustment` Adjustment
    - `amount` number
    - `contextId` string
    - `createdAt` string
    - `createdBy` string
    - `currency` string
    - `description` string
    - `id` string
    - `matchGroupId` string
    - `reason` string
    - `transactionId` string
    - `type` 'BANK_FEE' | 'FX_DIFFERENCE' | 'ROUNDING' | 'WRITE_OFF' | 'MISCELLANEOUS'
    - `updatedAt` string

## Other responses

- `400` — The request contains invalid parameters or payload.
- `401` — The request lacks valid authentication credentials.
- `403` — You do not have permission to access this resource.
- `404` — The requested resource was not found.
- `500` — An unexpected error occurred on the server.

---

[API](https://skmtc.net/lerian/apis/identity-plugin.md) · [All operations](https://skmtc.net/lerian/apis/identity-plugin/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/lerian/identity-plugin/versions/25daba385532/schema)
