Magento 2 order processing is a constant flow of customers, orders, shipments, restocking, and other important backend and frontend tasks. While most of these tasks are easy to complete, the real challenge appears when customers make mistakes in their orders. In this case, you need to cancel orders in Magento 2. 

So, in this guide, you'll learn how to do that in two different ways.

Why Cancel Orders in Magento? 

The most common case when you need to cancel orders in Magento is when there is something wrong with the ordered items or customers just want to return them. Nevertheless, if the reason for the cancelling is not the refund, you can still edit orders without cancelling instead of creating a new order.

For that, you need the Magento 2 Order Editor. This solution helps you edit any order details from order number, and customer name to ordered items and tax classes. 

Magento Edir Order Without Cancel

If you still want to cancel orders in Magento, refer to the options below.

Cancel Order in Magento 2 via Grid and Order View Page

1. Go to Sales > Orders and tick the Orders you want to cancel.

Pending Order Magento 2

2. Select the Cancel option from the mass action dropdown and confirm the action.

Cancel Order in Magento 2

It is as simple as that. If you want to cancel an order from the order view page you have to take one more step.

3. Go to the order your want to cancel and press the Cancel button from the top bar.

How to Cancel Order in Magento 2

Notice something similar in both cases?

It seems relatively simple to cancel orders this way. But it is not THAT simple. You can cancel only orders with certain statuses — on hold, pending. So, Magento allows you to cancel orders this way only before they are invoiced and shipped. That's how Magento order statuses work.

As you can see orders with Processing or any other status can't be canceled.

Order View Page Magento

Note: once you cancel or close orders they all are still stored in the order grid. It makes it hard to find orders with other statuses. So, we recommend to delete orders in Magento if you no longer need them.

Cancel Order in Magento 2 via Credit Memo

If you want to cancel orders that have been already paid for, you need to create a credit memo (refund) — a document that authorizes the return of the funds to the customer.

Magento 2 invoice page

And here is when it gets confusing. There are two types of refunds you can create in Magento — online and offline which depend on the payment method used when placing an order.

We already have a step-by-step guide on how to refund order in Magento. Just follow the link to get detailed instructions on how to cancel invoiced orders.