Skip to main content
POST
Submit a direct order or revision

Authorizations

Authorization
string
header
required

JWT bearer token issued by the identity provider.

Path Parameters

institutionId
string<uuid>
required

The institution's unique identifier (UUID).

Example:

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

Body

application/json
clientOrderId
string
required

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

"ord-7Q2K-b1"

deadlineAt
string<date-time>
required

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.

Example:

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

operation
enum<string>
required

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.

Available options:
BLOCK,
UNBLOCK,
TRANSFER,
INFO,
INTERRUPT
Example:

"BLOCK"

orderRevision
integer<int64>
required

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

Required range: x >= 1
Example:

1

responsibleInstitutionCnpj
string
required

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

"12345678"

scope
enum<string>
required

Reach of the order.

Available options:
AMPLO,
POR_IF,
POR_AGENCIA,
DIRECIONADO
Example:

"AMPLO"

subject
object
required

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

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

Response

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
required

Echo of the client key.

cutPassedAtReceipt
boolean
required

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

deadlinePassedAtReceipt
boolean
required

deadlineAt was already past when the order was received.

executionState
enum<string>
required

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

Available options:
ACCEPTED,
EXECUTING,
MONITORING,
RESOLVED,
INDETERMINATE,
AWAITING_RECONCILIATION
externalReference
string | null
required

Echo of the externalReference; null when absent.

institutionCode
string
required

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

orderId
string<uuid>
required

Server-generated order id (UUIDv7).

orderRevision
integer<int64>
required

Accepted revision.

originalOrderId
string<uuid> | null
required

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

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.