Loyalty API
TypeReferral2
Describes a referral made by a referrer customer.
Note that if multiple people accept a referral from a single link, we will return that as multiple Referral2 entries with the same referral_bhid. These entries will have the same channel and destination.
| Kind | Type |
|---|---|
| Used in | CustomerReferrals2, Refer2 |
Properties
-
Bubblehouse ID of the referral.
-
For accepted referrals, a Bubblehouse ID of the particular act of accepting the referral by a single customer.
Null iff the status is
pendingorexpired. -
The method used to deliver the referral link (or code) to the target person or audience.
-
destinationstring optionalAn email address for the email channel. Could be used by other channels in the future when relevant; currently the SMS method does not record phone numbers, and social methods do not record social accounts.
-
Whether a referral is accepted or not, and, if accepted, whether the referrer has received a reward or not.
-
linkstring optionalA sharable link for this referral.
Null iff the status is
expired. -
The time when the referral link has been generated.
-
The last time the referral status has been updated; matches
sent_atfor pending referrals.This field should be used to sort referrals chronologically.