Get WooCommerce Coupon
woocommerce_get_couponRetrieve full details and restrictions for a specific WooCommerce coupon, including min/max spend and product restrictions, using its coupon ID.
Instructions
Retrieve full details for a single coupon, including restrictions (min/max spend, product/category restrictions, email restrictions).
Args:
coupon_id (number, required)
response_format ('markdown'|'json'): default 'markdown'
Returns: Full coupon object.
Error Handling:
Returns "Error: Resource not found (404)" if coupon_id doesn't exist.
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": {
"coupon_id": "<coupon_id>"
},
"name": "woocommerce_get_coupon"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| coupon_id | Yes | The numeric WooCommerce coupon ID | |
| response_format | No | Output format: 'markdown' for human-readable text or 'json' for machine-readable structured data | markdown |