Create an Affiliate Link
Creates an additional referral link for an existing affiliate. An affiliate can own any number of links, which is useful for running separate campaigns under one affiliate.
Identify the affiliate with either affiliateId or affiliateEmail — a link cannot exist without an affiliate. The link slug may contain only letters, numbers and hyphens, and must be unique within the program.
Fires the affiliate.updated webhook for the link’s owner.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
The affiliate link to create
The slug for the new link. Letters, numbers and hyphens only, and unique within the program.
"summer-campaign"
The affiliate who will own this link. Required unless affiliateEmail is supplied.
Email of the affiliate who will own this link. Required unless affiliateId is supplied.
Response
The created affiliate link, with counters at zero and its full URLs already generated.
An affiliate link as returned by the affiliate link endpoints. The counters and fullURLs are computed per request and are not stored on the link itself.
The affiliate link ID
The affiliate link string
Timestamp when the affiliate link was created
Timestamp when the affiliate link was last updated
The affiliate who owns this link. null if the link has no owner.
The program this link belongs to. null if the link has no program.
Number of clicks on this affiliate link
Number of referrals generated by this link
Number of sales generated by this link
Sum of totalEarned across every sale attributed to this link
One entry per base URL configured on your program, with the affiliate's tracking parameter and any program URL parameters already applied. Share these directly.