Commerce Layer · Arazzo Workflow
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.
View Spec
View on GitHub
Headless CommerceComposable CommerceAPI-FirstEcommerceJSON:APIOAuth 2.0Multi-MarketMulti-CurrencyB2CB2BSubscriptionsPromotionsInventoryOrder ManagementCheckoutArazzoWorkflows
Provider
Workflows
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.
1
createOrder
POST/orders
Create a draft order associated to the supplied market.
2
addLineItem
POST/line_items
Add a SKU line item to the order using the SKU code and quantity.
3
getOrder
GET/orders/orderId
Retrieve the order to read back its recalculated totals.