This page was printed on Jun 10, 2023. For the current version, visit https://help.shopify.com/en/manual/shopify-flow/reference/actions/cancel-order.
The Cancel order action cancels the order that triggers the workflow.
The Cancel order action contains the following fields.
|Send a notification to the customer||When checked, the workflow notifies the customer that their order has been cancelled.|
|Reason||Required. Indicates the reason for the cancellation of the order. By default, the reason is set to Customer changed/cancelled order.|
|Refund items||When checked, charges for the product and for duties are refunded to the customer.|
|Refund shipping||When checked, charges for shipping are refunded to the customer.|
|Restock items||When checked, items from the order are returned to the store's inventory.|
The Cancel order action has a hidden field added to it by the trigger. This field, Order ID (or
order.id), identifies the order to cancel. The order ID is set by default and can't be changed.
The Cancel order action can be used in workflows that start with the following triggers:
- Fulfillment created
- Fulfillment event created
- Order cancelled
- Order created
- Order fulfilled
- Order paid
- Order risk analyzed
- Order transaction created
- Refund created
- Tender transaction created
In this example workflow, an order is canceled when its risk level is high.
To learn more, review Cancel an order.