v8
OpenAPI 3.1.02026-08-033623795.0 MBAffiliates
Create affiliate
Creates or finds an affiliate for a company and user.
Required permissions:
- affiliate:create
post/affiliates
Request body
Example request
{
"company_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"
}
}