Skip to main content
Published: June 24 2009, 2:31:00 PMUpdated: November 28 2020, 7:39:12 PM

I am running the SoldReport and was wondering what the difference between OrderDetails.OrderID and OrderDetails.OrderItemDetails.OrderLineItem.OrderLineItemID?

In the Large Merchant Services solution, every sale is considered to be an Order, this is slightly different from the Trading API. The SoldReport returns the sellers orders. Orders returned in a SoldReport could be single transaction orders or multi- transaction orders.

Lets look at each of the two cases -

Multi-transaction orders -
The concept of an 'Order' comes to play in the Trading API only when a buyer makes combined payments or when the seller sends the buyer an invoice for all the items that the buyer purchased but hasn't paid. In this situation, the the SoldReport OrderDetails container will have a multiple OrderLineItem containers. Also OrderDetails.OrderID returned by the SoldReport will be equal to the OrderID that you will see in My eBay or look up via Trading API order related calls such as GetOrders, GetOrderTransactions etc. Each of the OrderLineItemIDs will reflect the individual sales or transactions as OrderLineItemID which is ItemID-TransactionID.

Single transaction orders -
However in the case of single item (single/multi-quantity) purchases and payments, the OrderDetails.OrderID  will be equal to the OrderDetails.OrderItemDetails.OrderLineItem.OrderLineItemID which is simply ItemID-TransactionID. In this case the SoldReport OrderDetails container will have a single OrderLineItem container.

Users of the LMS API should make sure that they implement their application to be able to handle both single and multiple line item orders returned in the SoldReport.

Additional Reading
Getting Sales and Order information in the Trading API


How well did this answer your question?
Answers others found helpful