Skip to main content
POST
Apply a notice in conflict

Authorizations

Authorization
string
header
required

JWT bearer token issued by the identity provider.

Headers

Idempotency-Key
string<uuid>
required

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.

Example:

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

Path Parameters

notice_id
string<uuid>
required

Local identifier of the received notice.

Body

application/json
reason
string
required

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

Required string length: 10 - 500
Example:

"Notice intake restored after the window."

Response

OK. The notice, APPLIED.

connectionId
string<uuid>
required

Connection to the PCR the notice arrived through.

Example:

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

eventId
string<uuid>
required

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

Example:

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

id
string<uuid>
required

Identifier of the notice.

Example:

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

occurredAt
string<date-time>
required

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

Example:

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

receivedAt
string<date-time>
required

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

Example:

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

state
enum<string>
required

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.

Available options:
RECEIVED,
APPLIED,
PENDING_ASSOCIATION,
CONFLICT,
DISCARDED
Example:

"APPLIED"

type
string
required

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_]+$
Example:

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

Example:

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

Available options:
LATE_REGISTRATION,
null
Example:

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

Example:

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

Available options:
NOTICE_NOT_CORRELATED,
EVENT_TYPE_NOT_CONSUMED,
STALE_VERSION,
DISCARDED_BY_OPERATOR,
WRITTEN_OFF_AT_NUCLEA,
null
Example:

"NOTICE_NOT_CORRELATED"