ReferralsRepository
The ReferralsRepository interface invokes and manages referral-related REST API requests. Use this class to interact with the Salesforce Referral Marketing APIs and manage referral-related operations.
The ReferralsRepository interface class provides these methods:
Enroll a new member to a given promotion.
Type: String
Description: The name of the country of the member.
Type: String
Description: Required. The email ID of the member.
Type: String
Description: Channel used to join the referral program. Possible values are CallCenter, Email, Franchise, Mobile, Partner, Pos, Print, Social, Store, or Web. The default value is Email.
Type: String
Description: Required. The first name of the member.
Type: String
Description: Required. The last name of the member.
Type: String
Description: Status of the new advocate after enrollment. Possible values are Active, Inactive, or a custom value defined in your org. For example, if an advocate must be evaluated before confirming enrollment, you can create a status called On Hold and assign it to this field. The default value is Active.
Type: String
Description: Required. The promotion name to enroll for.
Type: String
Description: Required. The promotion code to enroll for.
Type: String
Description: The name of the state of the member.
Type: String
Description: Frequency at which transaction statements must be generated for the advocate. Possible values are Monthly or Quarterly. The default value is Monthly.
Type: String
Description: Preferred method of receiving transaction journal statements. Possible values are Email or Mail. The default value is Email.
Enroll an existing member to a given promotion using the membership number.
Type: String
Description: Required. The promotion name to enroll for.
Type: String
Description: Required. The promotion code to enroll for.
Type: String
Description: Required. The membership number of the existing member.
Enroll an existing member to a given promotion using the contact ID.
Type: String
Description: Required. The promotion name to enroll for.
Type: String
Description: Required. The promotion code to enroll for.
Type: String
Description: Required. The contact ID of the existing member.
Enroll an existing member to a new promotion.
Type: String
Description: Required. The promotion name to enroll for.
Type: String
Description: Required. The promotion code to enroll for.
Send referral emails to the given recipients.
Type: String
Description: Required. The referral code to share with the recipients.
Type: List<String>
Description: Required. A list of recipient emails to share the referral code with.