shopify_order_cancel
Cancel a Shopify order and decide whether to return items to inventory. Choose a reason and optionally notify the customer; cancellation is final.
Instructions
Cancel an order. restock has to be stated: true returns the items to inventory, false leaves stock as it is. Shopify does this in the background and answers with a job, so no errors means accepted rather than finished. Cancelling cannot be undone.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"variables": "<variables>"
},
"name": "shopify_order_cancel"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| variables | Yes | The order to cancel. |