Skip to Content

LoyaltyDiscountProgress

Represents the progress of a loyalty discount for a customer, including spending thresholds, discount levels, and tier advancement information.

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 tracks a customer’s progression through loyalty discount tiers. It contains a collection of LoyaltyDiscountLevel objects that define the available tier levels. The type is accessed through the Customer object via the loyaltyDiscountProgress field.

Example

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

Implements

None