CartDiscount

  • Object
#

Fields


String

The display name of the cart discount.

ID!

The unique identifier for the cart discount.

String!

The name of the cart discount.

String!

The predicate that defines the conditions under which the cart discount is applied. For example, a predicate could specify that the discount only applies if the cart total exceeds a certain amount or if specific products are in the cart.

Thor predicates are boolean expressions. Cart discounts and shipping rules evaluate against cart context; product discounts evaluate against price and product context. Cart predicate language and product predicate language.
Int!

The priority of the cart discount, which determines the order in which discounts are applied. Lower priority discounts are applied first.

Boolean!

True if the cart discount requires a discount code before it applies.

CartDiscountTarget!

The target of the cart discount, which specifies what the discount applies to. For example: shipping, total price or all/specific line items.

DateTime

The date and time the discount is valid from.

DateTime

The date and time the discount is valid until.

CartDiscountValue!

The value of the cart discount, which can be an absolute or relative discount.

#

Queries


#

Mutations