Hooks API
EnumDiscountContext1
The context (reason) why a discount coupon is being created.
This is not an exhaustive list. New values can be introduced without notice, and undocumented values may be returned. You MUST ignore any values you do not know how to handle.
| Kind | Enum type |
|---|---|
| Used in | CreateDiscount4 |
Values
-
point_redemptionThe customer is redeeming points to use when ordering
-
point_redemption_towards_subscriptionThe customer is applying points to a subscription
-
referralThe customer is referring a friend, and this coupon is for the friend
-
referrer_rewardThe customer has successfully referred a friend, and is now getting a reward coupon for that
-
birthdayThe customer is getting a birthday coupon
-
anniversaryThe customer is getting a loyalty anniversary coupon
-
vendibleThe customer is redeeming points for a vendible
The specific vendible can be identified via
subject_slugsproperty. -
achievementThe customer has unlocked an achievement that produces a discount code
The specific achievement can be identified via
subject_slugsproperty.