gold_create_refund
Create a refund for a WooCommerce order by order ID, specifying amount, reason, and line items. Requires explicit CONFIRM to process the refund request.
Instructions
Gold PRO $29: create refund via POST /wp-json/wc/v3/refunds — BYOK fail-closed. Destructive.
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": "gold_create_refund"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | No | ||
| reason | No | ||
| confirm | No | must be CONFIRM to execute | |
| order_id | Yes | ||
| api_refund | No | ||
| line_items | No | ||
| refund_payment | No |