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

Issues Retrieving Inventory Data and Fetching All Listings on eBay

Hello eBay Developer Community,

I'm integrating eBay's REST APIs with my Node.js backend to manage and fetch inventory data. I've encountered an issue where I received a 200 status code but no data when using the getInventoryItems endpoint after listing items with a different (non-developer) account.

Details:

  • Environment: Production
  • APIs:
    • OAuth: For access tokens.
    • Inventory API: Using getInventoryItems and getInventoryItem.
  • Issue: No inventory data returned after listing items.
  • Resolution: The issue resolved when I created items using the POST Inventory API. I was then able to fetch inventory details successfully.

Questions:

  1. Should I continue using the REST Inventory API, or is there a specific scenario where the Trading API is better suited for fetching seller listing data?
  2. Are there known limitations when retrieving inventory data with the REST API, particularly when working with multiple seller accounts?
  3. What's the best approach to fetch all seller listing data, including active, sold, and unsold items? Is there a recommended API or method to achieve this?

Thanks for your insights!

Message 1 of 3
latest reply
2 REPLIES 2

Re: Issues Retrieving Inventory Data and Fetching All Listings on eBay

I could not any better way to get list of all products including current price and stock, so I am not using Inventory API for fetching items, I use it for adding/updating items only. I use trading API to get list of all products along with stock and quantity.

 

You can try adding 200 products and use Trading API and you will get a list of all 200 in 1 request but with Inventory API, you can get inventory items for 200 items in 1 call but only 50 offers per call, so you will need to make 4 calls. Now imagine the time it will take If you have 10,000 items and then decide which API is better for fetching items.

C# wrapper for eBay REST API
https://github.com/CMS365-PTY-LTD/EbaySharp
Message 2 of 3
latest reply

Re: Issues Retrieving Inventory Data and Fetching All Listings on eBay

I ended up using trade API over inventory API since there's a fewer docs I found.

Message 3 of 3
latest reply