A referral program is a customer acquisition technique in which existing customers invite others to register. Each participating customer receives a unique referral code to share. When a new customer registers using that code, a link is recorded between the two accounts and any configured incentives are applied according to the referral campaign rules.
The technique is known under several names in the industry:
Member get member (MGM) - the most common term in loyalty and CRM programs; emphasises that an existing member recruits a new one.
Refer a friend - the consumer-facing label most often used in marketing communications.
Friend referral - a variant of the above, common in mobile and e-commerce contexts.
Referral marketing - the broader marketing discipline term for advocacy-driven acquisition.
In CareCloud, the referral program is configured at the campaign level. A referral campaign defines the code generation method, validity period, and the customer relation type created on a successful referral. This endpoint returns the referral code assigned to a customer for a given campaign.
Get the referral code assigned to a customer. Each referral record contains a unique code that the customer can share to invite others to register. When a new customer registers using the code, a customer relation is created between the new customer and the referral code holder.
Default campaign behaviour
When no referral_campaign_id filter is provided, the result contains the code for the project's default referral campaign. To retrieve a code for a specific campaign, pass the referral_campaign_id filter.