27 August 2025
Composable Commerce
HTTP API
Enhancement
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:
  • [API] Added the MaxDiscountGroupsReached error for Discount Groups.
  • [API] Added the DiscountGroupIsActiveSet Message for Discount Groups.
  • [GraphQL API] Added the isActive field to the DiscountGroup type.
  • [GraphQL API] Added the isActive input field to the DiscountGroupDraft type.
  • [GraphQL API] Added the setIsActive input field to the DiscountGroupUpdateAction 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!
}