Open jlevers opened 1 week ago
Hello @jlevers
Thank you for raising this issue and providing the right mappings. We will share the feedback with the team to investigate all the JSON mapping paths.
As a best practice, it is recommended to validate the JSON Schemas against the Product Type Definitions API response to ensure they are in the correct format.
Thanks, Ritika Chaudhary Selling Partner API Developer Services
Some of the attribute mappings in the flat file product attribute mappings file (available here) are incorrect, because they're missing an integer path component on some attributes that the product type JSON schema defines as a nested array.
For example, the
battery_weight
andbattery_weight_unit_of_measure
flat file feed columns are mapped like so:If I use those mappings, I get an error when I call the Listings API. That's because the definition of the
weight
property of thebattery
product type attribute in the product type JSON schema looks like this:That schema says that battery weight info must be sent in a JSON patch object that looks like this:
Which means that these are correct mappings for those properties:
Interestingly, the XML mappings file has these two paths correct. I'm guessing there are many more attributes with similar issues, although I have no good way of checking which ones they are. It would be great to get this resolved as quickly as possible, because it makes building an automated solution to mapping product attributes from the old flat-file format to the new JSON-based format inevitably filled with bugs.