@gradientedge/commercetools-utils
    Preparing search index...

    Interface VariantAttributes

    A lightweight representation of a Product's Variants with only the requested Attributes and minimal availability data. Designed for building attribute selectors on product detail pages (PDPs).

    interface VariantAttributes {
        attributes: VariantAttributesAttributeMetadata[];
        productId: string;
        productKey?: string;
        variants: VariantAttributesVariant[];
    }
    Index

    Metadata for the requested Attributes, derived from the ProductType. Attributes not found in the ProductType are silently omitted.

    productId: string

    Unique identifier of the Product.

    productKey?: string

    User-defined unique identifier of the Product.

    All Variants of the Product with their requested Attributes and availability.