I am working on the ebay api currently using python and the ebaysdk. I have got all the keys etc correct in my .yaml and when I run the code it seems to function. Includes all the necessary xml output and stating success, thus going even further so that if I redo it it states an error about violating duplicate listing policy. However even though it should be functioning when I go to the sandbox I see no product listing and thus have no idea of it worked or not. Anyone with experience know what is happening?
from ebaysdk.trading import Connection
api = Connection(config_file=r'C:\Users\nwals\Documents\Code\NJProject\ebaysdk-python\ebay.yaml', domain="api.sandbox.ebay.com", debug=True)
request = {
"Item": {
"Title": "Magic Keyboard",
"Country": "GB",
"Location": "UK",
"Site": "UK",
"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": "ReturnsNotAccepted",
},
"ShippingDetails": {
"ShippingServiceOptions": {
"FreeShipping": "True",
"ShippingService": "USPSMedia"
}
},
"DispatchTimeMax": "3",
"ItemSpecifics": {
"NameValueList": [
{"Name": "Brand", "Value": "The ocean"},
{"Name": "MPN", "Value": ""},
{"Name": "Type", "Value": "Top-Loading"}
]
}
}
}
api.execute("AddItem", request)