Create a WooCommerce coupon offer
Approval-gated WooCommerce coupon workflow. It searches for an existing coupon code for context, then creates exactly one coupon with bounded offer fields through recued-core.woocommerce. It never deletes coupons, creates refunds, updates orders, mutates products, changes payment/shipping settings, edits webhooks, or calls arbitrary WordPress admin endpoints.
How it works
Inspect the data fetches, transforms, gates, and output this recipe runs.
Process (13 steps)
code
trim
Trim whitespace from setting code
amount
trim
Trim whitespace from setting amount
description
trim
Trim whitespace from setting description
date_expires
trim
Trim whitespace from setting date expires
minimum_amount
trim
Trim whitespace from setting minimum amount
maximum_amount
trim
Trim whitespace from setting maximum amount
has_code
compare
Check if code has data
has_amount
compare
Check if amount has data
has_required
all
Check if all conditions are true
existing
?
skip: step.has_code not_equal true
created_coupon
?
skip: step.has_required not_equal true
skipped
compare
Check if has required does not equal true
card
to_summary
Format results as a summary card
Settings
Configurable at install. Defaults shown — change them anytime in Recued.
code
setting
=
amount
setting
=
description
setting
=
product ids
setting
=
usage limit
setting
=
0
woocommerce
setting
=
date expires
setting
=
discount type
setting
=
percent
maximum amount
setting
=
minimum amount
setting
=
email restrictions
setting
=
product categories
setting
=
usage limit per user
setting
=
0
Trust & control
What installing this recipe would let it do. Recued grants these permissions at install — review them there before approving.