Skip to main content
POST
Create a cautionary block

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

Body

application/json
amount
string
required

Requested hold amount

Example:

"150.75"

asset
string
required

Asset code (only BRL supported)

Example:

"BRL"

end_to_end_id
string
required

Related Pix transaction end-to-end id

Example:

"E12345678202610271032k7Qm2Xp9Ld4"

external_ref
string
required

Grouping reference (not unique)

Example:

"med-2026-000123"

origin_system
string
required

Calling system/flow discriminator

Example:

"med-infraction"

request_ref
string
required

Idempotency key for this creation (unique per tenant)

Example:

"med-2026-000123-hold-1"

Response

The hold, created now or replayed by request_ref.

created_at
string<date-time>
required
Example:

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

effective_amount
string
required
Example:

"100.26"

lock_id
string
required
Example:

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

midaz_tx_id
string
required

The ledger hold; empty while AWAITING_CREDIT

Example:

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

requested_amount
string
required
Example:

"150.75"

status
string
required

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

Example:

"PENDING"