{"section":"tracks","requestedLocale":"en","requestedSlug":"canceling-an-order","locale":"en","slug":"canceling-an-order","path":"docs/en/tracks/vtex-modules-getting-started/orders/canceling-an-order.md","branch":"main","content":"You can cancel an order with VTEX in three different ways:\n- Through the **Orders** module in VTEX Admin.\n- Through API.\n- Following the customer's request.\n\n> ⚠️ Once an order is canceled, you cannot change its status. Orders that have **invoiced** status can not be canceled.\n\n> ℹ️ Orders with [partial invoices](/en/docs/tracks/partial-invoices) cannot be [canceled](/en/docs/tutorials/canceling-orders). If the customer wants to replace or remove items from the order, it is possible to [change the order](/en/docs/tutorials/changing-items-from-a-complete-order).\n\n## Cancellation through Orders module\n\n1. In the VTEX Admin, go to **Orders > All Orders**, or type **All Orders** in the search bar at the top of the page.\n2. Click the desired order.\n3. On the top bar, click `Cancel order`. \n4. Click `Confirm`.\n\n- When the order is in `Ready for handling` or `Preparing Delivery` status, cancellation must be done twice. When you first click **Cancel**, the status changes to `Cancellation requested`.\n- When the order is already in the `Cancellation requested` status, simply click **Cancel** again to change the order to `Canceled`.\n- To continue with this order, simply enter the invoice.\n\n## Cancellation through API Rest\n\nYou can cancel through your ERP using the [Cancel order API](https://developers.vtex.com/docs/api-reference/orders-api#post-/api/oms/pvt/orders/-orderId-/cancel). \n\nCheck out our [ERP integration guide](https://developers.vtex.com/docs/erp-integration-set-up-order-processing) for the full walkthrough.\n\n## Cancellation requested by the customer\n\nThe customer can request the cancellation of the order through the **My orders** screen.\n\nIf the customer requests cancellation within the grace period of the order, which is [configurable](/en/docs/tutorials/setting-the-grace-period-for-order-cancellation), the store does not need to approve cancellation. It is considered that the picking, packing and delivery flow has not yet started, so the cancellation would not bring any burden to the store.\n\nAfter the grace period, it is understood that the store is already acting on the order. In such case, the store must confirm the cancellation request.\n\nCheck out our article [customer requested full cancellation](/en/docs/tutorials/order-cancellation-requested-by-the-customer)."}