Commerce Layer · Arazzo Workflow
Commerce Layer Build Cart and Branch on Order Status
Version 1.0.0
Create an order, add a line item, read the order, and branch to place it only when it is in draft.
View Spec
View on GitHub
Headless CommerceComposable CommerceAPI-FirstEcommerceJSON:APIOAuth 2.0Multi-MarketMulti-CurrencyB2CB2BSubscriptionsPromotionsInventoryOrder ManagementCheckoutArazzoWorkflows
Provider
Workflows
build-cart-branch-on-status
Create an order, add a line item, and place it only when still in draft.
Creates an order, adds a SKU line item, reads the order back, then branches on the order status to place the order when it is still in draft.
1
createOrder
POST/orders
Create a draft order in the supplied market.
2
addLineItem
POST/line_items
Add a SKU line item to the order.
3
getOrder
GET/orders/orderId
Retrieve the order and read its status for branching.
4
placeOrder
PATCH/orders/orderId
Toggle the documented _place transition flag to submit the draft order.