Developers Program

Getting my active items and items that ended

Published: August 19 2009, 4:20:00 PMยทUpdated: August 09 2022, 11:21:26 AM

Products

Question

How can I get a list of all my active items and items that ended?

Answer

Detailed Description

Getting a list of active items:

Trading API: GetSellerList
This option is recommended if the seller has a small volume of items.

Make a call to GetSellerList with the EndTime filter starting from current time plus a sec to month out in the future.

Here is a sample request where the current time is 2009-08-19T18:10:37.204Z:

<?xml version="1.0" encoding="utf-8"?>
<GetSellerListRequest xmlns="urn:ebay:apis:eBLBaseComponents">
<EndTimeFrom>2009-08-19T18:10:38.204Z</EndTimeFrom>
<EndTimeTo>2009-09-19T18:10:38.204Z</EndTimeTo>
<Pagination>
<PageNumber>1</PageNumber>
<EntriesPerPage>200</EntriesPerPage>
</Pagination>
<RequesterCredentials>
<eBayAuthToken>*****</eBayAuthToken>
</RequesterCredentials>
</GetSellerListRequest>

If there are more than 200 items, then the HasMoreEntries in the response is true. In that case, increase the PageNumber by 1 and continue making the call till HasMoreEntries is false.

Note: The current eBay time can be obtained using GeteBayOfficialTime.

Getting a list of ended items:

Make the call to GetSellerList everyday (or weekly or whatever frequency is appropriate), with the EndTime filter starting with required frequency days from current time, to current time. Here is a sample request for a call that is made every day:

<?xml version="1.0" encoding="utf-8"?>
<GetSellerListRequest xmlns="urn:ebay:apis:eBLBaseComponents">
<EndTimeFrom>2009-08-18T18:10:37.204Z</EndTimeFrom>
<EndTimeTo>2009-08-19T18:10:37.204Z</EndTimeTo>
<Pagination>
<PageNumber>1</PageNumber>
<EntriesPerPage>200</EntriesPerPage>
</Pagination>
<RequesterCredentials>
<eBayAuthToken>*****</eBayAuthToken>
</RequesterCredentials>
</GetSellerListRequest>

How well did this answer your question?