To get the sales order data from ebay account via api call. First you have an ebay api access. Get your ebay access token from ebay developer account and dev id, app id, cert id.
Wsdl for getting ebay order data : http://developer.ebay.com/webservices/latest/ebaySvc.wsdl
This api call belong to Ebay Trading section. Use “GetOrders” ebay api method to gat order data.
Code to Get Ebay Sales Order Data Via API Call:
In above code we get seller order data. As you see in parameter we select “OrderRole” to Seller. You can change as per requirement like Buyer.
We can fetch order on the basis of CreateTimeFrom to CreateTimeTo basis. Their are many other filteration parameter available on ebay trading api documentation.