Create Product and Targeted Coupon
A 3-step recipe with WooCommerce. We can help you get access.
Recipe · 3 steps
Create Product and Targeted Coupon
with WooCommerce · Discount & Promotion Management
Create a product and a coupon restricted to that product.
- Create the product that the coupon will be restricted to.
- Create a percentage coupon whose applicable products are restricted to the new product.
- Read the coupon back to confirm the product restriction persisted.
What you'll need to have ready
- productName: Name of the product to create.
- regularPrice: Regular price of the product as a decimal string.
- couponCode: Code for the coupon to create.
- couponAmount: Discount amount as a decimal string.
For your developer
Arazzo workflow woocommerce:create-product-coupon, 3 operations: createProduct → createCoupon → getCoupon. Specs on APIs.io.