易趣API无效的竞价币

时间:2016-01-29 11:34:27

标签: python sdk ebay 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 所以设置似乎是正确的

2 个答案:

答案 0 :(得分:4)

解决方案非常明显。我没有将siteid: 3放入ebay.yaml,现在我可以使用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

答案 1 :(得分:0)

请参阅:http://developer.ebay.com/DevZone/XML/docs/Reference/ebay/types/ItemType.html#Site

尝试设置"Country": "GB"并查看是否有帮助 - 如果有帮助,则错误是由于上面链接中描述的网站/国家/货币确定逻辑。

另外,尝试拨打电话,好像你在波兰境内交易,即"Country": "PL", "Currency: PLN", "Site": "Poland",如果这样做,则问题在于跨境交易。

相关问题