Swell · Arazzo Workflow
Swell Storefront Add Item and Submit Order
Version 1.0.0
Look up a product, add it to the session cart, then submit the cart as an order.
View Spec
View on GitHub
CommerceHeadless CommerceAPI-FirstB2CB2BSubscriptionsMarketplacesWholesaleStorefrontCheckoutPaymentsCartsOrdersCatalogInternationalizationArazzoWorkflows
Provider
Workflows
storefront-add-item-and-submit-order
Resolve a product, add it to the cart, then submit the order.
Gets a product by slug, adds it to the session cart, then submits the cart as an order.
1
getProductStep
frontendGetProduct
Retrieve the product by slug to resolve its id.
2
addItemStep
frontendAddCartItem
Add the resolved product to the session cart with the given quantity.
3
submitOrderStep
frontendSubmitOrder
Submit the current cart, converting it into an order.