Create Return with Line Item
A 3-step recipe with Commerce Layer. We can help you get access.
Recipe · 3 steps
Create Return with Line Item
with Commerce Layer
Create a return, add a return line item, and request the return.
- Create the return associated to the order.
- Add a return line item referencing the return and the order line item.
- Toggle the documented _request transition flag to submit the return.
What you'll need to have ready
- accessToken: Bearer access token for the Commerce Layer organization.
- orderId: The id of the order the return is for.
- lineItemId: The id of the original order line item being returned.
- quantity: The quantity of the line item to return.
For your developer
Arazzo workflow commerce-layer:create-return-with-line-item, 3 operations: POST/returns → POST/return_line_items → PATCH/returns/returnId. Specs on APIs.io.