ActionWooCommerceUpdated September 2026

How do I create a WooCommerce coupon from a workflow?

Short answer: You can create coupon in WooCommerce by hand from its own interface, but it won’t repeat itself. On TinyCommand, add the WooCommerce Create Coupon action to a workflow, map its 10 inputs from any upstream app, and it runs automatically every time the trigger fires. No code, and a free tier to start.

Create Coupon in WooCommerce — start free
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 run history shows the failed step with its input and the error message WooCommerce returned, so you can fix the input and run the workflow again. Automatic retries are built into HTTP steps only, where you can also set your own retry count and delay.
Does Create Coupon support batch operations?
Run Create Coupon inside a loop to process each item in an array. TinyCommand does not throttle calls for you, so for large arrays add a Delay step if you need to stay within WooCommerce's rate limits.
More actions

Other WooCommerce actions.

Create Coupon in WooCommerce — start free