Add Line Item and Read It Back
A 2-step recipe with Commerce Layer. We can help you get access.
Recipe · 2 steps
Add Line Item and Read It Back
with Commerce Layer
Add a SKU line item to an order and read it back.
- Add the SKU line item to the supplied order.
- Retrieve the created line item to read its resolved attributes.
What you'll need to have ready
- accessToken: Bearer access token for the Commerce Layer organization.
- orderId: The id of the order to add the line item 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:add-line-item-get-line-item, 2 operations: POST/line_items → GET/line_items/lineItemId. Specs on APIs.io.