Introduction

Authentication

Test cards

Establishments

Users

Customers

Cards

Payment links

Error codes

Payment Split

Products

Discount Coupons

Sales

Signatures

Webhooks

Financial


On this page:


POST Cancel bank slips from a sale

https://api.premepay.com/v1/stores/:id/orders/:orderNumber/boletos/cancel

Pending tickets are automatically canceled after 90 days from the due date. If you wish to cancel them before that time, use these endpoints.

You can cancel all pending tickets for a sale. If you want to cancel only one ticket, learn more here.

If a sale has at least one paid ticket and you cancel a pending one, the sale will be classified as Partially Confirmed. If a sale has multiple pending tickets and you cancel only one, the sale will be classified as Partially Canceled.

<aside> 🚧 Only pending boletos can be cancelled. If you wish to refund a boleto that has already been paid, find more information by clicking here.

</aside>

Responses

If your request is successful, you will receive the return of the consumer object.

If your request has invalid creation parameters - for example, specifying an invalid field or value - you may receive an error response. Below is the complete list of possible error responses:


Related Content

<aside> <img src="https://s3-us-west-2.amazonaws.com/secure.notion-static.com/52c5ff42-e8bf-45d3-81d1-b6e05786a688/POST.png" alt="https://s3-us-west-2.amazonaws.com/secure.notion-static.com/52c5ff42-e8bf-45d3-81d1-b6e05786a688/POST.png" width="40px" /> POST - Create refund

</aside>

<aside> <img src="https://s3-us-west-2.amazonaws.com/secure.notion-static.com/52c5ff42-e8bf-45d3-81d1-b6e05786a688/POST.png" alt="https://s3-us-west-2.amazonaws.com/secure.notion-static.com/52c5ff42-e8bf-45d3-81d1-b6e05786a688/POST.png" width="40px" /> POST - Create refund - Credit card and Pix

</aside>