27 August 2025
Pricing and DiscountsMessages/SubscriptionsGraphQL
You can now activate or deactivate a Discount Group in a Project. This enhancement lets you manage temporary promotions efficiently without deleting the Discount Group or reconfiguring Cart Discounts in a Project.
Changes:
- [API] Updated the following in the Discount Groups API:
- Added the
isActive
field to DiscountGroup and DiscountGroupDraft types. - Added the Set IsActive update action.
- Added the
- [API] Added the MaxDiscountGroupsReached error for Discount Groups.
- [API] Added the DiscountGroupIsActiveSet Message for Discount Groups.
- [GraphQL API] Added the
isActive
field to theDiscountGroup
type. - [GraphQL API] Added the
isActive
input field to theDiscountGroupDraft
type. - [GraphQL API] Added the
setIsActive
input field to theDiscountGroupUpdateAction
type. - [GraphQL API] Added the
DiscountGroupIsActiveSet
type.
The following changes were introduced in terms of GraphQL SDL:
extend type DiscountGroup {
isActive: Boolean!
}
extend input DiscountGroupUpdateAction {
setIsActive: SetDiscountGroupIsActive
}
extend input DiscountGroupDraft {
isActive: Boolean = true
}
type DiscountGroupIsActiveSet implements MessagePayload {
isActive: Boolean!
discountGroupId: String!
type: String!
}
"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
input SetDiscountGroupIsActive {
isActive: Boolean!
}