cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Cannot Get Product via API for eBay seller account

Hi,

 

I'm trying to retrieve the product list from my seller account via the API. However, I am receiving a response indicating that I have 0 items, while I can see many listings in my eBay UI. I'm using the endpoint: https://developer.ebay.com/devzone/xml/docs/reference/ebay/GetSellerList.html to get the items.

Below I have attached the request and response to get the items, in case it helps.

Any suggestions would be really helpful.

Request body-
curl --location 'https://api.ebay.com/ws/api.dll' \
--header 'X-EBAY-API-IAF-TOKEN:*****************************************
--header 'X-EBAY-API-SITEID: 0' \
--header 'X-EBAY-API-COMPATIBILITY-LEVEL: 1371' \
--header 'X-EBAY-API-CALL-NAME: GetSellerList' \
--header 'Content-Type: application/xml' \
--header 'Cookie:*****************************************************
--data '<?xml version="1.0" encoding="utf-8"?>

 

 

apis:eBLBaseComponents">
<ErrorLanguage>en_US</ErrorLanguage>
<WarningLevel>High</WarningLevel>
     <!--You can use DetailLevel or GranularityLevel in a request, but not both-->
  <GranularityLevel>Coarse</GranularityLevel>
  <StartTimeFrom>2024-09-21</StartTimeFrom>
  <StartTimeTo>2024-11-21</StartTimeTo>
  <IncludeWatchCount>true</IncludeWatchCount>
  <Pagination>
    <EntriesPerPage>20</EntriesPerPage>
  </Pagination>
</GetSellerListRequest>

'response-

<?xml version="1.0" encoding="UTF-8"?>

 

 

apis:eBLBaseComponents">
    <Timestamp>2024-11-25T10:10:54.176Z</Timestamp>
    <Ack>Success</Ack>
    <Version>1271</Version>
    <Build>E1271_CORE_APISELLING_19187371_R1</Build>
    <PaginationResult>
        <TotalNumberOfPages>0</TotalNumberOfPages>
        <TotalNumberOfEntries>0</TotalNumberOfEntries>
    </PaginationResult>
    <HasMoreItems>false</HasMoreItems>
    <ItemArray/>
    <ItemsPerPage>20</ItemsPerPage>
    <PageNumber>1</PageNumber>
    <ReturnedItemCountActual>0</ReturnedItemCountActual>
</GetSellerListResponse>

Message 1 of 3
latest reply
2 REPLIES 2

Cannot Get Product via API for eBay seller account

Hi @endlessmediacorp,

 

It might be possible that the token being used in the call, does not belong or generated for the correct eBay user. You can use the EIASToken field in the response of GetSellerList to identify the user.

 

You need to set the GranularityLevel as Fine and DetailLevel to ItemReturnDescription or ReturnAll to get the EIASToken.

Best Regards,
eBay Developer Support
Message 2 of 3
latest reply

Cannot Get Product via API for eBay seller account

I had the same issue. Remove the GranularityLevel and you should be fine. I spent days on it until I figured it out myself. It could be outdated or something else, but when its there, you get that error. 

Message 3 of 3
latest reply