Request an amendment of a registered boleto
Requests a change to the terms of a registered boleto. The digitable line and the barcode never change.
Providers: Lerian (PCR).
How it works
- Send only the members that change, each with its final value:
dueDate,amount,discounts,fine,interest,paymentDeadlineanddocumentNumber. discountsreplaces the whole list. An empty list removes every band.fine: nullandinterest: nullexempt the boleto from that charge.documentNumber: nullremoves it. Each needs its own provider capability.- Lerian (PCR) does not amend
documentNumberand does not exempt fine or interest today: those requests are refused with422 PBP-0701(BOLETO_AMEND_DOCUMENT_NUMBER,BOLETO_AMEND_FINE_EXEMPTION,BOLETO_AMEND_INTEREST_EXEMPTION). - BTG does not amend boletos today: every request is refused with
422 PBP-0701(BOLETO_AMEND). - The resulting terms follow the issuance rules and are checked before anything is sent to the provider.
- Refused: a due date before today, a deadline or a fine or interest start moved before today, or a due date moved past the deadline in force without a new deadline.
201with statusAPPLIED: the provider applied it in its answer.202with statusPENDING: the providerβs outcome is awaited.- Both return a
Locationheader for the request. The body is a receipt; read the current state fromLocation. - A provider refusal closes the request as
REJECTED. The answer carriesamendmentIdandLocation. - Refusals before anything is sent record no request and carry no
amendmentId. - A resend under the same
Idempotency-Keyreturns the same receipt. Once the record expires, it returns200with the request as it is now. - Member order, trailing zeros and spacing do not count when the content is compared. Use one key per intended amendment.
POST
Request an amendment of a registered boleto
Headers
Path Parameters
Body
application/json
Response
OK. A resend under the same Idempotency-Key after its record expired: the recorded request as it is now.

