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

Problem GetOrdersRequest not returning all orders

 

Hello,

 

GetOrdersRequest is not returning all orders for the <CreateTimeFrom> to <CreateTimeTo>. Some orders are getting skipped and are never coming in the response. 

I am new to eBay API development, and am supporting this, please help me. I don't have information on what to change in my code to fix this issue. 

 

https://api.ebay.com/ws/api.dll

 

Headers - 

X-EBAY-API-COMPATIBILITY-LEVEL : 803

X-EBAY-API-SITEID : 0

X-EBAY-API-CALL-NAME : GetOrders

X-EBAY-API-DEV-NAME : DevName

X-EBAY-API-APP-NAME : AppName

X-EBAY-API-CERT-NAME : Cert

 

Method- POST

ContentType - text/xml

 

<?xml version="1.0" encoding="UTF-8"?> <GetOrdersRequest xmlns="urn:ebay:apis:eBLBaseComponents"> <RequesterCredentials> <eBayAuthToken>token</eBayAuthToken> </RequesterCredentials> <CreateTimeFrom>2023-04-23T04:00:00.00Z</CreateTimeFrom> <CreateTimeTo>2023-04-24T03:59:00.00Z</CreateTimeTo> <IncludeFinalValueFee>1</IncludeFinalValueFee> <OrderRole>Seller</OrderRole> <OrderStatus>Completed</OrderStatus> <Pagination> PaginationType <EntriesPerPage>500</EntriesPerPage> </Pagination> <DetailLevel>ReturnAll</DetailLevel> </GetOrdersRequest>

 

Thanks in advance.

 

Message 1 of 3
latest reply
2 REPLIES 2

Problem GetOrdersRequest not returning all orders

Hi @prsh-2663 

 

When you set the OrderStatus as Completed with a date filter, only orders that satisfy both the date range and the OrderStatus value are retrieved so orders in Active or Cancelled state will not return in the response.

 

Please use the OrderStatus as "All" to retrieve orders in all states.

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

Problem GetOrdersRequest not returning all orders

Hello,

 

Thank you for the reply, I did try the change suggested in reply above, but still two orders are not being returned with "All" order status. 

 

Can you please suggest any other change for fixing this issue?

 

Thank you!

Message 3 of 3
latest reply