Skip to main content
Published: February 28 2008, 1:44:00 PMUpdated: August 31 2022, 11:53:03 PM

When calling GetSellerList with Output Selectors as below, the pagination details are not returned in the response.  

<?xml version="1.0" encoding="utf-8"?>
<GetSellerListRequest xmlns="urn:ebay:apis:eBLBaseComponents">
<DetailLevel>ReturnAll</DetailLevel>
<Version>1131</Version>
<UserID xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
<StartTimeFrom>2021-02-01T22:13:56.000Z</StartTimeFrom>
<StartTimeTo>2021-02-10T23:13:56.000Z</StartTimeTo>
<OutputSelector>ItemArray.Item.ItemID</OutputSelector>
<GranularityLevel>Coarse</GranularityLevel>
<Pagination>
<EntriesPerPage>3</EntriesPerPage>
<PageNumber>2</PageNumber>
</Pagination>
<RequesterCredentials>
<eBayAuthToken>
</eBayAuthToken> </RequesterCredentials>
</GetSellerListRequest>

<?xml version="1.0" encoding="utf-8"?>
<GetSellerListResponse xmlns="urn:ebay:apis:eBLBaseComponents">
<Timestamp>2021-02-28T20:03:57.397Z</Timestamp>
<Ack>Success</Ack>
<Version>1131</Version>
<Build>E1131_CORE_APISELLING_19099826_R1</Build>
<ItemArray>
<Item>
<ItemID>250000619398</ItemID>
</Item>
<Item>
<ItemID>250000619415</ItemID>
</Item>
<Item>
<ItemID>250000619416</ItemID>
</Item>
</ItemArray>
</GetSellerListResponse>

Without pagination data, it is not  possible to  retrieve the whole GetSellerList data.  How do I get the Pagination details:

Detailed Description 

  OutputSelector is a very useful filter and is available for many API calls. When the OutputSelector filter is used in an API request, the filter overwrites all the other default and specified filters, as a result, only the specified fields are returned in the corresponding API response.

  The business rule also applies to the PaginationResults data that would be normally reported when no OutputSelector filter is used. To retrieve pagination details, you need to specify both pagination data of interest in OutputSelector array and Pagination container in your request, as in the following sample:

  <?xml version="1.0" encoding="utf-8"?>
<GetSellerListRequest xmlns="urn:ebay:apis:eBLBaseComponents">
  <Version>1131</Version>
  <UserID xsi:nil="true" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
  <StartTimeFrom>2021-02-01T22:13:56.000Z</StartTimeFrom>
  <StartTimeTo>2021-02-10T23:13:56.000Z</StartTimeTo>
  <OutputSelector>ItemArray.Item.ItemID</OutputSelector>
  <OutputSelector>ItemArray.Item.ListingDetails.StartTime</OutputSelector>
  <OutputSelector>ItemArray.Item.ListingDetails.EndTime</OutputSelector>
  <OutputSelector>HasMoreItems</OutputSelector>
  <OutputSelector>PaginationResult.TotalNumberOfPages</OutputSelector>
  <OutputSelector>PaginationResult.TotalNumberOfEntries</OutputSelector>
  <OutputSelector>ItemsPerPage</OutputSelector>
  <OutputSelector>ReturnedItemCountActual</OutputSelector>
  <OutputSelector>PageNumber</OutputSelector>

  <Pagination>
    <EntriesPerPage>3</EntriesPerPage>
    <PageNumber>2</PageNumber>
  </Pagination>
  <RequesterCredentials>
    <eBayAuthToken>YOUR TOKEN</eBayAuthToken>
  </RequesterCredentials>
</GetSellerListRequest>

 Here is the GetSellerList response returned from above request:

<?xml version="1.0" encoding="utf-8"?>
<GetSellerListResponse xmlns="urn:ebay:apis:eBLBaseComponents">
  <Timestamp>2021-02-28T20:48:01.741Z</Timestamp>
  <Ack>Success</Ack>
  <Version>1131</Version>
 <Build>E1131_CORE_APISELLING_19099826_R1</Build>
  <PaginationResult>
    <TotalNumberOfPages>8</TotalNumberOfPages>
    <TotalNumberOfEntries>23</TotalNumberOfEntries>
  </PaginationResult>

  <HasMoreItems>true</HasMoreItems>

  <ItemArray>
    <Item>
      <ItemID>250000619398</ItemID>
      <ListingDetails>
        <StartTime>2021-02-05T04:31:08.000Z</StartTime>
        <EndTime>2021-02-10T04:31:08.000Z</EndTime>
      </ListingDetails>
    </Item>
    <Item>
      <ItemID>250000619415</ItemID>
      <ListingDetails>
        <StartTime>2021-02-05T06:06:31.000Z</StartTime>
        <EndTime>2021-02-10T06:06:31.000Z</EndTime>
      </ListingDetails>
    </Item>
    <Item>
      <ItemID>250000619416</ItemID>
      <ListingDetails>
        <StartTime>2021-02-05T06:08:05.000Z</StartTime>
        <EndTime>2021-02-10T06:08:05.000Z</EndTime>
      </ListingDetails>
    </Item>
  </ItemArray>
  <ItemsPerPage>3</ItemsPerPage>
  <PageNumber>2</PageNumber>
  <ReturnedItemCountActual>3</ReturnedItemCountActual>

</GetSellerListResponse>

   

 

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

Got thoughts? Click the feedback button – your insights help us improve!