Saltar al contenido principal
POST
Create a cautionary block

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

Cuerpo

application/json
amount
string
requerido

Requested hold amount

Ejemplo:

"150.75"

asset
string
requerido

Asset code (only BRL supported)

Ejemplo:

"BRL"

end_to_end_id
string
requerido

Related Pix transaction end-to-end id

Ejemplo:

"E12345678202610271032k7Qm2Xp9Ld4"

external_ref
string
requerido

Grouping reference (not unique)

Ejemplo:

"med-2026-000123"

origin_system
string
requerido

Calling system/flow discriminator

Ejemplo:

"med-infraction"

request_ref
string
requerido

Idempotency key for this creation (unique per tenant)

Ejemplo:

"med-2026-000123-hold-1"

Respuesta

The hold, created now or replayed by request_ref.

created_at
string<date-time>
requerido
Ejemplo:

"2026-10-27T10:41:07Z"

effective_amount
string
requerido
Ejemplo:

"100.26"

lock_id
string
requerido
Ejemplo:

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

midaz_tx_id
string
requerido

The ledger hold; empty while AWAITING_CREDIT

Ejemplo:

"01a17cf3-133d-7a52-8e19-0c4b6d2f7a91"

requested_amount
string
requerido
Ejemplo:

"150.75"

status
string
requerido

PENDING, or AWAITING_CREDIT while the Pix's ledger credit is parked and nothing is held yet

Ejemplo:

"PENDING"