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

    Interface CartDiscountAddStoreAction

    If a referenced Store does not exist, a ReferencedResourceNotFound error is returned.

    This action generates a [CartDiscountStoreAdded](ctp:api:type:CartDiscountStoreAddedMessage) Message.
    
    interface CartDiscountAddStoreAction {
        action: "addStore";
        store: StoreResourceIdentifier;
    }

    Hierarchy (View Summary)

    Index

    Properties

    Properties

    action: "addStore"

    Store to add.

    A failed update can return the following errors:
    
    - If the referenced Stores exceed the [limit](/../api/limits#cart-discounts-stores), a [MaxStoreReferencesReached](ctp:api:type:MaxStoreReferencesReachedError) error is returned.
    - If the referenced Stores exceed the [limit](/../api/limits#cart-discounts) for Cart Discounts that do not require a Discount Code, a [StoreCartDiscountsLimitReached](ctp:api:type:StoreCartDiscountsLimitReachedError) error is returned.