01-20-2024 02:24 PM
myitem["Item"]["ConditionDescriptors"]["ConditionDescriptor"].append({'Name': '27501', 'Value': row[12]}) myitem["Item"]["ConditionDescriptors"]["ConditionDescriptor"].append({'Name': '27502', 'Value': row[13]}) myitem["Item"]["ConditionDescriptors"]["ConditionDescriptor"].append({'Name': '27503', 'Value': '87651234'})
I'm using the code above to add the correct Professional Grader and Grade, however the last line, which is supposed to provide the Certification Number, is coming back with this error:
AddItem: Class: RequestError, Severity: Error, Code: 21920352, Condition descriptor value 87651234 is not valid for condition descriptor 27503. Condition descriptor value 87651234 is not valid for condition descriptor 27503., Class: RequestError, Severity: Error, Code: 21920357, Valid information is required for descriptor Certification Number (27503). Descriptor information sent as NULL. Valid information is required for descriptor Certification Number (27503).
I need advisement on how to populate this field, because what I'm doing is not working.
01-20-2024 03:03 PM
https://developer.ebay.com/api-docs/sell/inventory/types/slr:ConditionDescriptor
The certification number is not a name/value under ConditionDescriptor. Instead, it is called "AdditionalInfo" under ConditionDescriptor. So I think your last row might be something like:
myitem["Item"]["ConditionDescriptors"]["ConditionDescriptor"].append({'AdditionalInfo': '87651234'})
See a Trading API example here:
https://developer.ebay.com/Devzone/XML/docs/Reference/eBay/AddItem.html
<ConditionDescription> string </ConditionDescription>
<ConditionDescriptors> ConditionDescriptorsType
<ConditionDescriptor> ConditionDescriptorType
<AdditionalInfo> string </AdditionalInfo>
<Name> string </Name>
<Value> string </Value>
<!-- ... more Value values allowed here ... -->
</ConditionDescriptor>