Add a member to a program
referralrock_create_memberWRITE: creates a new member (advocate) in a referral program and returns the member with their referral code and share URL. Not idempotent: a repeat call may create a duplicate or fail. When send_confirmation_email is true Referral Rock emails the member the program's confirmation email, which is a message to a real person; the default is false. POST /api/members.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| Yes | Member email address. | ||
| phone | No | Member phone number. | |
| confirm | No | Must be true when send_confirmation_email is true: confirms an email goes to the member. | |
| last_name | No | Member last name. | |
| first_name | Yes | Member first name. | |
| program_id | Yes | Program id to add the member to (see referralrock_list_programs). | |
| external_id | No | Your own id for this member, to link it to another system. | |
| referral_code | No | A custom referral code; Referral Rock generates one when left out. | |
| send_confirmation_email | No | Email the member the program's confirmation email (default false; needs confirm: true). |