Saltar al contenido principal
POST
Submit a direct order or revision

Autorizaciones

Authorization
string
header
requerido

JWT bearer token issued by the identity provider.

Parámetros de ruta

institutionId
string<uuid>
requerido

The institution's unique identifier (UUID).

Ejemplo:

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

Cuerpo

application/json
clientOrderId
string
requerido

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}$
Ejemplo:

"ord-7Q2K-b1"

deadlineAt
string<date-time>
requerido

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.

Ejemplo:

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

operation
enum<string>
requerido

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.

Opciones disponibles:
BLOCK,
UNBLOCK,
TRANSFER,
INFO,
INTERRUPT
Ejemplo:

"BLOCK"

orderRevision
integer<int64>
requerido

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

Rango requerido: x >= 1
Ejemplo:

1

responsibleInstitutionCnpj
string
requerido

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}$
Ejemplo:

"12345678"

scope
enum<string>
requerido

Reach of the order.

Opciones disponibles:
AMPLO,
POR_IF,
POR_AGENCIA,
DIRECIONADO
Ejemplo:

"AMPLO"

subject
object
requerido

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}$
Ejemplo:

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

Respuesta

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
requerido

Echo of the client key.

cutPassedAtReceipt
boolean
requerido

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

deadlinePassedAtReceipt
boolean
requerido

deadlineAt was already past when the order was received.

executionState
enum<string>
requerido

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

Opciones disponibles:
ACCEPTED,
EXECUTING,
MONITORING,
RESOLVED,
INDETERMINATE,
AWAITING_RECONCILIATION
externalReference
string | null
requerido

Echo of the externalReference; null when absent.

institutionCode
string
requerido

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

orderId
string<uuid>
requerido

Server-generated order id (UUIDv7).

orderRevision
integer<int64>
requerido

Accepted revision.

originalOrderId
string<uuid> | null
requerido

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>
requerido

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.