Create Order and Add Line Item
A 3-step recipe with Commerce Layer. We can help you get access.
Recipe · 3 steps
Create Order and Add Line Item
with Commerce Layer · Order Fulfilment Management
Create an order, add a SKU line item, and read the order back.
- Create a draft order associated to the supplied market.
- Add a SKU line item to the order using the SKU code and quantity.
- Retrieve the order to read back its recalculated 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.
- skuCode: The SKU code to add as a line item.
- quantity: The quantity of the SKU to add.
For your developer
Arazzo workflow commerce-layer:create-order-add-line-item, 3 operations: POST/orders → POST/line_items → GET/orders/orderId. Specs on APIs.io.