get_coupon
Retrieve full WooCommerce coupon details including usage limits, product restrictions, and expiry date. Optionally request only specific fields.
Instructions
Get full coupon details including usage limits, product restrictions, and expiry date. Use fields param to request only needed fields.
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": {
"id": "<id>"
},
"name": "get_coupon"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Coupon ID | |
| fields | No | Comma-separated fields to return (default: id,code,discount_type,amount,usage_count,date_expires,individual_use,product_ids,excluded_product_ids,usage_limit,usage_limit_per_user,minimum_amount,maximum_amount,free_shipping) |