python-eBay API无效的拍卖货币
作者:互联网
我尝试通过eBay SDK(ebaysdk-python)添加eBay列表.我使用Trading API Sandbox在sandbox.ebay.co.uk上运行测试.
我正在eBay.co.uk上出售我的产品,我想指定英镑价格.产品从波兰发货.有了这些参数,我对英镑货币有疑问.
item = {
"Item": {
...
"Country": "PL",
"Currency": "GBP",
"Site": "UK",
...
}
}
api.execute('AddItem', item)
我收到一个错误:
AddItem: Class: RequestError, Severity: Error, Code: 95, Invalid auction currency. The auction currency specified does not match the auction currency for the selected site.
eBay API文档说:
http://developer.ebay.com/DevZone/XML/docs/Reference/ebay/types/SiteCodeType.html
所以设置似乎是正确的
解决方法:
解决方案是如此明显.我没有在ebay.yaml中放置siteid:3,现在我可以使用GBP作为货币了.
# eBay SDK Defaults
name: ebay_api_config
# Trading API Sandbox - https://www.x.com/developers/ebay/products/trading-api
api.sandbox.ebay.com:
compatability: 719
siteid: 3
appid: xxx
certid: xxx
devid: xxx
token: xxx
标签:ebay,ebay-api,sdk,python 来源: https://codeday.me/bug/20191027/1944265.html