Adopt an agreement divergence
Resolves a divergence by bringing collections in line with the PCR’s beneficiary base. The divergence ends RESOLVED as ADOPTED.
How it works
- Every kind first needs collections configured and a valid PCR license, even the kinds that send nothing to the PCR. Otherwise the request is refused with
PBP-0800orPBP-0811before the divergence is read. MISSING_LOCALLYis an agreement registered at Núclea outside collections. Collections reads the base’s beneficiary at the PCR, finds the holder by document and lists the holder’s ledger accounts. The agreement becomes anIMPORTEDagreement of the holder’s account.- With one account, the agreement is adopted on it. If you send
accountId, it must be that account. - With several accounts,
accountIdis required. Without it, the request is refused withPBP-0824andAMBIGUOUS_ACCOUNT. - With no account, the request is refused with
PBP-0824andNO_LEDGER_ACCOUNT. Create the account in the ledger and adopt again, or exclude the relationship withPOST /v1/collections/agreement-divergences/{divergence_id}/correct. - The adopted agreement gets a seven-position code from collections and keeps the base’s code in
importedAgreementCode. - It stays
PENDING_REGISTRATIONuntil Núclea accepts the beneficiary update (DDA0502) with the new code. A refusal leaves itREGISTRATION_REJECTED. - Titles already issued with the base’s code stay valid. The answer is
ENQUEUED. - An adopted agreement cannot take the Núclea key of another agreement of the same holder that Núclea holds or may hold: Núclea would merge the two. This is refused with
PBP-0806. MISSING_IN_NUCLEAcloses the agreement the base no longer has.ATTRIBUTE_MISMATCHtakes the base’s branch and account.SITUATION_MISMATCHtakes the holder’s situation in the base. It blocks the agreements of a holder under review or unfit, and unblocks those of a fit holder.- These three kinds answer
APPLIEDand send nothing to the PCR. - The action is recorded in the audit trail as
ADOPT_AGREEMENT_DIVERGENCE, with the reason.
Headers
Path Parameters
Body
Ledger account of the holder the agreement of a MISSING_LOCALLY is adopted on. Required when the holder has several accounts; with a single account, optional, and it must be that one. It must be the holder's (otherwise 422 PBP-0825) and open (otherwise 422 PBP-0808). The organization and the ledger come from the account itself.
"8e1f2a3b-4c5d-4e6f-9a0b-1c2d3e4f5a6b"
Response
OK. The action is recorded in the audit trail. outcome is ENQUEUED for MISSING_LOCALLY and APPLIED for the other kinds.
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"

