Create Cart and Apply Coupon
A 2-step recipe with Swell. We can help you get access.
Recipe · 2 steps
Create Cart and Apply Coupon
with Swell
Create a cart with items, then apply a coupon code.
- Create a cart for the account with the supplied line items.
- Update the cart to set the coupon code so the discount applies.
What you'll need to have ready
- account_id: The account the cart belongs to.
- items: Line items to place in the cart.
- coupon_code: The coupon code to apply to the cart.
- currency: ISO 4217 currency code.
For your developer
Arazzo workflow swell-io:create-cart-and-apply-coupon, 2 operations: createCart → updateCart. Specs on APIs.io.