woo_update_coupon
Update an existing WooCommerce coupon by providing its ID and optionally modifying code, discount type, amount, usage limits, expiry date, free shipping, product restrictions, and minimum/maximum amounts.
Instructions
Update a coupon
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Coupon ID | |
| code | No | ||
| discount_type | No | ||
| amount | No | ||
| individual_use | No | ||
| usage_limit | No | ||
| usage_limit_per_user | No | ||
| date_expires | No | ||
| free_shipping | No | ||
| product_ids | No | ||
| excluded_product_ids | No | ||
| minimum_amount | No | ||
| maximum_amount | No |