Skip to Content

ProductDiscount

A discount applied to a product.

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 the ProductVariant type through the discountInformation field, providing discount details for product variants in the catalog.

Example

{ amount isPercentage begins ends }

Implements

None