Typescript SDK Type Docs
    Preparing search index...

    Interface DiscountGroupSetIsActiveAction

    This action generates the DiscountGroupIsActiveSet Message.

    If the [limit](/../api/limits#discount-groups) for active Discount Groups has been reached, a [MaxDiscountGroupsReached](ctp:api:type:MaxDiscountGroupsReachedError) error is returned.
    
    interface DiscountGroupSetIsActiveAction {
        action: "setIsActive";
        isActive: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    Properties

    action: "setIsActive"
    isActive: boolean

    New value to set.

    A DiscountGroup must be active for its CartDiscounts to be considered during discount application.