Pular para o conteúdo principal
POST
Return a settlement surplus to the account holder

Autorizações

Authorization
string
header
obrigatório

JWT bearer token issued by the identity provider.

Cabeçalhos

X-Idempotency
string
obrigatório

REQUIRED. Client-supplied replay key, at most 64 bytes. A request without it is refused with PIX-0030 @ 400 before the handler runs. An identical resend within 1 hour returns the original response, status included, with X-Idempotency-Replayed: true. Reusing the key with a divergent method, URL or body is PIX-0031 @ 412.

Required string length: 1 - 64
X-Actor-Id
string
obrigatório

Who is acting. Declared by the caller; not verified against the access token

Exemplo:

"backoffice.ops@example.com"

X-Override-Reason
string
obrigatório

Why the caller is acting

Exemplo:

"manual devolution paid by Pix"

X-Override-Ticket
string

Ticket reference

Exemplo:

"MED-4821"

X-Correlation-Id
string

Correlation id

Exemplo:

"med-2026-000123"

X-Request-Id
string

Request id

Exemplo:

"01a17e29-5302-7c0a-b5e1-94d2f6a83c17"

Parâmetros de caminho

lock_id
string
obrigatório

Balance lock UUID

Exemplo:

"01a17cf3-128e-7c41-9b2e-5d7a3f8c1e60"

Resposta

OK

lock_id
string
obrigatório
Exemplo:

"01a17cf3-128e-7c41-9b2e-5d7a3f8c1e60"

returned_at
string<date-time>
obrigatório
Exemplo:

"2026-10-27T15:02:41Z"

surplus_amount
string
obrigatório
Exemplo:

"0.00"

surplus_midaz_tx_id
string

Midaz transaction that moved the surplus: created by this call, or already recorded on the lock or, for a group settle, on another lock of the same group (then surplus_amount is 0). Absent when no surplus transfer exists.

Exemplo:

"01a17dae-b16e-7f28-9a03-6b1c4d8e2f75"