How to detect a sale has been made and also the number of items sold
I want to detect the sales made on ebay and also number of items sold from my web application. Please suggest the api or a way to accomplish this. I am new to ebay integration. Any sample code is welcome.
Your best bet is the GetOrders call. You need to poll for new orders on a regular basis. Ebay recommend once every 15 minutes. You process those orders and then call again in 15 minutes with a new "start" time to get any new orders.
CARE: GetOrders get orders where someone has committed to pay but hasn't yet paid, as well as orders that have been paid for. When an "authorized" but not paid for order is received, you should still allocate stock.