{"section":"tutorials","requestedLocale":"en","requestedSlug":"how-long-does-it-take-to-cancel-an-order-with-an-unpaid-boleto","locale":"en","slug":"how-long-does-it-take-to-cancel-an-order-with-an-unpaid-boleto","path":"docs/en/tutorials/payments/payment-methods-and-conditions/bank-slips/how-long-does-it-take-to-cancel-an-order-with-an-unpaid-boleto.md","branch":"main","content":"When a boleto (for stores in Brazil) for an order isn't paid, the order is automatically canceled. The total time before cancellation is the sum of the following periods:\n\n- [Boleto validity period](#boleto-validity-period)\n- [Product reservation release period](#product-reservation-release-period)\n- [Order cancellation period](#order-cancellation-period)\n\n## Boleto validity period\n\nThe boleto validity period is the number of days the customer has to pay the boleto after it's issued. Once the validity period ends, the boleto can no longer be paid.\n\nSome payment providers allow you to configure the boleto validity period in the VTEX Admin. To check if your payment provider offers this option, follow the steps below:\n\n1. In the VTEX Admin, go to **Store Settings > Payment > Providers**, or type **Providers** in the search bar at the top of the page.\n2. On the providers page, enter the provider name and click it.\n3. On the provider configuration page, check if there's a field to configure the boleto validity period.\n4. Enter the desired validity period in days.\n5. Click `Save`.\n\n> ⚠️ If your payment provider doesn't allow you to configure the boleto validity period in the VTEX Admin, contact the provider's technical support to configure it.\n\n## Product reservation release period\n\nTo prevent an unpaid order from affecting store operations, the reservation of purchased products is released even if the order remains pending payment. The reservation release period is the **boleto validity period + four, five, or six calendar days**, depending on the day of the week the validity period ends:\n\n| Boleto expiration day | Calendar days added to the validity period | Reservation release day |\n| :-------------------- | :----------------------------------------- | :---------------------- |\n| Sunday                | 4                                          | Thursday                |\n| Monday                | 4                                          | Friday                  |\n| Tuesday               | 4                                          | Saturday                |\n| Wednesday             | 5                                          | Monday                  |\n| Thursday              | 5                                          | Tuesday                 |\n| Friday                | 5                                          | Wednesday               |\n| Saturday              | 6                                          | Friday                  |\n\nFor more information about product reservation, see [How the reservation works](/en/docs/tutorials/how-does-reservation-work).\n\n## Order cancellation period\n\nThe order is canceled 20 days after the reservation is released, meaning the total time before cancellation is the **reservation release period + 20 days**.\n\nFor example, an order without payment whose boleto has a 5-day validity, expiring on a Thursday, is canceled 30 days after the purchase is completed:\n\n- Boleto validity period = 5 days.\n- Reservation release period = 5 + 5 = 10 days.\n- Order cancellation period = 10 + 20 = 30 days.\n\nThe following timeline shows the periods in this example, counted from the moment the purchase is completed:\n\n```mermaid\n%%{init: {'flowchart': {'htmlLabels': true, 'useMaxWidth': false, 'wrappingWidth': 500, 'padding': 14}}}%%\nflowchart LR\n    A[\"Day 0<br/>Checkout\"] -->|\"Boleto validity:<br/>5 days\"| B[\"Day 5 (Thursday)<br/>Boleto expiration\"]\n    B -->|\"+ 5 calendar days\"| C[\"Day 10 (Tuesday)<br/>Reservation release\"]\n    C -->|\"+ 20 days\"| D[\"Day 30<br/>Order cancellation\"]\n```\n\nUntil cancellation, you can still approve the order's boleto payment, as described in [Approving boleto payments (for stores in Brazil)](/en/docs/tutorials/approving-payment-of-the-bank-payment-slip). To cancel the order before then, see [How to cancel orders](/en/docs/tutorials/canceling-orders)."}