Commerce Layer · Arazzo Workflow
Commerce Layer Add Two Line Items to an Order
Version 1.0.0
Create an order, then add two SKU line items to it and read the recalculated totals.
View Spec
View on GitHub
Headless CommerceComposable CommerceAPI-FirstEcommerceJSON:APIOAuth 2.0Multi-MarketMulti-CurrencyB2CB2BSubscriptionsPromotionsInventoryOrder ManagementCheckoutArazzoWorkflows
Provider
Workflows
order-add-two-line-items
Create an order and add two SKU line items to it.
Creates a draft order, adds two SKU line items, then retrieves the order to read the recalculated SKU count and totals.
1
createOrder
POST/orders
Create a draft order in the supplied market.
2
addFirstLineItem
POST/line_items
Add the first SKU line item to the order.
3
addSecondLineItem
POST/line_items
Add the second SKU line item to the order.
4
getOrder
GET/orders/orderId
Retrieve the order to read the recalculated SKU count and totals.