Update Coupon
Modify existing WooCommerce coupons.
Overview
The Update Coupon action modifies an existing WooCommerce coupon’s settings. Use this to adjust discounts, extend expiry dates, or update usage limits.
Configuration
Required Fields
| Field | Type | Description |
|---|---|---|
| Coupon | integer/string | Coupon ID or code |
Optional Fields
All fields from Create Coupon can be updated.
Example Configurations
Extend Expiry
Coupon: {{Trigger.coupon_code}}
Expiry Date: +30 days
Increase Discount
Coupon: HOLIDAY2024
Amount: 25
Reset Usage
Coupon: {{Trigger.coupon_id}}
Usage Limit: 100
Add Restrictions
Coupon: SPECIAL10
Minimum Spend: 50
Maximum Spend: 200
Output Data
| Variable | Type | Description |
|---|---|---|
{{Action.coupon_id}} | integer | Coupon ID |
{{Action.code}} | string | Coupon code |
Common Workflows
VIP Upgrade
- Trigger: Customer reaches VIP status
- Action: Update Coupon
- Increase discount percentage
- Remove restrictions
Flash Sale
- Trigger: Sale starts
- Action: Update Coupon
- Increase amount temporarily
- Set short expiry
Usage Reset
- Trigger: Monthly schedule
- Action: Update Coupon
- Reset usage count
Best Practices
- Track changes for audit
- Notify affected customers
- Test changes before peak times
- Document promotion schedules