Shopify: Cancel Order logo

Catalog action Integrations shopify

Cancel an order in your Shopify store. Supports restocking, refunds, customer notification, and staff notes. Ideal for: order management, fraud prevention, customer service, inventory recovery. Required scope: write_orders.

At a Glance

FieldValue
Action IDshopify-cancel-order
CategoryIntegrations
Connectorshopify
Requires gasNo
Funds movementNone declared
Tagsshopify, ecommerce, orders, write

Payload Schema

FieldTypeRequiredDescription
orderIdstringYesOrder GID to cancel (e.g., gid://shopify/Order/123)
reasonstringYesReason for canceling the order
restockbooleanNoWhether to restock the order's line items. Default: false
refundbooleanNoWhether to refund the order payment. Default: false
notifyCustomerbooleanNoWhether to notify the customer about the cancellation. Default: false
staffNotestringNoNote for staff about the cancellation

Result Schema

FieldTypeRequiredDescription
successbooleanYesWhether the order cancellation was initiated successfully
dataobjectNoCancellation job data
exportsobjectNoExported values from the action

Examples

json
{ "type": "shopify-cancel-order", "payload": { "orderId": "example-orderId", "reason": "CUSTOMER" }, "children": [], "connector": { "type": "shopify", "id": "conn_shopify" }}

Payload fields can use workflow expressions such as {{$trigger.body.amount}}, {{$nodes.fetch.result.price}}, and {{$props.asset}} when the value should come from a trigger, prior node, or reusable workflow prop.

Ask a question... ⌘I