Skip to content
DiscountCodeConditionObject

A single eligibility condition. All conditions on a code must be satisfied for the code to apply (AND logic), mirroring PricingRuleCondition.

Fields

idID!

The product the user must have an active purchase of. Set only for hasActiveProduct.

minimumClassesAttendedInt

Required count of attended classes (registrations with status confirmed and a non-null checkedInAt) at the business. Set only for hasMinimumClassesAttended.

Used in

DiscountCodeCondition