本文介绍了eBay的“获取库存物品" API不返回物品的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在eBay API资源管理器上使用我的eBay用户身份验证令牌调用此API:

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:

解决方案

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.htmlhttp://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

这篇关于eBay的“获取库存物品" API不返回物品的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-15 07:41