Saltar al contenido principal
POST

Autorizaciones

Authorization
string
header
requerido

JWT bearer token issued by the identity provider.

Encabezados

X-Idempotency
string
requerido

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 ruta

lock_id
string
requerido

Balance lock UUID

Ejemplo:

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

Cuerpo

application/json
original_amount
string
requerido

Original transaction face value (ceiling)

Ejemplo:

"150.75"

refund_ref
string
requerido

Idempotency key for this settle

Ejemplo:

"med-2026-000123-devolution"

pix_manual
object
pix_refund
object

Respuesta

OK

already_settled
string
requerido
Ejemplo:

"0.00"

initiated_at
string<date-time>
requerido
Ejemplo:

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

lock_id
string
requerido
Ejemplo:

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

original_amount
string
requerido
Ejemplo:

"150.75"

payment_type
string
requerido
Ejemplo:

"PIX_MANUAL"

requested_amount
string
requerido
Ejemplo:

"80.13"

settle_amount
string
requerido
Ejemplo:

"80.13"

status
string
requerido
Ejemplo:

"SETTLING"

surplus_amount
string
requerido

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.

Ejemplo:

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

Ejemplo:

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