[英]Ebay OAuth API ERROR: invalid_grant - the provided authorization grant code is invalid or was issued to another client
[英]eBay API 'Invalid auction currency' error
我正在尝试使用SDK( ebaysdk-python )通过他们的API添加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 doc说: 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
请参阅: http : //developer.ebay.com/DevZone/XML/docs/Reference/ebay/types/ItemType.html#Site 。
尝试设置"Country": "GB"
并查看是否有帮助 - 如果有帮助,那么错误是由于上面链接中描述的站点/国家/货币确定逻辑。
另外,尝试拨打电话,好像你在波兰境内交易,即"Country": "PL", "Currency: PLN", "Site": "Poland"
,如果这样,那么问题是跨境问题贸易。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.