Pular para o conteúdo principal
GET
Get a command to the PCR

Autorizações

Authorization
string
header
obrigatório

JWT bearer token issued by the identity provider.

Parâmetros de caminho

command_id
string<uuid>
obrigatório

Identifier of the command to the PCR.

Exemplo:

"0192a3b4-5c6d-7e8f-9a0b-1c2d3e4f5a03"

Resposta

OK. The command.

attempts
integer<int64>
obrigatório

How many times the command was sent.

Intervalo obrigatório: x >= 0
Exemplo:

4

createdAt
string<date-time>
obrigatório

When the command was recorded, RFC 3339 in UTC.

Exemplo:

"2026-11-10T12:00:00Z"

id
string<uuid>
obrigatório

Identifier of the command.

Exemplo:

"0192a3b4-5c6d-7e8f-9a0b-1c2d3e4f5a03"

idempotencyKey
string<uuid>
obrigatório

Idempotency key the command's sends carry. A retryable refusal of the PCR, which the PCR records under the key and repeats to any resend under it, replaces the key for the next send; the PCR keeps each key from its first send for a retention it sets, 24 hours by default.

Exemplo:

"f47ac10b-58cc-4372-a567-0e02b2c3d479"

state
enum<string>
obrigatório

Where the command is. PENDING: not sent yet, or held for the operator after an answer no resend can fix (then nextAttemptAt is null). SENT: sent, without a final outcome yet. UNCONFIRMED: a title registration the PCR accepted and then reported it could not submit; it ends with the late registration or when the operator settles it. ACCEPTED: accepted by the PCR, or its effect confirmed at the PCR. REJECTED_FINAL: refused for good. AWAITING_GRADE: refused because the PCR's grade was closed; the next attempt is at its next opening. ABANDONED: closed by the operator.

Opções disponíveis:
PENDING,
SENT,
UNCONFIRMED,
ACCEPTED,
REJECTED_FINAL,
AWAITING_GRADE,
ABANDONED
Exemplo:

"AWAITING_GRADE"

targetId
string<uuid>
obrigatório

Identifier of the resource the command acts on, of the kind targetType names: a title, a beneficiary, an agreement, a boleto payment the institution received as the receiving institution (RECEIVER_PAYMENT), or a divergence between the PCR's beneficiary base and the agreements (AGREEMENT_DIVERGENCE).

Exemplo:

"7c9e6679-7425-40de-944b-e07fc1f90ae7"

targetType
enum<string>
obrigatório

Kind of resource the command acts on.

Opções disponíveis:
TITLE,
BENEFICIARY,
AGREEMENT,
RECEIVER_PAYMENT,
AGREEMENT_DIVERGENCE
Exemplo:

"TITLE"

type
enum<string>
obrigatório

What the command asks the PCR to do.

Opções disponíveis:
REGISTER_TITLE,
AMEND_TITLE,
WRITE_OFF_BY_DESTINATARIA,
REGISTER_BENEFICIARY,
UPDATE_BENEFICIARY,
EXCLUDE_BENEFICIARY_RELATIONSHIP,
RECEIVER_WRITE_OFF,
CANCEL_RECEIVER_WRITE_OFF,
QUERY_BENEFICIARY_BASE
Exemplo:

"REGISTER_TITLE"

lastResponse
object

The last answer that did not accept the command, or the lack of one, classified by the PCR's code and never by the HTTP status. Absent before the first such answer and once the command is accepted.

nextAttemptAt
string<date-time> | null

When the next attempt is due, RFC 3339 in UTC: after a closed grade, its next opening; while a send waits for its answer, the earliest it is sent again if none arrives. Null when no attempt is scheduled: the command has an outcome or is held for the operator.

Exemplo:

"2026-11-10T12:05:00Z"

organizationId
string<uuid> | null
read-only

Midaz organization of the related account; null when there is none.

Exemplo:

"0192a3b4-5c6d-7e8f-9a0b-1c2d3e4f5a6b"

titleId
string<uuid> | null

Collections title the command relates to; null when it relates to none.

Exemplo:

"7c9e6679-7425-40de-944b-e07fc1f90ae7"

updatedAt
string<date-time>

When the command last changed, RFC 3339 in UTC.

Exemplo:

"2026-11-10T12:00:01Z"