amzn / selling-partner-api-models

This repository contains OpenAPI models for developers to use when developing software to call Selling Partner APIs.
Apache License 2.0
585 stars 730 forks source link

[QUESTION] Getting required attribute from templates and post them in XML Feed, is it workable?? #2994

Closed hashhesh closed 2 years ago

hashhesh commented 2 years ago

Hi Guys

I am just wondering if below approach is workable:

We are working on integration so i need to know which are required attribute for each product type in order to render those attributes in our system and allow team to input/select attribute's values, So what i need to know is it ok/worable if i take required attributes from Category-specific inventory Templates and then render them in FEED XML file to list product not listed/existed yet in amazon?

But the issue some of the product type in sheet file as for attribute when i check it in xml file it's not there for that specific product type as mentioned in sheet file please take this example below image attribute name in xsd Is AgeRangeDescription as you can see screenshot above it's required for 3 products type while i can't see these products types have AgeRangeDescription at all. In Home.xsd file.

Since it seems to me that XSDs files are outdated and Category-specific templates considered as the source truth of required attributes So i am thinking to take the required attributes from templates files and render them in xml file will be a faster way for doing that. Does this workable approach ?? Please correct/advise me.

If you have time please read below to understand my point of view:

  1. in order to render fields in our system so the team can input/select valid values for each product type (sure after mapping amazon specific marketplace to our system categories) then after that take these attributes names and values and list them in feed xml file sure with each attribute under it's appropriate tag for example Title, Brand should be under DescriptionData.
  2. The reason we are using feeds it's because there are many of our products not listed yet in amazon.

I am very sorry if my question a kind if weird. Any hints any guides will be highly appreciated. Please let me know if you need more information. Thanks in advance

chapmanjw commented 2 years ago

@hashhesh The best path forward here is to leverage the newer Product Type Definition API, Listings Items API, and possibly the JSON_LISTINGS_FEED feed format.

We are migrating product types to these newer APIs and currently support ~600 product types in ~16 marketplaces. The Product Type Definitions API and PRODUCT_TYPE_DEFINITIONS_CHANGE notifications are the best way to keep up-to-date on the product types supported by these tools.

hashhesh commented 2 years ago

@chapmanjw many thanks man for advise and explanation you have provided. You have provided much better idea. appreciated.