Skip to main content
POST
Return a settlement surplus to the account holder

Authorizations

Authorization
string
header
required

JWT bearer token issued by the identity provider.

Headers

X-Idempotency
string
required

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
required

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

Example:

"backoffice.ops@example.com"

X-Override-Reason
string
required

Why the caller is acting

Example:

"manual devolution paid by Pix"

X-Override-Ticket
string

Ticket reference

Example:

"MED-4821"

X-Correlation-Id
string

Correlation id

Example:

"med-2026-000123"

X-Request-Id
string

Request id

Example:

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

Path Parameters

lock_id
string
required

Balance lock UUID

Example:

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

Response

OK

lock_id
string
required
Example:

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

returned_at
string<date-time>
required
Example:

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

surplus_amount
string
required
Example:

"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.

Example:

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