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.
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 |