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.
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 |