Commerce Layer Create Order and Add Line Item
Version 1.0.0
Create a draft order in a market, add a SKU line item to it, then read the order back.
1 workflow
2 source APIs
1 provider
View Spec
View on GitHub
Headless CommerceComposable CommerceAPI-FirstE-CommerceJSON:APIAuthenticationMulti-MarketMulti-CurrencyB2CB2BSubscriptionPromotionsInventoryOrder ManagementCheckoutArazzoWorkflows
create-order-add-line-item
Create an order, add a SKU line item, and read the order back.
Creates a draft order in the supplied market, adds a single SKU line item referencing the order, and retrieves the order to expose its totals.
3 steps
inputs: accessToken, marketId, quantity, skuCode
outputs: lineItemId, orderId, totalAmountCents
1
createOrder
Create a draft order associated to the supplied market.
2
addLineItem
Add a SKU line item to the order using the SKU code and quantity.
3
getOrder
Retrieve the order to read back its recalculated totals.
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.
All 92 tools →
Call it yourself
curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/commerce-layer-create-order-add-line-item-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. See our Privacy Policy and
Terms.
A second provider on the same verified email joins the account you already have.