4

我正在尝试使用 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 文档说: http: //developer.ebay.com/DevZone/XML/docs/Reference/ebay/types/SiteCodeType.html 所以设置似乎是正确的

4

2 回答 2

6

解决方案是如此明显。我没有投入siteid: 3ebay.yaml现在我可以使用英镑作为货币。

# 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
于 2016-01-29T13:53:51.403 回答
1

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

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

另外,试着像在波兰境内进行交易一样拨打电话,即"Country": "PL", "Currency: PLN", "Site": "Poland",如果这可行,那么问题出在跨境贸易上。

于 2016-01-29T11:46:19.953 回答