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

{
   "inputs":[{
      "LoyaltyProgramMemberId":"0lMxx0000A000001EAA"
   }, {
      "LoyaltyProgramMemberId":"0lQxx0000B000001EBS"
   }]
}