Cancel and delete a boleto payment by ID

DELETE {{baseUrl}}/{{version}}/boleto-payment/:paymentId

Cancel a scheduled boleto payment. You can only cancel boleto payments before they start being processed.

NOTE: Payments that have already been processed can be deleted, but not cancelled.

RESPONSES

status: OK

{"message":"Payment(s) successfully deleted","payment":{"amount":2237,"barCode":"34195926200000022371091044643877307144464000","created":"2023-02-13T13:52:57.492097+00:00","description":"Corban Tests","fee":0,"id":"5713538530148352","line":"34191.09107 44643.877309 71444.640008 5 92620000002237","scheduled":"2023-02-13T13:52:57.399693+00:00","status":"success","tags":["corban"],"taxId":"20.018.183/0001-80","transactionIds":["45816984065637459525710393641650"]}}