eBay 'Get Inventory Items' API NOT returning items

非 Y 不嫁゛ 提交于 2021-01-21 09:17:30

问题


I am trying to call this API with my eBay user auth token on the eBay API Explorer:

https://api.ebay.com/sell/inventory/v1/inventory_item

The Headers:

Authorization:Bearer [MY_EBAY_SELLER_USER_TOKEN]    
Accept:application/json
Content-Type:application/json

Now I'm receiving this in response:

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

Now I definitely have some items listed for sale and they are showing up on eBay. I also made sure that I am in production mode and that my auth token is also a production token.

What's going on with you eBay??? See image below:


回答1:


So it turns out that eBay's Inventory API is fairly new. Only items created via the Inventory API's can be queried with the Inventory API. Total waste of time.

Just use eBay's Trading API:

http://developer.ebay.com/DevZone/xml/docs/Reference/ebay/index.html

To list an item:

http://developer.ebay.com/DevZone/xml/docs/Reference/ebay/AddItem.html http://developer.ebay.com/DevZone/xml/docs/Reference/ebay/AddFixedPriceItem.html

To revise an item:

http://developer.ebay.com/DevZone/xml/docs/Reference/ebay/ReviseFixedPriceItem.html

http://developer.ebay.com/DevZone/xml/docs/Reference/ebay/ReviseItem.html

To revise price or quantity of item:

http://developer.ebay.com/DevZone/xml/docs/Reference/ebay/ReviseInventoryStatus.html

Stupid eBay. All the quality engineers must have left to go work for Google or Apple. No support for json - still using tech from the 1990's



来源:https://stackoverflow.com/questions/42849731/ebay-get-inventory-items-api-not-returning-items

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!