cancel_order
Cancel a Shopify order using its ID. Optionally include a reason, refund payment, and restock inventory.
Instructions
Cancel an order
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": {
"id": "<id>"
},
"name": "cancel_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Order ID (e.g., 'gid://shopify/Order/123456789') | |
| reason | No | Cancellation reason | |
| refund | No | Whether to refund the order | |
| restock | No | Whether to restock inventory |