wafle_orders_cancel
Cancel an order and issue a refund if supported. Restocks inventory and moves the order to cancelled status; requires user confirmation before running.
Instructions
Cancel an order. If the gateway supports auto-refund and the order was paid, wafle will trigger the refund.
Destructive: the order moves to cancelled and inventory is restocked. Confirm with the user before running.
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": {
"slug": "<slug>",
"order_id": "<order_id>"
},
"name": "wafle_orders_cancel"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| slug | Yes | Wafle store slug, e.g. 'gamerland' or 'lensitive'. | |
| reason | No | ||
| refund | No | Whether to also issue a refund (if applicable). | |
| order_id | Yes |