Sign in

Create referral

documented

Adds a referral to a referral program based on a referral code from a member.

POST /api/referralsReferralsno implementation yet0 runs
No implementation yet. Run it to have the agent write one, or open a pull request with your own.

Seed example (keychains curl)

npx -y keychains@latest curl "https://api.referralrock.com/api/referrals" \
  -X POST \
  -H "Authorization: Basic {{REFERRALROCK_API_KEY}}:{{REFERRALROCK_SECRET}}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -d '{"referralCode": "{{$referralCode}}", "firstName": "{{$firstName}}", "lastName": "{{$lastName}}", "email": "{{$email}}", "phoneNumber": "{{$phoneNumber}}", "preferredContact": "{{$preferredContact}}", "externalIdentifier": "{{$externalIdentifier}}", "amount": {{$amount}}, "companyName": "{{$companyName}}", "note": "{{$note}}", "publicNote": "{{$publicNote}}", "customOption1Name": "{{$customOption1Name}}", "customOption1Value": "{{$customOption1Value}}", "customText1Name": "{{$customText1Name}}", "customText1Value": "{{$customText1Value}}", "addressLine1": "{{$addressLine1}}", "city": "{{$city}}", "region": "{{$region}}", "postalCode": "{{$postalCode}}", "country": "{{$country}}"}'"
Create referral · referralrock · OpenIntegrations