ProductTypeDefinitions

class sp_api.api.ProductTypeDefinitions(marketplace: Marketplaces = Marketplaces.US, *, refresh_token=None, account='default', credentials=None, restricted_data_token=None, proxies=None, verify=True, timeout=None, version=None, credential_providers=None)

ProductTypeDefinitions SP-API Client :link:

The Selling Partner API for Product Type Definitions provides programmatic access to attribute and data requirements for product types in the Amazon catalog. Use this API to return the JSON Schema for a product type that you can then use with other Selling Partner APIs, such as the Selling Partner API for Listings Items, the Selling Partner API for Catalog Items, and the Selling Partner API for Feeds (for JSON-based listing feeds).

search_definitions_product_types(self, **kwargs) ApiResponse

Search for and return a list of Amazon product types that have definitions available.

Usage Plans:

Rate (requests per second)

Burst

5

10

The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see “Usage Plans and Rate Limits” in the Selling Partner API documentation.

Parameters:
  • keywords (key) – array | A comma-delimited list of keywords to search product types by.

  • marketplaceIds (key) – array | * REQUIRED A comma-delimited list of Amazon marketplace identifiers for the request.

Return type:

ApiResponse

get_definitions_product_type(self, productType, **kwargs) ApiResponse

Retrieve an Amazon product type definition.

Usage Plans:

Rate (requests per second)

Burst

5

10

The x-amzn-RateLimit-Limit response header returns the usage plan rate limits that were applied to the requested operation. Rate limits for some selling partners will vary from the default rate and burst shown in the table above. For more information, see “Usage Plans and Rate Limits” in the Selling Partner API documentation.

Parameters:
  • productType – string | * REQUIRED The Amazon product type name.

  • sellerId (key) – string | A selling partner identifier. When provided, seller-specific requirements and values are populated within the product type definition schema, such as brand names associated with the selling partner.

  • marketplaceIds (key) – array | * REQUIRED A comma-delimited list of Amazon marketplace identifiers for the request.

  • productTypeVersion (key) – string | The version of the Amazon product type to retrieve. Defaults to “LATEST”,. Prerelease versions of product type definitions may be retrieved with “RELEASE_CANDIDATE”. If no prerelease version is currently available, the “LATEST” live version will be provided.

  • requirements (key) – string | The name of the requirements set to retrieve requirements for.

  • requirementsEnforced (key) – string | Identifies if the required attributes for a requirements set are enforced by the product type definition schema. Non-enforced requirements enable structural validation of individual attributes without all the required attributes being present (such as for partial updates).

  • locale (key) – string | Locale for retrieving display labels and other presentation details. Defaults to the default language of the first marketplace in the request.

Return type:

ApiResponse