Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

Generate Referral Code

Generate a referral code for a loyalty program member.

If a loyalty program member already has a referral code, generating another code replaces the existing one.

Note

This action is available in API version 57.0 and later for users with the Loyalty Management license.

Supported REST HTTP Methods

URI
/services/data/vXX.X/actions/standard/generateMemberReferralCode
Formats
JSON
HTTP Methods
POST
Authentication
Authorization: Bearer token

Inputs

Input Details
LoyaltyProgramMemberId
Type
String
Description
Required. ID of the loyalty program member to generate the referral code for.

Specify an array of member IDs in the JSON request to generate referral codes for multiple members.

Note

Outputs

None.

Example

Sample Request

1{
2   "inputs":[{
3      "LoyaltyProgramMemberId":"0lMxx0000A000001EAA"
4   }, {
5      "LoyaltyProgramMemberId":"0lQxx0000B000001EBS"
6   }]
7}