question

mrxt06 avatar image
0 Likes"
mrxt06 asked

Trading API - Issues returning items in GetSellerList and GetOrders

Hi there, I would like to return some some past sales data, but I'm having some trouble with the Trading API.


1) I have no luck returning anything using GetSellerList, even though I clearly have listed items.


I've even tried this using the Sandbox, calling AddItem and GetItem manually (these calls work), but GetSellerList still returns no items.


2) I have a strange experience using GetOrders.

If I specify CreateTimeFrom/CreateTimeTo or ModTimeFrom/ModTimeTo, I do not retrieve any results:

<?xml version="1.0" encoding="utf-8"?>
<GetOrdersRequest xmlns="urn:ebay:apis:eBLBaseComponents">
  <RequesterCredentials>
    <eBayAuthToken>...</eBayAuthToken>
  </RequesterCredentials>
<ErrorLanguage>en_US</ErrorLanguage>
<WarningLevel>High</WarningLevel>
  <OrderRole>Seller</OrderRole>
  <DetailLevel>ReturnAll</DetailLevel>
  <TimeFrom>2020-02-09T00:00:00.000Z</CreateTimeFrom>
  <CreateTimeTo>2020-03-01T00:00:00.000Z</CreateTimeTo>
</GetOrdersRequest>


However, when I specify NumberOfDays, it actually returns my orders as expected:

<?xml version="1.0" encoding="utf-8"?>
<GetOrdersRequest xmlns="urn:ebay:apis:eBLBaseComponents">
  <RequesterCredentials>
    <eBayAuthToken>...</eBayAuthToken>
  </RequesterCredentials>
<ErrorLanguage>en_US</ErrorLanguage>
<WarningLevel>High</WarningLevel>
  <OrderRole>Seller</OrderRole>
  <DetailLevel>ReturnAll</DetailLevel>
  <NumberOfDays>30</NumberOfDays>
</GetOrdersRequest>


I was wondering if someone could point me in the right direction or let me know why this is happening.


getordersgetsellerlist#tradingapi
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

· Write an Answer
sagar_developersupport avatar image
0 Likes"
sagar_developersupport answered

Hi @mrxt06 ,

I have tried to reproduce the issue and I am able to get the result in the response of call.
Also, I have noticed that you are using the CreateTimeFrom 2020-02-09T00:00:00.000Z and Getorders call cannot retrieve sales older than 90 days old.

NumberOfDays filter specifies the number of days (24-hour periods) in the past to search for orders. All eBay orders that were either created or modified within this period are returned in the output. Also, NumberOfDays filter only allows you to retrieve orders created/modified within the last 30 days. So, if you wish to retrieve orders created and/or modified more than 30 days in the past

Can you please try again to make the call with the request body mentioned? If you still face the issue please let us know.

<?xml version="1.0" encoding="utf-8"?>
<GetOrdersRequest xmlns="urn:ebay:apis:eBLBaseComponents">
<RequesterCredentials>
<eBayAuthToken></eBayAuthToken>
</RequesterCredentials>
<ErrorLanguage>en_US</ErrorLanguage>
<WarningLevel>High</WarningLevel>
<OrderRole>Seller</OrderRole>
<DetailLevel>ReturnAll</DetailLevel>
<CreateTimeFrom>2021-02-09T00:00:00.000Z</CreateTimeFrom>
<CreateTimeTo>2021-03-01T00:00:00.000Z</CreateTimeTo>
</GetOrdersRequest>

Best regards ,
eBay Developer Support

10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.