How to get all required attributes from product type definitions JSON schema #3713
-
I am integrating an external system to publish products on Amazon. I get type definitions for specific categories from the product type definitions API, which gives me the schema. The problem is that I want to get all the required attributes and enums of those attributes ahead of time. But the schema is so complex. What is the solution to this specific problem? I appreciate your interest! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Complex it is 😅 You can always check the Amazon's recommended workflow https://developer-docs.amazon.com/sp-api/docs/building-listings-management-workflows-guide Allso keep in mind of editable attributes later after new listing successfully created. |
Beta Was this translation helpful? Give feedback.
Complex it is 😅
Especially if you are creating new listings. IMHO its iterative process build a payload and send it to the API to get initial validation. OFC you can do validation yourself locally before sending to Amazon Listing API with some JSON Schema validation tools (or packages depending on your programming language). So you will cut some additional HTTP roundtrips and lower the request to the API. Hence local validation results could give some different results than the Amazon Listing API response ;)
You can always check the Amazon's recommended workflow https://developer-docs.amazon.com/sp-api/docs/building-listings-management-workflows-guide
Allso keep in mind of editable attrib…