Storefront Validate and Apply Coupon
A 2-step recipe with Swell. We can help you get access.
Recipe · 2 steps
Storefront Validate and Apply Coupon
with Swell · Discount & Promotion Management
Validate a coupon code, then apply it to the cart when valid.
- Validate the coupon code before applying it.
- Apply the validated coupon code to the current session cart.
What you'll need to have ready
- publicKey: Public storefront key, prefixed with pk_.
- code: The coupon code to validate and apply.
For your developer
Arazzo workflow swell-io:storefront-validate-and-apply-coupon, 2 operations: frontendGetCoupon → frontendApplyCoupon. Specs on APIs.io.