May I please have confirmation of the points below by anyone who’s run into similar requirements?
-
I’ve noted from other forum posts that the way to get an Order’s original LineItem details for a Return is to go through the FulfillmentLineItems. I.e. If I have an order with multiple items, one of which is ‘Blue T-Shirt’ which gets returned, I’d essentially go (pardon my simplified object) Order.Return.ReturnLineItem.FulfillmentLineItem.LineItem to get things like the Order’s Line Item Id, the SKU, etc.
Can anyone confirm this? -
An Unverified Return seems to create a new Order with new lines which represent the items being returned. However, in an Unverified Return, the customer always gets a gift card. So if I return two items in an Unverified Return, the resulting new Order has three LineItems - the two products and a gift card, and two UnverifiedReturnLineItems. How do I match the two product Order LineItems to the two UnverifiedReturnLineItems?
One possible solution seems to be to use the Customer Account API, which has a LineItem object (see UnverifiedReturnLineItem - Customer API) going through Customer.Orders.Returns…etc.
Can anyone confirm that this is the way to go?
I would like to avoid a solution whereby I just match the two lists of lines based on their ordering.
Thanks in advance!