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-FirstE-CommerceJSON:APIOAuthMulti-MarketMulti-CurrencyConsumerB2BSubscriptionPromotionsInventoryOrder ManagementCheckoutAuthenticationArazzoWorkflows
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
2
3
getOrder
Retrieve the order and read its status for branching.
4
placeOrder
Toggle the documented _place transition flag to submit the draft order.
Source API Descriptions
openapi
Arazzo Workflow Specification
Work with this as data
Every workflow here is available over the APIs.io API and to AI agents over MCP.