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:APIAuthenticationMulti-MarketMulti-CurrencyB2CB2BSubscriptionPromotionsInventoryOrder 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.
Source API Descriptions
Arazzo Workflow Specification
Work with this as data
Every workflow here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for arazzo workflows
4 MCP tools reach this
find_arazzoBrowse and filter every workflow in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/commerce-layer-build-cart-branch-on-status-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.