Cancel an issued boleto
Cancels a boleto in CREATED status. No ledger entry is recorded: issuance reserves no balance, so there is nothing to reverse.
Providers: Lerian (PCR) and BTG.
How it works
- Every attempt is recorded before the provider is called. Its id comes back as
cancellationId. - A provider that confirms in the call returns
200with the boletoCANCELED. - A provider that confirms later returns
202withcancellationIdandpendingCancellation. The boleto staysCREATEDuntilBOLETO_CANCELEDorBOLETO_CANCEL_FAILEDis notified. - While that attempt is pending, a new cancellation under any
Idempotency-Keyreturns the same202, without a new attempt. - Every confirmed cancellation sends one
BOLETO_CANCELEDnotification. A later write-off by the provider sends nothing more. - An amendment awaiting the provider is closed as
SUPERSEDEDwhen the cancellation is confirmed or accepted. - A boleto of another organization returns
404, the same as one that does not exist. - When the provider refuses with a code from its declared refusal catalog, the response carries that code, its status and
providerReasonwhen given.
POST
Cancel an issued boleto
Cabeçalhos
Parâmetros de caminho
Resposta
OK. The provider confirmed the cancellation: the boleto is CANCELED. The body carries cancellationId.

