Docs
Dashboard

CartDiscountGroup

Object

Represents a group for cart discounts with stacking behavior.

#

Fields


discounts
CartDiscountConnection!

Gets the cart discounts that are members of this group.

discountsCount
Long!

Gets the count of cart discounts that are members of this group.

id
ID!

Gets the ID of the cart discount group.

name
String!

Gets the name of the cart discount group.

stackingMode
StackingMode!

Gets the stacking mode of the cart discount group.

Possible enum values
  • PARALLEL

    Applies each eligible discount against the same original amount.

  • SERIAL

    Applies eligible discounts in sequence, each against the amount remaining after earlier discounts.

#

Queries


Gets a cart discount group by its ID.

Returns a list of cart discounts.

#

Mutations


Creates a new cart discount group.

Deletes a cart discount group.

Adds a cart discount to a group.

Removes a cart discount from a group.

Re-orders multiple cart discounts within a group.

Updates an existing cart discount group.