capabilities.work

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

Create a return, add a return line item, and request the return.

  1. Create the return associated to the order.
  2. Add a return line item referencing the return and the order line item.
  3. 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.