question

alexttsdot avatar image
0 Likes"
alexttsdot asked ·

eBay API “Error, Code: 21919301, The EAN field is missing. The EAN field is missing. Please add EAN to the listing and try again.”

I'm getting the following error when trying to list an item using `ebaysdk-python`: error, Code: 21919301, The EAN field is missing. The EAN field is missing. Please add EAN to the listing and try again. Here is the full code: from ebaysdk.trading import Connection as Trading from ebaysdk.exception import ConnectionError try: #api = Trading(domain='api.sandbox.ebay.com', config_file='ebay.yaml') api = Trading(domain='api.ebay.com', config_file='ebay.yaml',debug=True) response = api.execute('GetUser', {}) #print(response.dict()) #print(response.reply) myitem = { "Item": { "Title": "BO BeoPlay A2 ", "Description": "balalalla", "PrimaryCategory": {"CategoryID": "111694"}, "ItemSpecifics": { "NameValueList": [ {"Name": "Brand", "Value": "TEST"}, {"Name": "MPN", "Value": "aldskjfalkjdsf"}, {"Name": "UPC", "Value": "5705260060331"}, {"Name": "EAN", "Value": "5705260060331"}, ] }, "Variation":{ "Variation":{ "VariationProductListingDetails": { "EAN": "5705260060331", "NameValueList": [ {"Name": "EAN", "Value": "5705260060331"}, {"Name": "UPC", "Value": "5705260060331"}, ] }, }, }, "ProductListingDetails": { "EAN": "5705260060331", "NameValueList": [ {"Name": "EAN", "Value": "5705260060331"}, {"Name": "UPC", "Value": "5705260060331"}, ] }, "StartPrice": "1000.0", "CategoryMappingAllowed": "true", "Country": "GB", "ConditionID": "1000", "Currency": "GBP", "DispatchTimeMax": "1", "ListingDuration": "Days_7", "ListingType": "FixedPriceItem", "PaymentMethods": "PayPal", "PayPalEmailAddress": " alexbowles@gmail.com", "PictureDetails": {"PictureURL": "http://i1.sandbox.ebayimg.com/03/i/00/30/07/20_1.JPG?set_id=8800005007"}, "PostalCode": "UB70JD", "Quantity": "1", "EAN": "5705260060331", "ReturnPolicy": { "ReturnsAcceptedOption": "ReturnsAccepted", "RefundOption": "MoneyBack", "ReturnsWithinOption": "Days_30", "Description": "If you are not satisfied, return the book for refund.", "ShippingCostPaidByOption": "Buyer" }, "ShippingDetails": { "ShippingType": "Flat", "ShippingServiceOptions": { "ShippingServicePriority": "1", "ShippingService": "UK_RoyalMailFirstClassStandard", "ShippingServiceCost": "2.50" } }, "Site": "UK" } } api.execute('VerifyAddItem', myitem) dump(api) except ConnectionError as e: print(e) print(e.response.dict()) I was getting the same error for brand and MPN but I managed to solve that using `ItemSpecifics` and `NameValueList` but have got nowhere with the EAN field. As you will not I have been exhaustive in the different combinations but obviously they shouldnt all appear in the code.
pythoneanebaysdk21919301
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

0 Answers

· Write an Answer

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.