Docs
Dashboard

ProductDiscountCreateInput

Input

Input type for creating a product discount.

#

Fields


absoluteInput
ProductDiscountAbsoluteInput

The absolute discount input specifying fixed discount amounts in different currencies.

name
String!

The name of the product discount.

predicate
String!

The predicate of the discount, which defines the conditions under which the discount applies.

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.
priority
Int!

Lower values indicate higher priority. Discounts with lower priority values are applied first.

relativeInput
ProductDiscountRelativeInput

The relative discount input specifying a percentage-based discount factor.

validFrom
DateTime

The date and time from which the discount becomes valid. If null, the discount is valid immediately.

validUntil
DateTime

The date and time until which the discount remains valid. If null, the discount has no expiration date.