Docs
Dashboard

ProductDiscountUpdateInput

Input

Updates an existing product discount.

#

Fields


absoluteInput
ProductDiscountAbsoluteInput

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

id
ID!

The unique identifier of the product discount to update.

name
String

New name for the product discount, if it needs to be changed.

predicate
String

Modified predicate for 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

The new priority of the discount. Lower values indicate higher priority, meaning discounts with lower priority values are applied first.

relativeInput
ProductDiscountRelativeInput

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

validFrom
DateTime

Date and time from which the discount is valid.

validUntil
DateTime

Date and time until which the discount is valid.