30 September 2025
Composable Commerce
HTTP API
New feature
Project configurationPricing and Discounts
A new configuration option has been added to the Project API, allowing you to control how Product Discounts and Cart Discounts are combined for every Cart in a Project. You can now choose between stacking both discount types or applying only the best deal for your customers. This provides greater flexibility in managing discount strategies and ensures that you can tailor discount application to your business needs. The configuration is accessible via the Project resource and can be updated using a new update action.

Changes:

  • [API] Added DiscountCombinationMode enum.
  • [API] Added Set Discounts Configuration update action.
  • [GraphQL API] Added the following types to the GraphQL schema: DiscountCombinationMode, DiscountsConfiguration, DiscountsConfigurationInput, SetProjectSettingsDiscountsConfiguration.
  • [GraphQL API] Added the setDiscountsConfiguration input field to the ProjectSettingsUpdateAction type.

The following changes were introduced in terms of GraphQL SDL:

extend type ProjectProjection {
  discounts: DiscountsConfiguration!
}

extend input ProjectSettingsUpdateAction {
  setDiscountsConfiguration: SetProjectSettingsDiscountsConfiguration
}

enum DiscountCombinationMode {
  Stacking
  BestDeal
}

type DiscountsConfiguration {
  discountCombinationMode: DiscountCombinationMode!
}

input DiscountsConfigurationInput {
  discountCombinationMode: DiscountCombinationMode
}

input SetProjectSettingsDiscountsConfiguration {
  discountsConfigurationDraft: DiscountsConfigurationInput!
}