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

inventory_item API is showing zero results

I am hitting the API inventory_item API in Production, and it is showing zero results.

Below is its CURL representation from Postman :

curl --location https://api.ebay.com/sell/inventory/v1/inventory_item --header 'Accept: application/json' --header 'Authorization: Bearer v^1.1#i^1#f^0#r^0#I^3#p^3_TOKEN' --header 'X-EBAY-SOA-GLOBAL-ID: EBAY-GB'

 

I have added the additional header X-EBAY-SOA-GLOBAL-ID to explicitly mention that I am using EBAY-GB market.

The results are showing empty listing :

{
    "total": 0,
    "size": 0
}

 

Can anyone please help me understand what I am doing wrong here?

Message 1 of 4
latest reply
3 REPLIES 3

inventory_item API is showing zero results

How did you create your items? Through new API or old trading API.

If you created items using old trading API then you can't get your items using new API, you will need to migrate old listings to new API and then inventory API will give you results.

I have explained here  how migration works, have a look and let me know If you have any question.

 

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

inventory_item API is showing zero results

What if I'm creating a system based on Restful API's but we business is currently using 3rd party solution that is using Trading API? If I will migrate old listings to new API it will stop working this 3rd party solution from what I understand?

Message 3 of 4
latest reply

inventory_item API is showing zero results

I have not tried that but I am sure,

If you create listings with Trading API, you cannot update with REST API

If you create listings with REST API, you can at least read listings with Trading API and I hopefully you would be able to update as well.

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