Close an agreement
Closes one agreement with the client’s reason. The account stops issuing under it. Boletos already registered do not change.
Providers: Lerian (PCR).
How it works
ACTIVE,BLOCKED,CLOSURE_FAILEDandPENDING_REGISTRATIONagreements can be closed. Any other state is refused withPBP-0802.- An agreement Núclea holds, or may hold through a command in flight to the PCR, goes to
CLOSINGwithoutcomeENQUEUED. Its exclusion goes to Núclea through the PCR after the maintenance in flight on the holder is answered. - While the holder keeps another live agreement, an update of the holder’s registration (DDA0502) ends only this agreement.
- When this was the holder’s last live agreement, the relationship is excluded (DDA0503). This is checked again before sending: if another agreement became live meanwhile, the relationship stays and only this agreement ends.
- Núclea’s answer moves the agreement to
CLOSEDor toCLOSURE_FAILED. ACLOSURE_FAILEDagreement can be closed again. - An agreement never sent to Núclea is
CLOSEDat once, withoutcomeAPPLIED. - Links of other accounts to this agreement, as their pooled account, do not change.
- The close is recorded in the collections audit trail with its
reason, the identity that made it and the agreement before and after.
POST
Close an agreement
Encabezados
Parámetros de ruta
Cuerpo
application/json
Respuesta
OK. The action is recorded in the audit trail. outcome is ENQUEUED when the exclusion goes to Núclea, or APPLIED when the agreement closed at once.
What the action did.
Opciones disponibles:
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 Ejemplo:
"REDELIVER_PCR_NOTICE"
Kind of resource the action acted on.
Opciones disponibles:
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 Ejemplo:
"PCR_WEBHOOK_DELIVERY"

