Create listing - Product type - required attributes #4587
Replies: 2 comments 5 replies
-
|
Hi @upsitesolutionsnl The required attributes are dynamic. As you fill out different attributes, the required attributes might change. So typically you will get more required attributes than the 6 attributes you saw. You can find
json-schema.org has tools you can use to render the product type JSON schema and validate your product payload. We recommend you validate your product payload using these tools first before submitting the product payload. You can also consider using VALIDATION PREVIEW with putListingsItem to test a few product payloads before submission. Hope this helps! Let me know if you have any questions about the information above. Weiling |
Beta Was this translation helpful? Give feedback.
-
|
Why does VALIDATION_PREVIEW return different errors than when using the actual putListingsItem call? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
When I'm trying to create a new listing, i'm faced with inconsistencies between the required fields and what the actual JSON LISTING FEED gives back as what should havve been required fields.
To start this process I'm using the SP API to get the product type definition for indentifier HEADPHONE_EARPAD.
This gives back the following required_fields:
[0 : "brand"]
[1 : "bullet_point"]
[2 : "country_of_origin"]
[3 : "item_name"]
[4 : "product_description"]
[5 : "recommended_browse_nodes"]
[6 : "supplier_declared_dg_hz_regulation"]
Even when I go down to the base node CONSUMER_ELECTRONICS I'm getting the same default list of required fields.
When I submit my feed based on these required fields im getting many required fields errors that are not related this list of required fields
90220 | ERROR | item_package_weight is required but not supplied.
90220 | ERROR | warranty_description is required but not supplied.
90220 | ERROR | item_package_dimensions is required but not supplied.
90220 | ERROR | number_of_items is required but not supplied.
90220 | ERROR | list_price is required but not supplied.
90220 | ERROR | batteries_required is required but not supplied.
90220 | ERROR | manufacturer is required but not supplied.
I'm really wondering how I'm going to do this. The Amazon documentation for this 90220 error explains "To avoid this, use the Product Type Definitions API to identify required attributes and add to validation checks."
But that really does not solve this issue at all. I'm using the same MarketplaceID consistenly throughout these calls.
Thanks in advance for your help!
Beta Was this translation helpful? Give feedback.
All reactions