Apply a notice in conflict
Applies a notice in CONFLICT (queue CONFLICTING_NOTICE). The answer is the notice, already APPLIED.
How it works
- With reason
LATE_REGISTRATION(aboleto.registeredreceived afterPOST /v1/collections/titles/{title_id}/settle-submission-failure), the notice is applied as a usualboleto.registered. The title moves fromFAILEDtoREGISTERED. - This is not the default way out. In the host,
FAILEDis final. The action needs the host to return the boleto fromFAILEDtoCREATED, with its nosso número still free there. - Without that, or with the number already reused in the host, the notice stays in
CONFLICT. UsePOST /v1/collections/pcr-notices/{notice_id}/write-offinstead. - The notice must be in
CONFLICT. - A retry under the same
Idempotency-Keyreturns the stored answer.
Encabezados
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.
"5f2b8a8e-3c1d-4f7a-9b2e-6d4c1a0e9f11"
Cuerpo
Respuesta
OK. The notice, APPLIED.
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.
RECEIVED, APPLIED, PENDING_ASSOCIATION, CONFLICT, DISCARDED "APPLIED"
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.
LATE_REGISTRATION, null "LATE_REGISTRATION"
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.
NOTICE_NOT_CORRELATED, EVENT_TYPE_NOT_CONSUMED, STALE_VERSION, DISCARDED_BY_OPERATOR, WRITTEN_OFF_AT_NUCLEA, null "NOTICE_NOT_CORRELATED"

