Search code examples
c#ebay-api

Get all seller transactions using eBay api


How to get all items and transactions made by the seller on eBay for all time. I can successfully receive all transaction details for the past 10 days using the following code:

// Getting sold items
var durationSpecifiedeBaySellingCall = new GetMyeBaySellingCall(apiContext)
{
    SoldList = new ItemListCustomizationType
    {
        DurationInDays = 10,
        DurationInDaysSpecified = true,
        Include = true
    },

    DetailLevelList = new DetailLevelCodeTypeCollection
    {
        DetailLevelCodeType.ReturnAll
    }
};
durationSpecifiedeBaySellingCall.Execute();

but I'm not able to receive all transactions for the past 10 years, for example, when replace the value of DurationInDays with 3650 instead of 10. durationSpecifiedeBaySellingCall.SoldListReturn is null. How can I properly get the list of all user transactions?


Solution

  • It looks like you are using the GetMyeBaySelling API call, the documentation states that you can only pull a Max of 60 Days.

    eBay Documentation GetMyeBaySelling