Skip to main content
POST
/
v1
/
matching
/
adjustments
Create an adjustment
curl --request POST \
  --url https://matcher.sandbox.lerian.net/v1/matching/adjustments \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "amount": "10.50",
  "currency": "BRL",
  "description": "Bank wire fee adjustment",
  "reason": "Variance due to bank processing fee",
  "type": "BANK_FEE",
  "matchGroupId": "019c96a0-0b74-768c-8d25-2bf065dca2f8",
  "transactionId": "019c96a0-10ce-75fc-a273-dc799079a99c"
}
'
{
  "adjustment": {
    "amount": 123,
    "contextId": "<string>",
    "createdAt": "<string>",
    "createdBy": "<string>",
    "currency": "<string>",
    "description": "<string>",
    "id": "<string>",
    "matchGroupId": "<string>",
    "reason": "<string>",
    "transactionId": "<string>",
    "type": "BANK_FEE",
    "updatedAt": "<string>"
  }
}

Authorizations

Authorization
string
header
required

Bearer token authentication (format: "Bearer {token}")

Headers

X-Request-Id
string

A unique identifier for tracing the request across services.

X-Idempotency-Key
string

Optional idempotency key for safe retries. Also accepts Idempotency-Key as an alternative header name. If the same key is sent again and the original request was already processed, the cached response is returned with X-Idempotency-Replayed: true.

See Retries and idempotency for details.

Query Parameters

contextId
string
required

Context ID

Body

application/json

Adjustment payload

amount
string
required
Example:

"10.50"

currency
string
required
Example:

"BRL"

description
string
required
Example:

"Bank wire fee adjustment"

reason
string
required
Example:

"Variance due to bank processing fee"

type
enum<string>
required
Available options:
BANK_FEE,
FX_DIFFERENCE,
ROUNDING,
WRITE_OFF,
MISCELLANEOUS
Example:

"BANK_FEE"

matchGroupId
string<uuid>
Example:

"019c96a0-0b74-768c-8d25-2bf065dca2f8"

transactionId
string<uuid>
Example:

"019c96a0-10ce-75fc-a273-dc799079a99c"

Response

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 for more details.

adjustment
object