Add Two Line Items to an Order
A 4-step recipe with Commerce Layer. We can help you get access.
Recipe · 4 steps
Add Two Line Items to an Order
with Commerce Layer · Order Fulfilment Management
Create an order and add two SKU line items to it.
- Create a draft order in the supplied market.
- Add the first SKU line item to the order.
- Add the second SKU line item to the order.
- Retrieve the order to read the recalculated SKU count and totals.
What you'll need to have ready
- accessToken: Bearer access token for the Commerce Layer organization.
- marketId: The id of the market the order belongs to.
- skuCodeOne: The first SKU code to add.
- quantityOne: Quantity for the first SKU.
- skuCodeTwo: The second SKU code to add.
- quantityTwo: Quantity for the second SKU.
For your developer
Arazzo workflow commerce-layer:order-add-two-line-items, 4 operations: POST/orders → POST/line_items → POST/line_items → GET/orders/orderId. Specs on APIs.io.