A referral program is defined by an advocate ( the referrer ) and a referral code.
- The advocate is the person who invited their friend via referral program.
- The friend is the person who receives the invite from an advocate
- The referral code is a code which is generated similar to a coupon code the code can be redeemed by either one or multiple referrers.
Creating the referral code by API
The referral code can be generated by the createReferralCode
endpoint ( or a type in GraphQL )
The schema or the expected requested body includes the below fields:
- advocateId
- friendId
- campaignId
- expiryDate
- startDate