Skip to main content
Published: September 16 2008, 4:25:00 PMUpdated: August 08 2022, 1:54:22 PM

I made a GetItemTransactions call and TransactionArray is not present.  Under what conditions is TransactionArray returned?

The GetItemTransactions call, by default, returns transactions from up to 30 days ago (from the time that the call is being made).  What this means is that if a transaction ended 31 or more days ago, the GetItemTransactions response will not contain TransactionArray.

To remedy this, you need to include ModTimeFrom and ModTimeTo, and specify the date range in which that transaction took place.  The request will look something like this:

GetItemTransactions with ModTimeto / ModTimeFrom
  <?xml version="1.0" encoding="utf-8" ?>
- <GetItemTransactionsRequest xmlns="urn:ebay:apis:eBLBaseComponents">
  <ModTimeFrom>2008-07-30T18:28:52.799Z</ModTimeFrom>
  <ModTimeTo>2008-08-07T18:28:52.799Z</ModTimeTo>
  <ItemID>ITEM_ID</ItemID>
- <RequesterCredentials>
  <eBayAuthToken>TOKEN</eBayAuthToken>
  </RequesterCredentials>
  <Version>1263</Version>
  </GetItemTransactionsRequest>

This request will return items between 7-30-2008 and 8-07-2008.  Without these dates, the call would have returned transactions taking place between 9/16/2008 and 7/16/2008 (the date as of this article being written is 9/16/2008).

More documentation on GetItemTransactions can be found here: http://developer.ebay.com/DevZone/XML/docs/Reference/eBay/GetItemTransactions.html#Request.ModTimeFrom

 

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