I’m trying to add eBay listing through their API using SDK (ebaysdk-python). I run tests on sandbox.ebay.co.uk with Trading API Sandbox.
I am selling my products on eBay.co.uk and I want specify price in GBP. Products are shipped from Poland. With these params I have problem with GBP currency.
item = {
"Item": {
...
"Country": "PL",
"Currency": "GBP",
"Site": "UK",
...
}
}
api.execute('AddItem', item)
I’m getting an error:
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 says:
http://developer.ebay.com/DevZone/XML/docs/Reference/ebay/types/SiteCodeType.html
so the settings seem to be correct
2
Answers
Solution was so obvious. I did not put
siteid: 3
inebay.yaml
, now I can use GBP as currency.See: http://developer.ebay.com/DevZone/XML/docs/Reference/ebay/types/ItemType.html#Site.
Try to set
"Country": "GB"
and see if this helps – if it helps, then the error is because of site/country/currency determination logic described on the link above.ALso, try to make a call as if you were trading inside Poland, i.e.
"Country": "PL", "Currency: PLN", "Site": "Poland"
, if this works, then the problem is with cross-border trading.