Affiliates
Create affiliate
Creates or finds an affiliate for a company and user.
Required permissions:
- affiliate:create
post/affiliates
Request body
Example request
{
"account_id": "biz_xxxxxxxxxxxxxx"
}Response
A successful response
Example response
{
"active_members_count": 42,
"company": {
"id": "biz_xxxxxxxxxxxxxx"
},
"created_at": "2023-12-01T05:00:00.401Z",
"id": "aff_xxxxxxxxxxxxxx",
"total_overrides_count": 42,
"total_referrals_count": 42,
"updated_at": "2023-12-01T05:00:00.401Z",
"user": {
"id": "user_xxxxxxxxxxxxx",
"name": "Jane Smith",
"username": "janesmith"
}
}Changes
Changed in 1 of the 74 revisions of this API.11
- ▲
added the new required request property
new-required-request-property
- ●
removed the request property
request-property-removed
This revision also has 9 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
Of the 74 revisions, 1 has no diff computed.