create_coupon
Generate discount codes for WooCommerce stores by specifying coupon type, amount, expiration, and usage limits to boost sales and customer retention.
Instructions
Create a coupon. discount_type: percent, fixed_cart, fixed_product. Amount as string (e.g. '10' for 10% or $10).
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>"
},
"name": "create_coupon"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | ||
| discount_type | No | percent | |
| amount | No | 10 | |
| free_shipping | No | ||
| expiry_date | No | ||
| usage_limit | No | ||
| minimum_amount | No | ||
| individual_use | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |