Hooks API

DiscountContext1

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.

Values

  • point_redemption

    The customer is redeeming points to use when ordering

  • point_redemption_towards_subscription

    The customer is applying points to a subscription

  • referral

    The customer is referring a friend, and this coupon is for the friend

  • referrer_reward

    The customer has successfully referred a friend, and is now getting a reward coupon for that

  • birthday

    The customer is getting a birthday coupon

  • anniversary

    The customer is getting a loyalty anniversary coupon

  • vendible

    The customer is redeeming points for a vendible

    The specific vendible can be identified via subject_slugs property.

  • achievement

    The customer has unlocked an achievement that produces a discount code

    The specific achievement can be identified via subject_slugs property.

Previous
NoteHistoryUpdates1