New Affiliate

Create a new affiliate. Returns the affiliate ID and their referral link.

Tip: When creating affilates using this endpoint, we recommend that you save the id from the response in order to map your user to their affiliate account in Refersion.

Body Params

If you want to send custom fields, please contact us for detailed instructions.

string
Defaults to 12345

Specific Offer ID to opt affiliate into, otherwise your default offer is used.

string
required
Defaults to Bill

The affiliate's first name.

string
required
Defaults to Smith

The affiliate's last name

string
required
Defaults to [email protected]

Must be a valid email.

string
required
Defaults to testing

Has at least 9 characters. The password is NOT more than 72 characters. Has at least 1 upper case character. Has at least 1 lower case character. Has at least 1 numerical character. Has at least 1 special character. Does NOT have the same character repeated more than 3 times in a row. Password does NOT match the email of the user.

string
string
string
string
string
string
string
length between 2 and 2

Country Code (two letter abbreviation) must match one of: US, AE, AR, AS, AT, AU, BA, BD, BE, BG, BR, CA, CH, CL, CN, CO, CR, CZ, DE, DK, DZ, EE, ES, FI, FM, FO, FR, GB, GH, GR, GU, HK, HN, HR, HU, ID, IE, IL, IM, IN, IS, IT, JM, JP, KR, KW, LT, LU, LV, MA, MH, MK, MP, MT, MX, MY, NG, NL, NO, NZ, OM, PE, PH, PK, PL, PR, PT, PW, QA, RO, RS, RU, SA, SE, SG, SI, SK, SV, TH, TN, TR, TW, TZ, UA, UY, VG, VI, VN, WS, ZA

string
string
string
enum
Defaults to FALSE

Should Refersion send our welcome email? Options: TRUE / FALSE; Default = FALSE

Allowed:
string
enum
required
Defaults to PENDING

What status should the affiliate be created as: PENDING or ACTIVE?

Allowed:
string
Defaults to BILLSMITH10

A unique coupon code to assign to this affiliate as a conversion trigger.

string
Defaults to abc123

An optional alphanumeric identifier for the affiliate for your team's internal use.

Headers
string
string
string
enum
Defaults to application/json
Allowed:
Responses

Language
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json