Settle a submission failure
Settles a submission failure that the PCR did not close. The PCR does not move SUBMISSION_FAILED to REJECTED or WITHDRAWN: a late refusal keeps the boleto failed, with the code. It does not report the closing by event or field either. So the action queries the PCR at once.
How it works
- If the boleto is
REGISTEREDat the PCR, collections adopts it:outcomeisENQUEUEDandtargetStateisREGISTERED, as inclosePcrCommand. - If it is still
SUBMISSION_FAILEDand the failure has reached the minimum age, the title moves toFAILED. The minimum age is an operational setting in hours, 24 by default. The title gets classTRANSIENTand a nullpcrCode. Its message says the rail did not answer and the operator closed the failure. - The client then receives the failure notice (
BOLETO_FAILED). The registration command leftUNCONFIRMEDis closed (queueSTUCK_PCR_COMMAND, reasonSUBMISSION_UNCONFIRMED). - Before the minimum age, or for a title outside
SUBMISSION_FAILED, the action is refused withPBP-0826. - The nosso número follows the rule of
closePcrCommand. A number the client informed is released. A number collections generated stays held by the title until the correction, which reuses it. - A
boleto.registeredthat arrives after the settling is not applied silently. The notice staysCONFLICT, reasonLATE_REGISTRATION, in queueCONFLICTING_NOTICE. - The default way out is
writeOffLateRegistration: a write-off at Núclea, and the title staysFAILED.applyPcrNoticetakes the title toREGISTEREDonly where the host can return a failed boleto to created.
Cabeçalhos
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"
Corpo
Resposta
OK. The action is recorded in the audit trail. outcome tells whether the effect is applied or follows in the background.
What the action did.
RELEASE_WRITE_OFF, CANCEL_SCHEDULED_RELEASE, UNHOLD_WRITE_OFF, REVERSE_WRITE_OFF, REPROCESS_CREDIT_ENTRY, REPROCESS_PCR_COMMAND, CLOSE_PCR_COMMAND, SETTLE_SUBMISSION_FAILURE, ASSOCIATE_PCR_NOTICE, DISCARD_PCR_NOTICE, APPLY_PCR_NOTICE, WRITE_OFF_LATE_REGISTRATION, ENABLE_ACCOUNT, CREATE_ENABLEMENT_BATCH, APPROVE_ENABLEMENT, REJECT_ENABLEMENT, DISABLE_BENEFICIARY, CORRECT_AGREEMENT_DIVERGENCE, ADOPT_AGREEMENT_DIVERGENCE, BULK_ADOPT_AGREEMENT_DIVERGENCES, CREATE_AGREEMENT, UPDATE_AGREEMENT, CLOSE_AGREEMENT, REPROCESS_AGREEMENT_CLOSURE, FORCE_CLOSE_AGREEMENT, LINK_POOLED_ACCOUNT, REMOVE_POOLED_ACCOUNT_LINK, PUT_PCR_CONNECTION, PUT_COLLECTIONS_SETTINGS, SYNC_PCR_SUBSCRIPTION, ROTATE_PCR_NOTICE_SECRET, REDELIVER_PCR_NOTICE "REDELIVER_PCR_NOTICE"
Kind of resource the action acted on.
TITLE, WRITE_OFF, CREDIT_ENTRY, PCR_COMMAND, PCR_NOTICE, BENEFICIARY, ENABLEMENT_BATCH, AGREEMENT, AGREEMENT_DIVERGENCE, POOLED_ACCOUNT_LINK, PCR_CONNECTION, PCR_SUBSCRIPTION, PCR_WEBHOOK_DELIVERY, COLLECTIONS_SETTINGS, ACCOUNT "PCR_WEBHOOK_DELIVERY"

