- Integrations
- /
- WooCommerce
- /
- Actions
- /
- Create Coupon
ActionWooCommerceUpdated May 2026
How do I create a WooCommerce coupon from a workflow?
Short answer: Drop the "WooCommerce → Create Coupon" action anywhere in your workflow, map the inputs from upstream nodes, and publish.
Inputs
The fields this action accepts.
Every field can be mapped from an upstream trigger, AI step, table row, or hard-coded literal.
| Field | Type | Required | Description |
|---|---|---|---|
Coupon Code code | string | Required | Coupon Code. Example: SAVE20 |
Discount Type discount_type | options | Required | Discount Type. Options: Percentage, Fixed cart discount, Fixed product discount |
Amount amount | string | Required | Discount amount (percentage or fixed) |
Description description | string | Optional | Description. Example: Summer sale 20% off |
Expiry Date date_expires | string | Optional | ISO 8601 date when coupon expires |
Usage Limit usage_limit | string | Optional | Total number of times the coupon can be used |
Limit Per User usage_limit_per_user | string | Optional | Times a single customer can use this coupon |
Minimum Order Amount minimum_amount | string | Optional | Minimum Order Amount. Example: 50.00 |
Free Shipping free_shipping | options | Optional | Free Shipping. Options: No, Yes |
Individual Use Only individual_use | options | Optional | Cannot be combined with other coupons |
Sample request
{"code": "e.g. SAVE20","discount_type": "{{trigger.discount_type}}","amount": "e.g. 20","description": "e.g. Summer sale 20% off","date_expires": "e.g. 2025-12-31T23:59:59"}
Returns
{"id": 101,"code": "SAVE20","amount": "20.00","usage_count": 0,"usage_limit": 100,"date_expires": "2025-12-31T23:59:59","discount_type": "percent","free_shipping": false}
Use these fields in downstream nodes for routing, logging, or error handling.
Triggered by
Apps that pair well as the trigger for Create Coupon.
Any of these apps can fire this action as part of a workflow.
FAQ
Questions about Create Coupon.
What does the Create Coupon action do in WooCommerce?
Creates a new coupon in WooCommerce with code, type (percent/fixed_cart/fixed_product), amount, usage limits, and product/category restrictions. Used to generate personalized discounts from a CRM or campaign tool.
What inputs does Create Coupon require?
Required: Coupon Code, Discount Type, Amount. Every input accepts a static value or a variable from any upstream node in your workflow.
Can I use dynamic inputs from earlier workflow nodes?
Yes. Any field on this action can pull values from upstream nodes, whether that's a form response, a trigger payload, an AI output, or a lookup result.
What happens if WooCommerce returns an error?
The workflow pauses on the failed node, the error message is captured in the run log, and you can retry the run with one click. Auto-retry policies are configurable per workflow with exponential backoff up to 5 attempts.
Does Create Coupon support batch operations?
Yes. Run Create Coupon inside a Loop node to process arrays. Tiny Command handles WooCommerce's rate limits automatically so you don't have to throttle manually.
More actions
Other WooCommerce actions.
Action
Create Customer
Creates a new customer record in WooCommerce with email, name, billing/shipping addresses, and optional metadata. Used when a customer is provisioned upstream (e.g. by your CRM) and needs to exist in Woo.
ActionCreate Order
Creates a new WooCommerce order with line items, customer, addresses, status, and payment method. Used for back-office orders, draft orders to share with a customer, or migration imports.
ActionCreate Product
Creates a new WooCommerce product with name, type (simple/variable/grouped), prices, SKU, stock, images, and category. Used to mirror catalog from a PIM or another store.
ActionDelete Product
Deletes a WooCommerce product. By default moves to trash; pass force=true to permanently delete. Use the soft-delete path so you can recover from accidents.
ActionGet Customer
Returns a single WooCommerce customer by ID with their addresses, role, and order summary. Used to enrich trigger payloads or to render customer-detail UI.
ActionGet Order
Returns a single WooCommerce order by ID with line items, totals, customer, addresses, and order notes. The standard read action after a trigger fires with an ID.
Send create coupon from your workflows.
Triggered by anything in the catalog. Free tier available. No credit card.