Skip to main content
Published: September 30 2011, 3:21:00 PMUpdated: November 28 2020, 10:00:09 PM

Why does GetOrders return the "Multiple line item OrderID" or "combined payment OrderID" but GetOrderTransactions does not?

Summary

GetOrders returns the multiple line item OrderID, but GetOrderTransactions is not 



Detailed Description

When using GetOrders, if you specify a single line item OrderID in the <OrderIDArray>, the response will automatically return the multiple line item OrderID in the OrderID (if applicable).  If you do this same request in GetOrderTransactions, it will not return the multiple line item OrderID (if applicable).  It will just return the single line item order you specified.  Example:

<?xml version="1.0" encoding="utf-8"?>
<GetOrdersRequest xmlns="urn:ebay:apis:eBLBaseComponents">
  <Version>729</Version>
  <!-- Comment out the OrderIDArray to filter by time, role, and status -->
  <OrderIDArray>
    <OrderID>?</OrderID>
  </OrderIDArray>
  <OrderRole>Seller</OrderRole>
  <OrderStatus>Active</OrderStatus>
  <DetailLevel>ReturnAll</DetailLevel>
  <RequesterCredentials>
    <eBayAuthToken>***</eBayAuthToken>
  </RequesterCredentials>
</GetOrdersRequest>

<?xml version="1.0" encoding="utf-8"?>
<GetOrderTransactionsRequest xmlns="urn:ebay:apis:eBLBaseComponents">
     <RequesterCredentials>
          <eBayAuthToken>***</eBayAuthToken>
     </RequesterCredentials>
     <OrderIDArray>
          <OrderID>?</OrderID>
     </OrderIDArray>
     <DetailLevel>ReturnAll</DetailLevel>
</GetOrderTransactionsRequest>

In order to get the multiple line item OrderID (if applicable) using GetOrderTransactions, and for it to be consistent with GetOrders, you must use the <ItemTransactionIDArray>.  Example:

<?xml version="1.0" encoding="utf-8"?>
<GetOrderTransactionsRequest xmlns="urn:ebay:apis:eBLBaseComponents">
  <ItemTransactionIDArray>
    <ItemTransactionID>
      <OrderLineItemID>?</OrderLineItemID>
    </ItemTransactionID>
    <!-- ... more ItemTransactionID nodes here ... -->
  </ItemTransactionIDArray>
  <RequesterCredentials>
    <eBayAuthToken>***</eBayAuthToken>
  </RequesterCredentials>
</GetOrderTransactionsRequest>



Additional Resources

GetOrders: http://developer.ebay.com/DevZone/XML/docs/Reference/eBay/GetOrders.html

GetOrderTransactions: http://developer.ebay.com/DevZone/XML/docs/Reference/eBay/GetOrderTransactions.html

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