question

cormac70 avatar image
0 Likes"
cormac70 asked

Error 21916884, Item condition required

Hello,

 

I have a Python script to add items. This is working for vinyl, but I'm getting the above error for CDs. I had this error while getting it to work with vinyl, and the problem (IIRC) was that the category ID was wrong. However, I think the category for CDs is correct, and I still get this error. It's the same on Sandbox and with VerifyAddItem on the real site.

 

This is using the UK site, if that's relevant.

 

The request is:

 

{'ListingType': 'Chinese', 'ReturnPolicy': {'ReturnsAcceptedOption': 'ReturnsNotAccepted'}, 'Description':

 u'This is a CD single. The CD is in excellent condition. The case is in excellent condition. See photos for track listing.<br><br><br><br>P

ostage is first class.<br><br>There is no reserve price on this item.<br><br>Reduced postage for multiple items.<br><br>Feel free to ask any

 questions!', 'DispatchTimeMax': '3', 'Title': u'Holy Barbarians: Space Junkie CD single', 'CategoryMappingAllowed': 'true', 'StartPrice': '

0.99', 'ConditionID': 3000, 'Site': 'UK', 'PaymentMethods': 'PayPal', 'ListingDuration': 'Days_10', 'Currency': 'GBP', 'PayPalEmailAddress':

 'cormac.purtill@yahoo.co.uk', 'Country': 'GB', 'PostalCode': 'WD3 1LZ', 'ShippingDetails': {'ShippingType': 'Flat', 'ShippingServiceOptions

': {'ShippingServicePriority': '1', 'ShippingService': 'UK_RoyalMailFirstClassStandard', 'ShippingServiceCost': '2.00'}}, 'PrimaryCategory':

 {'CategoryID': 176984}, 'PictureDetails': {'PictureURL': ['http://i.ebayimg.com/00/s/NzY4WDEwMjQ=/z/CEoAAOxyNo9SsL~g/$_1.JPG?set_id=8800005

007', 'http://i.ebayimg.com/00/s/MTAyNFg3Njg=/z/ye8AAOxyVLNSsL~k/$_1.JPG?set_id=8800005007']}, 'Quantity': '1'}

 

This category is CDs > Music. Looking at genuine listings, this now appears to be a 'leaf' category, and the only available one.

 

Any ideas gratefully accepted!

api-python
10 |600

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

shulmani_developer.support avatar image
0 Likes"
shulmani_developer.support answered

Hi,

 

The possible Condition Values available for this Category are:

 

<CategoryID>176984</CategoryID>
  <ConditionEnabled>Required</ConditionEnabled>
- <ConditionValues>
- <Condition>
  <ID>1000</ID>
  <DisplayName>New</DisplayName>
  </Condition>
- <Condition>
  <ID>2750</ID>
  <DisplayName>Like New</DisplayName>
  </Condition>
- <Condition>
  <ID>4000</ID>
  <DisplayName>Very Good</DisplayName>
  </Condition>
- <Condition>
  <ID>5000</ID>
  <DisplayName>Good</DisplayName>
  </Condition>
- <Condition>
  <ID>6000</ID>
  <DisplayName>Acceptable</DisplayName>
  </Condition>
 

Always use the GetCategoryFeatures API Call : http://developer.ebay.com/DevZone/XML/docs/Reference/eBay/GetCategoryFea... setting the FeatureID  (<FeatureID>ConditionValues</FeatureID>) to ConditionID to get the right values .

Here is a knowledge Base article for the same: https://ebaydts.com/eBayKBDetails?KBid=1705

 

Please change this and see if the request goes through fine.

 

Cheers!!!

10 |600

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

cormac70 avatar image
0 Likes"
cormac70 answered

YES!! Thanks so much - works fine now.

 

Despite the error pointing to condition, I never thought to look at it, after it previously meant category was wrong. There's a lesson there... :-)

 

Thanks again!

10 |600

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

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.