Referral Event Input

Input representation of the request to create a referral event.

Here’s an example of a payload for an event where the existing member refers his friend, Michael Clare.

Here’s an example of a payload to know which channel did the referral come from.

Here’s an example of a payload for an event where Michael Clare signs up for the referral program.

Here’s an example of a payload for an event where Michael Clare purchases a product.

Here’s an example of a payload for an event where the existing member refers multiple friends.

Type: String

Description: The date and time when the referral event took place.

Required or Optional: Optional. This field is required only if the joining date isn’t specified in the request.

Available Version: 59.0

Type: String

Description: Contact ID of the referred friend.

Required or Optional: Optional. Required if the referral record exists.

Available Version: 59.0

Type: String

Description: Email address of the referred friend.

Required or Optional: Optional. Required only if the contact ID of the referred friend doesn’t exist.

Available Version: 59.0

Type: String

Description: Type of event completed by the referred friend or advocate. Possible values are:

  • Enrollment
  • Purchase
  • Refer

Required or Optional: Required

Available Version: 59.0

Type: String

Description: First name of the referred friend.

Required or Optional: Optional. Required only if the contact ID of the referred friend doesn’t exist.

Available Version: 59.0

Type: String

Description: Date the referred friend joined as a new customer.

This field has been deprecated. In API version 59.0 and later, use the new activityDateTime field.

Required or Optional: Optional. This field is required only if the activity date and time isn’t specified in the request.

Available Version: 59.0

Type: String

Description: Family name of the referred friend.

Required or Optional: Optional. Required only if the contact ID of the referred friend doesn’t exist.

Available Version: 59.0

Type: String

Description: Mobile phone of the referral.

Required or Optional: Optional

Available Version: 68.0

Type: Boolean

Description: Indicates whether the new customer has opted in to receive WhatsApp messages from the company.

Required or Optional: Optional

Available Version: 62.0

Type: String

Description: External purchase order ID.

This field is applicable only when the event type is Purchase.

Required or Optional: Optional

Available Version: 59.0

Type: String

Description: ID of the product purchased by the referral.

This field is applicable only when the event type is Purchase.

Required or Optional: Optional

Available Version: 59.0

Type: Double

Description: Price of the product purchased by the referred friend.

This field is applicable only when the event type is Purchase.

Required or Optional: Optional

Available Version: 59.0

Type: Integer

Description: Quantity purchased by the referred friend.

This field is applicable only when the event type is Purchase.

Required or Optional: Optional

Available Version: 59.0

Type: Map<String, String>

Description: Key value pairs for additional information about the referred friend.

Required or Optional: Optional

Available Version: 59.0

Type: String

Description: Channels such as email and social media that are used to refer a friend.

Required or Optional: Optional

Available Version: 62.0

Type: String

Description: Referral code used by the referred friend to sign up or make a purchase. It’s a combination of the referral code and promotion code in the format, referralCode-promotionCode.

Required or Optional: Required

Available Version: 59.0

Type: String[]

Description: The email addresses of the referral friends.

Required or Optional: Optional

Available Version: 59.0

Type: String[]

Description: The mobile phone numbers of the referral friends.

Required or Optional: Optional

Available Version: 68.0

Type: String

Description: The event type to consider based on the stage of the referral promotion.

Required or Optional: Optional

Available Version: 62.0

Type: String

Description: The activity for which the referred members are rewarded.

Required or Optional: Optional

Available Version: 62.0

Type: Map<String, String>

Description: Additional details of the transaction journal that is created for the event.

Required or Optional: Optional

Available Version: 59.0

Type: String

Description: Locale for contact for WhatsApp distribution channel.

Required or Optional: Optional

Available Version: 62.0

Type: String

Description: Contact field used for Locale WhatsApp distribution channel.

Required or Optional: Optional

Available Version: 62.0