POST api/referrals

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

Request Information

URI Parameters

Query String:

None.

Body Parameters

Type: NewReferral

NameDescriptionTypeAdditional information
referralCode

The referral code from the member that introduced the referral.

string

Required

firstName

Referral first name. Optional

string

None.

lastName

Referral last name. Optional

string

None.

email

Referral email address. Optional

string

None.

phoneNumber

Customer’s phone number. Optional

string

None.

preferredContact

The preferred means to contact the referral. The values an be 'email', 'callMorning', 'callAfternoon', or 'callEvening'. Optional.

string

None.

externalIdentifier

Unique external identifier you can use to later reference the referral. (i.e. another system's unique identifier, like a order number or customer ID). Optional.

string

None.

amount

Passed order amount/total. Optional.

decimal number

None.

companyName

Company name. Optional.

string

None.

note

Any note or other information you want to see tied to the Referral. Optional.

string

None.

publicNote

Any note that you want to be publicly tied to the Referral. Optional.

string

None.

customOption1Name

Custom option 1 name. Optional.

string

None.

customOption2Name

Custom option 2 name. Optional.

string

None.

customText1Name

Custom option 2 name. Optional.

string

None.

customText2Name

Custom text 2 name. Optional.

string

None.

customText3Name

Custom text 3 name. Optional.

string

None.

customOption1Value

Custom value tied to customoption1name. Optional.

string

None.

customOption2Value

Custom value tied to customoption2name. Optional.

string

None.

customText1Value

Custom value tied to customtext1name. Optional.

string

None.

customText2Value

Custom value tied to customtext2name. Optional.

string

None.

customText3Value

Custom value tied to customtext3name. Optional.

string

None.

status

Status of the Referral. The value can be "pending", "qualified", "approved", "denied". Optional.

string

None.

Request Formats

application/json, text/json

Sample:
{
  "referralCode": "sample string 1",
  "firstName": "sample string 2",
  "lastName": "sample string 3",
  "email": "sample string 4",
  "phoneNumber": "sample string 5",
  "preferredContact": "sample string 6",
  "externalIdentifier": "sample string 7",
  "amount": 1.0,
  "companyName": "sample string 8",
  "note": "sample string 9",
  "publicNote": "sample string 10",
  "customOption1Name": "sample string 11",
  "customOption2Name": "sample string 12",
  "customText1Name": "sample string 13",
  "customText2Name": "sample string 14",
  "customText3Name": "sample string 15",
  "customOption1Value": "sample string 16",
  "customOption2Value": "sample string 17",
  "customText1Value": "sample string 18",
  "customText2Value": "sample string 19",
  "customText3Value": "sample string 20",
  "status": "sample string 21"
}

application/xml, text/xml

Sample:
<newReferral xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <firstName>sample string 2</firstName>
  <lastName>sample string 3</lastName>
  <email>sample string 4</email>
  <phoneNumber>sample string 5</phoneNumber>
  <preferredContact>sample string 6</preferredContact>
  <externalIdentifier>sample string 7</externalIdentifier>
  <amount>1</amount>
  <companyName>sample string 8</companyName>
  <note>sample string 9</note>
  <publicNote>sample string 10</publicNote>
  <customOption1Name>sample string 11</customOption1Name>
  <customOption2Name>sample string 12</customOption2Name>
  <customText1Name>sample string 13</customText1Name>
  <customText2Name>sample string 14</customText2Name>
  <customText3Name>sample string 15</customText3Name>
  <customOption1Value>sample string 16</customOption1Value>
  <customOption2Value>sample string 17</customOption2Value>
  <customText1Value>sample string 18</customText1Value>
  <customText2Value>sample string 19</customText2Value>
  <customText3Value>sample string 20</customText3Value>
  <status>sample string 21</status>
  <referralCode>sample string 1</referralCode>
</newReferral>

Response Information

Resource Description

[HTTP Status 201 - Created]

Type: ReferralConfirmation

NameDescriptionTypeAdditional information
referral

Structure containing details about the referral.

Referral

None.

message

The message provides more information about the results of the client's request. Review this field for error information.

string

None.

Response Formats

application/json, text/json

Sample:
{
  "message": "sample string 1",
  "referral": {
    "id": "40d186d0-defd-4fe0-bcbf-d0ef02a67a49",
    "displayName": "sample string 2",
    "firstName": "sample string 3",
    "lastName": "sample string 4",
    "fullName": "sample string 5",
    "email": "sample string 6",
    "externalIdentifier": "sample string 7",
    "phoneNumber": "sample string 8",
    "amount": 9.0,
    "amountFormatted": "sample string 10",
    "preferredContact": "sample string 11",
    "createDate": "2024-11-20T06:23:37.1383921Z",
    "updateDate": "2024-11-20T06:23:37.1383921Z",
    "source": "sample string 14",
    "programId": "6337faf3-07f6-411b-a951-1d6694da6d35",
    "programName": "sample string 16",
    "programTitle": "sample string 17",
    "referringMemberId": "0ad41e68-fd71-4c27-a988-9194c24f201a",
    "referringMemberName": "sample string 19",
    "memberEmail": "sample string 20",
    "memberReferralCode": "sample string 21",
    "memberExternalIdentifier": "sample string 22",
    "approvedDate": "2024-11-20T06:23:37.1383921Z",
    "qualifiedDate": "2024-11-20T06:23:37.1383921Z",
    "status": "sample string 23",
    "companyName": "sample string 24",
    "note": "sample string 25",
    "publicNote": "sample string 26",
    "customOption1Name": "sample string 27",
    "customOption2Name": "sample string 28",
    "customText1Name": "sample string 29",
    "customText2Name": "sample string 30",
    "customText3Name": "sample string 31",
    "customOption1Value": "sample string 32",
    "customOption2Value": "sample string 33",
    "customText1Value": "sample string 34",
    "customText2Value": "sample string 35",
    "customText3Value": "sample string 36",
    "conversionNote": "sample string 37",
    "conversionIPAddress": "sample string 38",
    "utmSource": "sample string 39",
    "utmMedium": "sample string 40",
    "utmCampaign": "sample string 41",
    "browserReferrerUrl": "sample string 42",
    "IPAddressSource": "sample string 43"
  }
}

application/xml, text/xml

Sample:
<referralConfirmation xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <message>sample string 1</message>
  <referral>
    <id>40d186d0-defd-4fe0-bcbf-d0ef02a67a49</id>
    <displayName>sample string 2</displayName>
    <firstName>sample string 3</firstName>
    <lastName>sample string 4</lastName>
    <fullName>sample string 5</fullName>
    <email>sample string 6</email>
    <externalIdentifier>sample string 7</externalIdentifier>
    <phoneNumber>sample string 8</phoneNumber>
    <amount>9</amount>
    <amountFormatted>sample string 10</amountFormatted>
    <createDate>2024-11-20T06:23:37.1383921+00:00</createDate>
    <preferredContact>sample string 11</preferredContact>
    <updateDate>2024-11-20T06:23:37.1383921+00:00</updateDate>
    <source>sample string 14</source>
    <programId>6337faf3-07f6-411b-a951-1d6694da6d35</programId>
    <programName>sample string 16</programName>
    <programTitle>sample string 17</programTitle>
    <referringMemberId>0ad41e68-fd71-4c27-a988-9194c24f201a</referringMemberId>
    <referringMemberName>sample string 19</referringMemberName>
    <memberEmail>sample string 20</memberEmail>
    <memberReferralCode>sample string 21</memberReferralCode>
    <memberExternalIdentifier>sample string 22</memberExternalIdentifier>
    <approvedDate>2024-11-20T06:23:37.1383921+00:00</approvedDate>
    <qualifiedDate>2024-11-20T06:23:37.1383921+00:00</qualifiedDate>
    <status>sample string 23</status>
    <companyName>sample string 24</companyName>
    <note>sample string 25</note>
    <publicNote>sample string 26</publicNote>
    <customOption1Name>sample string 27</customOption1Name>
    <customOption2Name>sample string 28</customOption2Name>
    <customText1Name>sample string 29</customText1Name>
    <customText2Name>sample string 30</customText2Name>
    <customText3Name>sample string 31</customText3Name>
    <customOption1Value>sample string 32</customOption1Value>
    <customOption2Value>sample string 33</customOption2Value>
    <customText1Value>sample string 34</customText1Value>
    <customText2Value>sample string 35</customText2Value>
    <customText3Value>sample string 36</customText3Value>
    <conversionNote>sample string 37</conversionNote>
    <conversionIPAddress>sample string 38</conversionIPAddress>
    <utmSource>sample string 39</utmSource>
    <utmMedium>sample string 40</utmMedium>
    <utmCampaign>sample string 41</utmCampaign>
    <browserReferrerUrl>sample string 42</browserReferrerUrl>
    <IPAddressSource>sample string 43</IPAddressSource>
  </referral>
</referralConfirmation>