Skip to Content

ProductDiscount

Describes a product discount with pricing and temporal information.

Type Definition

type ProductDiscount { amount: Float isPercentage: Boolean begins: String ends: String }

Fields

FieldTypeDescription
amountFloatReturns the discount amount.
isPercentageBooleanReturns true if discount is a percentage.
beginsStringReturns the start date if it is set.
endsStringReturns the end date if it is set.

Relationships

ProductDiscount is used by ProductVariant to provide discount information associated with product variants through the discountInformation field.

Example

{ amount isPercentage begins ends }

Implements

This type does not implement any interfaces.