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

    Interface ProductSelectionAddProductAction

    Adds a Product to the Product Selection.

    If the specified Product is already assigned to the Product Selection, but the existing Product Selection has a different Product Variant Selection, a [ProductPresentWithDifferentVariantSelection](ctp:api:type:ProductPresentWithDifferentVariantSelectionError) error is returned.
    
    interface ProductSelectionAddProductAction {
        action: "addProduct";
        product: ProductResourceIdentifier;
        variantSelection?: ProductVariantSelection;
    }

    Hierarchy (View Summary)

    Index

    Properties

    action: "addProduct"

    ResourceIdentifier of the Product

    variantSelection?: ProductVariantSelection

    Defines which Variants of the Product will be included in the Product Selection. If not supplied all Variants are deemed to be included.