【发布时间】:2020-03-28 14:55:59
【问题描述】:
我创建了一个 eBay 沙盒帐户和一个贝宝沙盒帐户。当我向 AddItem 发出请求时,我收到一个错误。我试过了:
from ebaysdk.trading import Connection
if __name__ == "__main__":
api = Connection(config_file=r'C:\Users\username\PycharmProjects\ebay\ebaysdk-python\ebay.yaml', domain='api.sandbox.ebay.com', debug=True)
request = {
"Item": {
"Title": "Professional Mechanical Keyboard",
"Country": "US",
"Location": "US",
"Site": "US",
"ConditionID": "1000",
"PaymentMethods": "PayPal",
"PayPalEmailAddress": "nobody@gmail.com",
"PrimaryCategory": {"CategoryID": "33963"},
"Description": "A really nice mechanical keyboard!",
"ListingDuration": "Days_10",
"StartPrice": "150",
"Currency": "USD",
"ReturnPolicy": {
"ReturnsAcceptedOption": "ReturnsAccepted",
"RefundOption": "MoneyBack",
"ReturnsWithinOption": "Days_30",
#"Description": "If you are not satisfied, return the keyboard.",
"ShippingCostPaidByOption": "Buyer"
},
"ShippingDetails": {
"ShippingServiceOptions": {
"FreeShipping": "True",
"ShippingService": "USPSMedia"
}
},
"DispatchTimeMax": "3"
}
}
api.execute("AddItem", request)
错误信息: ... ebaysdk.exception.ConnectionError: "AddItem: Class: RequestError, Severity: Error, Code: 120, You need to create a Seller's account. 在你列出这个项目之前,我们需要一些额外的信息来创建一个卖家账户。"
进程以退出代码 1 结束
【问题讨论】:
-
我创建了一个 eBay 沙盒账户:testuser_selleralfa
-
是的,我已经发送了多个 ebay 沙盒帐户和 paypal 沙盒帐户链接请求:developer.ebay.com/contact-us#help-with-the-ebay-sandbox。我已经要求手动完成:forums.developer.ebay.com/questions/33995/…
标签: python dictionary connection paypal-sandbox ebay-api