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 

InputTypeDescription
LoyaltyProgramMemberIdStringRequired. ID of the loyalty program member to generate the referral code for.

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

Outputs 

None.

Example 

Sample Request

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