Swell · Arazzo Workflow
Swell Storefront Validate and Apply Coupon
Version 1.0.0
Validate a coupon code, then apply it to the session cart only when it is valid.
View Spec
View on GitHub
CommerceHeadless CommerceAPI-FirstB2CB2BSubscriptionsMarketplacesWholesaleStorefrontCheckoutPaymentsCartsOrdersCatalogInternationalizationArazzoWorkflows
Provider
Workflows
storefront-validate-and-apply-coupon
Validate a coupon code, then apply it to the cart when valid.
Gets coupon validity by code; on a valid coupon it applies the code to the session cart, otherwise it ends.
1
validateCouponStep
frontendGetCoupon
Validate the coupon code before applying it.
2
applyCouponStep
frontendApplyCoupon
Apply the validated coupon code to the current session cart.