Skip to Content

LoyaltyDiscountProgress

Represents the progress of a loyalty discount for a customer, including their spending history, current tier status, and progression towards the next discount level.

Type Definition

type LoyaltyDiscountProgress { title: String description: String totalSpent: Float! isStackable: Boolean! isCombinable: Boolean! levels: [LoyaltyDiscountLevel]! currentLevelValidUntil: String currentLevelThreshold: Float! currentLevelDiscount: Float! nextLevelThreshold: Float nextLevelDiscount: Float }

Fields

FieldTypeDescription
titleStringThe title of the loyalty discount.
descriptionStringThe description of the loyalty discount.
totalSpentFloat!The total amount spent by the customer.
isStackableBoolean!Whether the loyalty discount is stackable.
isCombinableBoolean!Whether the loyalty discount is combinable.
levels[LoyaltyDiscountLevel]!The levels of the loyalty discount.
currentLevelValidUntilStringThe valid until date of the current level.
currentLevelThresholdFloat!The threshold of the current level.
currentLevelDiscountFloat!The discount of the current level.
nextLevelThresholdFloatThe threshold of the next level.
nextLevelDiscountFloatThe discount of the next level.

Relationships

LoyaltyDiscountProgress is used by the Customer type to provide customers with visibility into their current loyalty tier status and progress. The type contains a collection of LoyaltyDiscountLevel objects that define the structure of available loyalty tiers. It tracks both the customer’s current tier benefits and the metrics required to advance to the next level.

Example

{ title description totalSpent isStackable isCombinable currentLevelValidUntil currentLevelThreshold currentLevelDiscount nextLevelThreshold nextLevelDiscount levels { id threshold discount } }

Implements

This type does not implement any interfaces.