Skip to main content
GET
Get a command to the PCR

Authorizations

Authorization
string
header
required

JWT bearer token issued by the identity provider.

Path Parameters

command_id
string<uuid>
required

Identifier of the command to the PCR.

Example:

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

Response

OK. The command.

attempts
integer<int64>
required

How many times the command was sent.

Required range: x >= 0
Example:

4

createdAt
string<date-time>
required

When the command was recorded, RFC 3339 in UTC.

Example:

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

id
string<uuid>
required

Identifier of the command.

Example:

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

idempotencyKey
string<uuid>
required

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.

Example:

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

state
enum<string>
required

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.

Available options:
PENDING,
SENT,
UNCONFIRMED,
ACCEPTED,
REJECTED_FINAL,
AWAITING_GRADE,
ABANDONED
Example:

"AWAITING_GRADE"

targetId
string<uuid>
required

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

Example:

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

targetType
enum<string>
required

Kind of resource the command acts on.

Available options:
TITLE,
BENEFICIARY,
AGREEMENT,
RECEIVER_PAYMENT,
AGREEMENT_DIVERGENCE
Example:

"TITLE"

type
enum<string>
required

What the command asks the PCR to do.

Available options:
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
Example:

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

Example:

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

organizationId
string<uuid> | null
read-only

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

Example:

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

titleId
string<uuid> | null

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

Example:

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

updatedAt
string<date-time>

When the command last changed, RFC 3339 in UTC.

Example:

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