How to find out if it is a SecondChanceOffer Item in the GetSellerList response
Find the answer to your question
Advanced Search
Products
Question
Question: I am adding my other items in my Gallery based on the GetSellerList response. But sometimes I end up adding an item that is a Second Chance Offer. How can I avoid this?
Answer
Answer:
To find out if an item was a SecondChanceOffer item, you need to look at the Item.ListingType tag and if it is PersonalOffer, then the Item was offered as a second chance offer. You can find out all the values of the ListingTypes from the WSDL documentation. ListingType is returned if you set your GranularityLevel to Medium or Fine.
Here is a sample GetSellerList request:
<?xml version="1.0" encoding="utf-8"?>
<GetSellerListRequest xmlns="urn:ebay:apis:eBLBaseComponents">
<GranularityLevel>Medium</GranularityLevel>
<Version>1123</Version>
<StartTimeFrom>2022-01-24T23:13:56.000Z</StartTimeFrom>
<StartTimeTo>2022-02-26T23:13:56.000Z</StartTimeTo>
<Pagination>
<PageNumber>1</PageNumber>
<EntriesPerPage>50</EntriesPerPage>
</Pagination>
<RequesterCredentials>
<eBayAuthToken>*****</eBayAuthToken>
</RequesterCredentials>
</GetSellerListRequest>
Here is the relevant portion of the Response:
<?xml version="1.0" encoding="utf-8"?>
<GetSellerListResponse xmlns="urn:ebay:apis:eBLBaseComponents">
<Timestamp>2022-04-20T18:49:51.231Z</Timestamp>
<Ack>Success</Ack>
<Version>1123</Version>
<Build>e469_core_Bundled_3210226_R1</Build>
<PaginationResult>
<TotalNumberOfPages>1</TotalNumberOfPages>
<TotalNumberOfEntries>2</TotalNumberOfEntries>
</PaginationResult>
<HasMoreItems>false</HasMoreItems>
<ItemArray>
<Item>
....
<ListingType>PersonalOffer</ListingType>
....
</Item>
<Item>
....
<ListingType>Chinese</ListingType>
....
</Item>
</ItemArray>
<ItemsPerPage>50</ItemsPerPage>
<PageNumber>1</PageNumber>
<ReturnedItemCountActual>2</ReturnedItemCountActual>
</GetSellerListResponse>