Skip to main content
POST

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

Path Parameters

lock_id
string
required

Balance lock UUID

Example:

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

Body

application/json
original_amount
string
required

Original transaction face value (ceiling)

Example:

"150.75"

refund_ref
string
required

Idempotency key for this settle

Example:

"med-2026-000123-devolution"

pix_manual
object
pix_refund
object

Response

OK

already_settled
string
required
Example:

"0.00"

initiated_at
string<date-time>
required
Example:

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

lock_id
string
required
Example:

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

original_amount
string
required
Example:

"150.75"

payment_type
string
required
Example:

"PIX_MANUAL"

requested_amount
string
required
Example:

"80.13"

settle_amount
string
required
Example:

"80.13"

status
string
required
Example:

"SETTLING"

surplus_amount
string
required

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.

Example:

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

Example:

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