Update a CNAB agreement
Changes the return cut times, the status, or both, of a CNAB agreement.
Providers: Lerian (PCR).
How it works
- Only the fields you send change. The collections agreement, the account, the ledger and the codes never change.
- Send the
versionyou last read. Any other version is refused withPBP-0912. INACTIVErefuses new remittances. Returns keep coming for the titles that already entered.ACTIVEreactivates the agreement. The collections agreement must still beACTIVE.- A change of cut times recomputes
nextCutAt. - There is no delete.
- An agreement of another organization gets
404, the same as one that does not exist. - A retry under the same
Idempotency-Keyreturns the stored answer.
PATCH
Update a CNAB agreement
Headers
Path Parameters
Body
application/json
Response
OK. The agreement after the change. version goes up by one when the cut times or the status change. A change that leaves them as they are writes nothing and keeps the same version.
Credit release policy of the collections agreement, read from it on every read and never stored. AFTER_CANCELLATION_WINDOW releases the credit only after the window in which the payer's bank may cancel the write-off has closed; AT_SETTLEMENT releases it on settlement, and a chargeback after the release comes back as movement 90.
Available options:
AFTER_CANCELLATION_WINDOW, AT_SETTLEMENT Example:
"AFTER_CANCELLATION_WINDOW"

