Referral event
Create referral event records when an advocate refers a friend, or when the referred friends sign up or make a purchase.
| Parameter | Type | Description |
|---|---|---|
devMode | Boolean | Indicates whether the method is run in the developer mode (true) or not (false). |
emails | String[] | Required. A list of recipient emails to share the referral code with. |
eventType | String | The type of event. Possible values are Enrollment, Purchase, or Refer. The default value is Refer. |
referralCode | String | Required. The referral code to share with the recipients. |
version | String | The API version. |
A ReferralEventOutputModel instance.