Skip to content
ActionWooCommerceUpdated May 2026

How do I create a WooCommerce coupon from a workflow?

Short answer: Drop the "WooCommerceCreate 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.

FieldTypeRequiredDescription
Coupon Code
code
stringRequiredCoupon Code. Example: SAVE20
Discount Type
discount_type
optionsRequiredDiscount Type. Options: Percentage, Fixed cart discount, Fixed product discount
Amount
amount
stringRequiredDiscount amount (percentage or fixed)
Description
description
stringOptionalDescription. Example: Summer sale 20% off
Expiry Date
date_expires
stringOptionalISO 8601 date when coupon expires
Usage Limit
usage_limit
stringOptionalTotal number of times the coupon can be used
Limit Per User
usage_limit_per_user
stringOptionalTimes a single customer can use this coupon
Minimum Order Amount
minimum_amount
stringOptionalMinimum Order Amount. Example: 50.00
Free Shipping
free_shipping
optionsOptionalFree Shipping. Options: No, Yes
Individual Use Only
individual_use
optionsOptionalCannot 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.

Send create coupon from your workflows.

Triggered by anything in the catalog. Free tier available. No credit card.