interface CartDiscountChangeIsActiveAction {
    action: "changeIsActive";
    isActive: boolean;
}

Properties

Properties

action: "changeIsActive"
isActive: boolean

New value to set. If set to true, the Discount will be applied to the Cart.

If the limit for active Cart Discounts is reached, a [MaxCartDiscountsReached](ctp:api:type:MaxCartDiscountsReachedError) error is returned.