Search code examples
ruby-on-railsebay-api

API to get Orders and Upload Shipment information?


I have tried to find the answer using Google, but I'm a bit confused as there are a number of eBay APIs.

  1. In order to get orders, the Trading API GetOrders command should be used?
  2. I would like to be able to upload via an API a completed order shipment information, tracking, and courier name. Is the CompleteSale command in the the Trading API the correct command to use?
  3. How to get the Authentication codes from an eBay store (my app can connect to many eBay stores)

I'm planning to use this Rails GEM: https://github.com/ReverseRetail/ebay_client


Solution

  • 1) Yes, use GetOrders to retrieve orders from eBay (Dont use getsellertransactions it is super buggy). Here is the doc for GetOrders Best Practices. You may also want to take a look at this article Order management using Trading API - GetOrders (I would set the set "Create / Mod TimeTo" time to 5 minutes instead of their recommended 2 minutes.)

    2) Yes, you would use CompleteSale, you are going to need three bits of information the OrderID, ShipmentTrackingNumber, and ShippingCarrierUsed. You might also want to note that you cannot use the same tracking number for multiple packages, the API will error thinking you are trying to game the system.

    3) If you want perform the trading api requests on a store that you do not have access to, you will need to allow clients to authenticate their store with your app. Documentation on that process is very detailed and can be viewed here: Getting Tokens