Pular para o conteúdo principal
POST

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

Parâmetros de caminho

lock_id
string
obrigatório

Balance lock UUID

Exemplo:

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

Corpo

application/json
original_amount
string
obrigatório

Original transaction face value (ceiling)

Exemplo:

"150.75"

refund_ref
string
obrigatório

Idempotency key for this settle

Exemplo:

"med-2026-000123-devolution"

pix_manual
object
pix_refund
object

Resposta

OK

already_settled
string
obrigatório
Exemplo:

"0.00"

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

"2026-10-27T14:05:12Z"

lock_id
string
obrigatório
Exemplo:

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

original_amount
string
obrigatório
Exemplo:

"150.75"

payment_type
string
obrigatório
Exemplo:

"PIX_MANUAL"

requested_amount
string
obrigatório
Exemplo:

"80.13"

settle_amount
string
obrigatório
Exemplo:

"80.13"

status
string
obrigatório
Exemplo:

"SETTLING"

surplus_amount
string
obrigatório

pixManual surplus (the lock's effective amount minus settle_amount) that the settle confirmation returns to the customer once the lock is SETTLED; nothing is returned by this call. Always 0 for pixRefund.

Exemplo:

"20.13"

surplus_midaz_tx_id
string

Not filled: the surplus is returned by the settle confirmation, whose response carries the transaction id. Kept in the schema for compatibility.

Exemplo:

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