{"section":"tutorials","requestedLocale":"en","requestedSlug":"canceling-orders","locale":"en","slug":"canceling-orders","path":"docs/en/tutorials/orders/all-orders/canceling-orders.md","branch":"main","content":"Orders on VTEX can be canceled at practically any status during their evolution. It must be stressed that once canceled, the order status cannot be altered.\n\n> ⚠️ Orders with [partial invoices](/en/docs/tracks/partial-invoices) cannot be canceled. 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\nThere are two ways of doing this, through the VTEX Admin or API.\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. In **All orders**, access the desired order.\n3. In the top pf the page, click `Cancel order`.\n4. Fill in the fields.\n5. Click `Confirm`.\n\nWhen the status of the order is **Ready for Handling** or **Handling Shipping**, cancellation must be done twice. This is because when you click on the button for the first time the status is changed to **Cancellation requested**.\nWhen the status of the order is **Cancellation requested**, just click again on **Confirm cancellation** to change the order to **Canceled**. If you want to continue with this order, just enter the tax receipt.\n\nIt is not possible to change an order when its status already shows `Invoiced`.\n\n## Cancellation using the ERP\n\nUsing the ERP, this action can take place through our REST API, according to our [ERP Integration Guide](https://developers.vtex.com/docs/erp-integration-set-up-order-processing). You can use the [Cancel order](https://developers.vtex.com/docs/api-reference/orders-api#post-/api/oms/pvt/orders/-orderId-/cancel) endpoint.\n\n## Cancellation requested by the customer\n\nWhen the order cancellation is requested by the customer, the flow is different. Refer to [this article](/en/docs/tutorials/order-cancellation-requested-by-the-customer) to unserstand how cancellation happens in such case."}