Skip to content
DiscountCodeRedemptionObject

One row per successful redemption. productPurchase and activityRegistration are mutually exclusive — exactly one is non-null, identifying what the code was applied to.

Fields

idID!
discountCodeDiscountCode!
participantParticipant!
amountAppliedCentsInt!
productPurchaseProductPurchase
activityRegistrationActivityRegistration
redeemedAtDateTime!
cancelledAtDateTime

Set when the parent purchase or registration was cancelled, after which this row no longer counts toward maxUses / maxUsesPerUser.

Used in

DiscountCodeRedemption