Saltar al contenido principal
GET
Get a command to the PCR

Autorizaciones

Authorization
string
header
requerido

JWT bearer token issued by the identity provider.

Parámetros de ruta

command_id
string<uuid>
requerido

Identifier of the command to the PCR.

Ejemplo:

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

Respuesta

OK. The command.

attempts
integer<int64>
requerido

How many times the command was sent.

Rango requerido: x >= 0
Ejemplo:

4

createdAt
string<date-time>
requerido

When the command was recorded, RFC 3339 in UTC.

Ejemplo:

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

id
string<uuid>
requerido

Identifier of the command.

Ejemplo:

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

idempotencyKey
string<uuid>
requerido

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.

Ejemplo:

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

state
enum<string>
requerido

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.

Opciones disponibles:
PENDING,
SENT,
UNCONFIRMED,
ACCEPTED,
REJECTED_FINAL,
AWAITING_GRADE,
ABANDONED
Ejemplo:

"AWAITING_GRADE"

targetId
string<uuid>
requerido

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

Ejemplo:

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

targetType
enum<string>
requerido

Kind of resource the command acts on.

Opciones disponibles:
TITLE,
BENEFICIARY,
AGREEMENT,
RECEIVER_PAYMENT,
AGREEMENT_DIVERGENCE
Ejemplo:

"TITLE"

type
enum<string>
requerido

What the command asks the PCR to do.

Opciones disponibles:
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
Ejemplo:

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

Ejemplo:

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

organizationId
string<uuid> | null
read-only

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

Ejemplo:

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

titleId
string<uuid> | null

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

Ejemplo:

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

updatedAt
string<date-time>

When the command last changed, RFC 3339 in UTC.

Ejemplo:

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