Pular para o conteúdo principal
POST
/
v1
/
matching
/
adjustments
Criar um ajuste
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": "USD",
  "description": "Bank wire fee adjustment",
  "reason": "Variance due to bank processing fee",
  "type": "BANK_FEE",
  "matchGroupId": "550e8400-e29b-41d4-a716-446655440000",
  "transactionId": "550e8400-e29b-41d4-a716-446655440000"
}
'
{
  "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>"
  }
}

Autorizações

Authorization
string
header
obrigatório

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

Cabeçalhos

X-Request-Id
string

Um identificador único para rastrear a requisição entre serviços.

Parâmetros de consulta

contextId
string
obrigatório

ID do contexto

Corpo

application/json

Payload de ajuste

amount
string
obrigatório
Exemplo:

"10.50"

currency
string
obrigatório
Exemplo:

"USD"

description
string
obrigatório
Exemplo:

"Bank wire fee adjustment"

reason
string
obrigatório
Exemplo:

"Variance due to bank processing fee"

type
enum<string>
obrigatório
Opções disponíveis:
BANK_FEE,
FX_DIFFERENCE,
ROUNDING,
WRITE_OFF,
MISCELLANEOUS
Exemplo:

"BANK_FEE"

matchGroupId
string<uuid>
Exemplo:

"550e8400-e29b-41d4-a716-446655440000"

transactionId
string<uuid>
Exemplo:

"550e8400-e29b-41d4-a716-446655440000"

Resposta

Indica que o recurso foi criado com sucesso.

adjustment
object