03-22-2024 02:07 AM
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?
03-22-2024 03:48 AM
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.
04-14-2024 05:28 PM
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?
04-15-2024 01:11 AM
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.