For full functionality of this site it is necessary to enable JavaScript.
Here are the instructions how to enable JavaScript in your web browser.

Knowledge base

Find the answer to your question

Advanced Search PView

Search terms
Search Type
Product
Category
Language
Format
SDK
Sort by
Direction

Why am I getting 0 orders back when I am using <ListingType>Half</ListingType> in my GetOrders call when I know I have half orders?

  • Answer ID 1068
  • Published 06/15/2015 02:20 PM
  • Updated 06/15/2015 02:20 PM
  • Permalink https://ebaydts.com/eBayKBDetails?KBid=1068
Product
I can see half orders in my half account Sales page (https://account.half.ebay.com/ws/eBayISAPI.dll?MyAccountSaleSummary).
But when I make the GetOrders call using <ListingType>Half</ListingType> I get back 0 orders.
What is going on?

Detailed Description

Orders on half have different enumeration values for the OrderStatus of an Order than the values used for eBay orders.

"Inactive" is NOT an acceptable value for OrderStatus for half orders (although "Inactive" is acceptable for eBay orders).
So if you make a GetOrders call using <ListingType>Half</ListingType>, with <OrderStatus>ALL</OrderStatus>
you may get back 0 orders. This is the expected behavior.


Here is the list of order status applicable values :

For ebay orders:
•     Active
•     Completed
•     Inactive
•     Cancelled
•     All

Half orders:
•     Active
•     Completed
•     Cancelled
•     Shipped


Note : For half.com orders, you should call the API for each order status type seperately.


Sample : Getting half.com "Shipped" Orders
Include <OrderStatus>Shipped</OrderStatus> in the request.
Here is an example of a GetOrders call used to get "Shipped" orders:


<?xml version="1.0" encoding="utf-8"?>
<GetOrdersRequest xmlns="urn:ebay:apis:eBLBaseComponents">
   <Version>793</Version>
   <CreateTimeFrom>2013-07-10T04:20:08.000Z</CreateTimeFrom>
   <CreateTimeTo>2013-07-16T04:20:08.000Z</CreateTimeTo>
   <DetailLevel>ReturnAll</DetailLevel>
   <ListingType>Half</ListingType>
   <OrderStatus>Shipped</OrderStatus>
   <Pagination>
     <EntriesPerPage>100</EntriesPerPage>
     <PageNumber>1</PageNumber>
   </Pagination>
   <RequesterCredentials>
     <eBayAuthToken>token</eBayAuthToken>
   </RequesterCredentials>
</GetOrdersRequest>

How well did this answer your question?

Answers others found helpful

Print Email This Page Delicious Digg Facebook Reddit StumbleUpon Twitter