Saltar al contenido principal
POST
Apply a notice in conflict

Autorizaciones

Authorization
string
header
requerido

JWT bearer token issued by the identity provider.

Encabezados

Idempotency-Key
string<uuid>
requerido

Idempotency key of the client, a UUID. Missing or invalid: 400 PBP-0012; an earlier request with the same key still running: 409 PBP-0007; the same key with another body: 422 PBP-0013. Afterwards, the same key returns the stored answer.

Ejemplo:

"5f2b8a8e-3c1d-4f7a-9b2e-6d4c1a0e9f11"

Parámetros de ruta

notice_id
string<uuid>
requerido

Local identifier of the received notice.

Cuerpo

application/json
reason
string
requerido

Reason for the action, recorded in the audit trail. Must not carry personal data.

Required string length: 10 - 500
Ejemplo:

"Notice intake restored after the window."

Respuesta

OK. The notice, APPLIED.

connectionId
string<uuid>
requerido

Connection to the PCR the notice arrived through.

Ejemplo:

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

eventId
string<uuid>
requerido

Identifier of the PCR's event, the same in every delivery of it: a notice is stored once per connection and event.

Ejemplo:

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

id
string<uuid>
requerido

Identifier of the notice.

Ejemplo:

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

occurredAt
string<date-time>
requerido

When the event occurred at the PCR, RFC 3339 in UTC.

Ejemplo:

"2026-11-10T11:59:58Z"

receivedAt
string<date-time>
requerido

When collections received and stored the notice, RFC 3339 in UTC. The list is ordered by it, and from and to bound it.

Ejemplo:

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

state
enum<string>
requerido

Where the notice stands. RECEIVED: stored and not applied yet. APPLIED: its effect was applied, at appliedAt. PENDING_ASSOCIATION: no title takes it yet, why is in stateReason; collections keeps it and never discards it on its own. CONFLICT: it contradicts the state of its title and is not applied silently, why is in conflictReason. DISCARDED: kept without effect, why is in stateReason.

Opciones disponibles:
RECEIVED,
APPLIED,
PENDING_ASSOCIATION,
CONFLICT,
DISCARDED
Ejemplo:

"APPLIED"

type
string
requerido

The PCR's event type name. A type collections does not consume is stored and discarded at receipt, never refused.

Maximum string length: 64
Pattern: ^[a-z]+\.[a-z_]+$
Ejemplo:

"boleto.writeoff_received"

appliedAt
string<date-time> | null

When the effect of the notice was applied, RFC 3339 in UTC, only in APPLIED; null in every other state.

Ejemplo:

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

conflictReason
enum<string> | null

Why the notice contradicts the state of its title, only in CONFLICT; null in every other state. LATE_REGISTRATION: a registration notice received after its title was already closed, failed or withdrawn.

Opciones disponibles:
LATE_REGISTRATION,
null
Ejemplo:

"LATE_REGISTRATION"

correlation
object

What the notice carries to be matched with a title, and the title it was matched with.

organizationId
string<uuid> | null
read-only

Midaz organization of the title the notice was matched with; null while it is matched with none.

Ejemplo:

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

stateReason
enum<string> | null

Why the notice is pending association or discarded; null in every other state. NOTICE_NOT_CORRELATED: it matches no title of the connection, or cannot be applied to the one it names. EVENT_TYPE_NOT_CONSUMED: collections does not consume its type. STALE_VERSION: a registration notice older than the version already applied. DISCARDED_BY_OPERATOR: an operator discarded it. WRITTEN_OFF_AT_NUCLEA: a late registration resolved by a write-off requested at the Núclea.

Opciones disponibles:
NOTICE_NOT_CORRELATED,
EVENT_TYPE_NOT_CONSUMED,
STALE_VERSION,
DISCARDED_BY_OPERATOR,
WRITTEN_OFF_AT_NUCLEA,
null
Ejemplo:

"NOTICE_NOT_CORRELATED"