v1
latestOpenAPI 3.0.12026-08-062532117.6 KBCreate an affiliate
Creates an affiliate in your program and gives them their first referral link.
firstName, lastName and email are required; the email must be unique within the program. If you do not send affiliateLink, a slug is generated from the email address. If you do send one and it is already taken, the request fails rather than silently picking another slug.
When commissionRate is omitted the affiliate inherits the program's default rate. When affiliateStatus is omitted, the program's auto-approve setting decides whether the affiliate starts active or pending.
Creating an affiliate also triggers the admin notification email, the affiliate welcome email (active affiliates only, unless sendWelcomeEmail is false), any automatic promo codes, and the affiliate.created webhook.
Request body
Response
The created affiliate, including its generated affiliateLinks entry.