> For the complete documentation index, see [llms.txt](https://aplazo.gitbook.io/aplazo-integrations/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://aplazo.gitbook.io/aplazo-integrations/in-store-api/payment-cancellations.md).

# Payment Cancellations

Common scenarios include the customer changing their mind, modifying their order, discovering an error in the transaction details, or timing out after a certain period of inactivity (e.g., 15 minutes). By canceling a pending payment, you maintain accurate records and prevent invalid or incomplete transactions.

{% hint style="warning" %}
Cancellations apply only before the consumer has confirmed and paid the first installment. If the payment is already has an `OUTSTANDING` status, you should [request a refund](/aplazo-integrations/api-reference/in-store-api/request-a-refund.md).
{% endhint %}

### Reasons to Cancel

* **Customer Opt-Out**\
  If the customer decides not to proceed, canceling the payment request ensures it does not remain pending.
* **Order Modifications**\
  A customer might remove or add items at the last minute, making the original payment request invalid. In this case, you should cancel the payment a create a new one.
* **General Errors**\
  Such as a using a wrong phone number for the checkout or adding the wrong product to the cart,
* **Inactivity**\
  You can cancel any payment request that remains as `REQUEST` after a set period, ensuring stale transactions do not remain open.

### How to Cancel

1. **Send a Cancel Request**\
   Send a [cancellation request](/aplazo-integrations/api-reference/in-store-api/cancel-payment.md) with the relevant transaction identifier. This immediately voids the pending payment.
2. **Initiate a New Payment (If Needed)**\
   If the customer decides to continue or the order requires reprocessing with updated details, simply [start a new payment request](/aplazo-integrations/api-reference/in-store-api/create-a-payment.md).
