DefinitionsApi - functional programming interface

  • Parameters

    • Optionalconfiguration: Configuration

    Returns {
        getDefinitionsProductType(
            productType: string,
            marketplaceIds: string[],
            sellerId?: string,
            productTypeVersion?: string,
            requirements?: GetDefinitionsProductTypeRequirementsEnum,
            requirementsEnforced?: GetDefinitionsProductTypeRequirementsEnforcedEnum,
            locale?: GetDefinitionsProductTypeLocaleEnum,
            options?: RawAxiosRequestConfig,
        ): Promise<
            (
                axios?: AxiosInstance,
                basePath?: string,
            ) => AxiosPromise<ProductTypeDefinition>,
        >;
        searchDefinitionsProductTypes(
            marketplaceIds: string[],
            keywords?: string[],
            itemName?: string,
            locale?: string,
            searchLocale?: string,
            options?: RawAxiosRequestConfig,
        ): Promise<
            (
                axios?: AxiosInstance,
                basePath?: string,
            ) => AxiosPromise<ProductTypeList>,
        >;
    }

    • getDefinitionsProductType:function
      • Retrieve an Amazon product type definition. Usage Plans: | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 5 | 10 | |Selling partner specific| Variable | Variable | 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.

        Parameters

        • productType: string

          The Amazon product type name.

        • marketplaceIds: string[]

          A comma-delimited list of Amazon marketplace identifiers for the request. Note: This parameter is limited to one marketplaceId at this time.

        • OptionalsellerId: 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.

        • OptionalproductTypeVersion: string

          The version of the Amazon product type to retrieve. Defaults to &quot;LATEST&quot;,. Prerelease versions of product type definitions may be retrieved with &quot;RELEASE_CANDIDATE&quot;. If no prerelease version is currently available, the &quot;LATEST&quot; live version will be provided.

        • Optionalrequirements: GetDefinitionsProductTypeRequirementsEnum

          The name of the requirements set to retrieve requirements for.

        • OptionalrequirementsEnforced: GetDefinitionsProductTypeRequirementsEnforcedEnum

          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).

        • Optionallocale: GetDefinitionsProductTypeLocaleEnum

          Locale for retrieving display labels and other presentation details. Defaults to the default language of the first marketplace in the request.

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<
            (
                axios?: AxiosInstance,
                basePath?: string,
            ) => AxiosPromise<ProductTypeDefinition>,
        >

    • searchDefinitionsProductTypes:function
      • Search for and return a list of Amazon product types that have definitions available. Usage Plans: | Plan type | Rate (requests per second) | Burst | | ---- | ---- | ---- | |Default| 5 | 10 | |Selling partner specific| Variable | Variable | 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.

        Parameters

        • marketplaceIds: string[]

          A comma-delimited list of Amazon marketplace identifiers for the request.

        • Optionalkeywords: string[]

          A comma-delimited list of keywords to search product types. Note: Cannot be used with `itemName`.

        • OptionalitemName: string

          The title of the ASIN to get the product type recommendation. Note: Cannot be used with `keywords`.

        • Optionallocale: string

          The locale for the display names in the response. Defaults to the primary locale of the marketplace.

        • OptionalsearchLocale: string

          The locale used for the `keywords` and `itemName` parameters. Defaults to the primary locale of the marketplace.

        • Optionaloptions: RawAxiosRequestConfig

          Override http request option.

        Returns Promise<
            (
                axios?: AxiosInstance,
                basePath?: string,
            ) => AxiosPromise<ProductTypeList>,
        >