WooCommerce · Arazzo Workflow
WooCommerce Upsert Coupon by Code
Version 1.0.0
Find a coupon by its code and create it only if it does not already exist.
Provider
Workflows
upsert-coupon-by-code
Upsert a coupon keyed on its code, creating it only when missing.
Searches existing coupons by code and either reads the matched coupon or creates a new one when no match exists.
1
findCoupon
Search existing coupons for one matching the supplied code, returning at most one result.
2
3
createNew
Create a new coupon with the supplied code and discount when no existing coupon matched.
Source API Descriptions
Arazzo Workflow Specification
Work with this as data
Every workflow here is available over the APIs.io API and to AI agents over MCP.