cancel_order
Cancel a Shopify order and optionally notify the customer, specify reason, and restock inventory.
Instructions
Cancel an order. Optionally specify a reason and whether to send a notification email to the customer. This may also trigger a refund depending on restock and refund settings.
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": {
"order_id": "<order_id>"
},
"name": "cancel_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| order_id | Yes | The numeric Shopify order ID to cancel. | |
| reason | No | Cancellation reason. | |
| No | Whether to notify the customer by email. Default: true. | ||
| restock | No | Whether to restock the inventory. Default: false. |