Pular para o conteúdo principal
POST
Submit a direct order or revision

Autorizações

Authorization
string
header
obrigatório

JWT bearer token issued by the identity provider.

Parâmetros de caminho

institutionId
string<uuid>
obrigatório

The institution's unique identifier (UUID).

Exemplo:

"550e8400-e29b-41d4-a716-446655440000"

Corpo

application/json
clientOrderId
string
obrigatório

Opaque client key of the order, unique per institution. MUST NOT contain personal data or judicial identifiers (CPF/CNPJ, process number, long digit runs).

Pattern: ^[A-Za-z0-9_.:-]{1,128}$
Exemplo:

"ord-7Q2K-b1"

deadlineAt
string<date-time>
obrigatório

Final deadline of the initial 5302 answer to the court, raw (the plugin applies its margin once). Required on every operation, INFO included. A past deadline is accepted and signalled.

Exemplo:

"2026-10-28T20:00:00Z"

operation
enum<string>
obrigatório

Operation. INTERRUPT (layout record "10") stops a permanent BLOCK ("P"/"D"): it carries parentClientOrderId and parentBlockKey only (no amount, block, transfer, info nor movementKey), has no key of its own, keeps what is already blocked and is never refused by the permanent-block policy; a parent that is not a permanent block is 422 invalid-order.

Opções disponíveis:
BLOCK,
UNBLOCK,
TRANSFER,
INFO,
INTERRUPT
Exemplo:

"BLOCK"

orderRevision
integer<int64>
obrigatório

Revision of the order (>= 1). The highest accepted revision wins.

Intervalo obrigatório: x >= 1
Exemplo:

1

responsibleInstitutionCnpj
string
obrigatório

8-char CNPJ root of the institution responsible for the answer. Compared exactly (no zero-padding) with the institution_code registered for the institution in the path, only for routing consistency and only after authorization; a mismatch, or an institution without a registered code, is 422 institution-mismatch. It is not an authorization check.

Pattern: ^[A-Z0-9]{8}$
Exemplo:

"12345678"

scope
enum<string>
obrigatório

Reach of the order.

Opções disponíveis:
AMPLO,
POR_IF,
POR_AGENCIA,
DIRECIONADO
Exemplo:

"AMPLO"

subject
object
obrigatório

Subject of the order. Personal data.

amount
object

Requested amount; required on BLOCK/UNBLOCK/TRANSFER, absent on INFO and INTERRUPT.

block
object

BLOCK only (required).

blockKey
object

Normative key of this block (PROTOCOLO + SEQUENCIAL_BLOQUEIO + REITERACAO_BLOQUEIO) and its ORDEM_CANCELADA flag; required on BLOCK, absent otherwise. blockReiteration 00 is the original block; any other value is a reiteration (orderCancelled false) or a cancellation (orderCancelled true) of the original, never a new block.

externalReference
string

Client search key, not unique, set on revision 1 and immutable. MUST NOT contain personal data or judicial identifiers.

Maximum string length: 128
Pattern: ^[A-Za-z0-9_.:-]{1,128}$
Exemplo:

"REM-2026-10-22-A"

info
object

INFO only (required).

metadata
object

Flat string map: <= 16 keys, key ^[A-Za-z0-9_.-]{1,64}$, value <= 256 bytes (UTF-8), total (keys + values) <= 4096 bytes. Sealed at rest; never logged.

movementKey
object

The movement's own key (SEQUENCIAL + REITERACAO of the unblock/transfer); required on UNBLOCK/TRANSFER, absent otherwise. movementReiteration 00 is the original movement; any other value is a reiteration of it, never a new movement.

parentBlockKey
object

Normative key of the parent block, as the court cites it on the unblock/transfer/interrupt record; required on UNBLOCK/TRANSFER/INTERRUPT, absent otherwise. It is also the only key of an INTERRUPT (the record "10" carries the key of the permanent it stops). The plugin checks it against the parent named by parentClientOrderId: a divergent key is the same parent-not-in-custody 422 as an unknown parent (no oracle).

parentClientOrderId
string

clientOrderId of the parent BLOCK; required on UNBLOCK/TRANSFER/INTERRUPT, absent otherwise. Submit the child only after the parent's 202.

Pattern: ^[A-Za-z0-9_.:-]{1,128}$
transfer
object

TRANSFER only (required).

Resposta

Idempotent replay (the same body was already accepted: same response), or a reiteration answered from the original (the original order's response and current state; no new execution).

clientOrderId
string
obrigatório

Echo of the client key.

cutPassedAtReceipt
boolean
obrigatório

The plugin's cut (deadlineAt minus margin) was already past when the order was received.

deadlinePassedAtReceipt
boolean
obrigatório

deadlineAt was already past when the order was received.

executionState
enum<string>
obrigatório

Execution state of the accepted revision; ACCEPTED means durably accepted and nothing executed yet.

Opções disponíveis:
ACCEPTED,
EXECUTING,
MONITORING,
RESOLVED,
INDETERMINATE,
AWAITING_RECONCILIATION
externalReference
string | null
obrigatório

Echo of the externalReference; null when absent.

institutionCode
string
obrigatório

Registered code (CNPJ root) of the institution; the client answers the court for it.

orderId
string<uuid>
obrigatório

Server-generated order id (UUIDv7).

orderRevision
integer<int64>
obrigatório

Accepted revision.

originalOrderId
string<uuid> | null
obrigatório

orderId of the original order this one is derived from: set on the UNBLOCK derived from a cancellation (it points at the original block); null otherwise.

receivedAt
string<date-time>
obrigatório

The receipt of this revision: when the plugin durably accepted the answered revision (the instant the deadline flags are measured at). The term of a permanent block is reported by permanentBlock.endsAt, never derived from this field.