gold_create_coupon
Create a WooCommerce discount coupon by specifying code and discount amount, with optional usage limits and expiry date.
Instructions
Gold PRO $29: create Woo coupon via POST /wp-json/wc/v3/coupons — BYOK fail-closed.
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": {
"code": "<code>",
"amount": "<amount>"
},
"name": "gold_create_coupon"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| amount | Yes | ||
| confirm | No | must be CONFIRM to execute | |
| description | No | ||
| expiry_date | No | ||
| usage_limit | No | ||
| discount_type | No | ||
| individual_use | No | ||
| maximum_amount | No | ||
| minimum_amount | No | ||
| exclude_sale_items | No |