Cancel order

TheCancel orderactioncancelsthe order that triggers the workflow.

On this page

Fields

TheCancel orderaction contains the following fields.

Fields used in the Cancel order action.
Field Description
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 toCustomer 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.

Triggers

TheCancel orderaction has a hidden field added to it by the trigger. This field,Order ID(或order.id), identifies the order to cancel. The order ID is set by default and can't be changed.

TheCancel orderaction can be used in workflows that start with the following triggers:

Example

Example of a workflow that cancels an order when its risk level is high

In this example workflow, an order is canceled when its risk level is high.

API details

为了了解更多,审查Cancel an order.

Ready to start selling with Shopify?

Try it free