List affiliates
Returns a paginated list of affiliates for the actor in context, with optional filtering by status, search, and sorting.
Required permissions:
- affiliate:basic:read
Query parameters
Returns the elements in the list that come after the specified cursor.
Returns the elements in the list that come before the specified cursor.
Returns the first n elements from the list.
Returns the last n elements from the list.
The direction of the sort.
Which columns can be used to sort.
Search affiliates by username.
Statuses for resources
The unique identifier of the company to list affiliates for.
Response
A successful response
Example response
{
"data": [
{
"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 2 of the 74 revisions of this API.4112
- ▲
added the new required
queryrequest parameteraccount_idnew-required-request-parameter
- ●
deleted the
queryrequest parametercompany_idrequest-parameter-removed
This revision also has 9 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ▲
the
queryrequest parameterdirectionwas restricted to a list of enum valuesrequest-parameter-became-enum
- ▲
the
queryrequest parameterorderwas restricted to a list of enum valuesrequest-parameter-became-enum
- ▲
the
queryrequest parameterstatuswas restricted to a list of enum valuesrequest-parameter-became-enum
- ○
added the new enum value
activeto thequeryrequest parameterstatusrequest-parameter-enum-value-added
- ○
added the new enum value
archivedto thequeryrequest parameterstatusrequest-parameter-enum-value-added
- ○
added the new enum value
ascto thequeryrequest parameterdirectionrequest-parameter-enum-value-added
- ○
added the new enum value
cached_total_referralsto thequeryrequest parameterorderrequest-parameter-enum-value-added
- ○
added the new enum value
cached_total_rewardsto thequeryrequest parameterorderrequest-parameter-enum-value-added
- ○
added the new enum value
created_atto thequeryrequest parameterorderrequest-parameter-enum-value-added
- ○
added the new enum value
deletedto thequeryrequest parameterstatusrequest-parameter-enum-value-added
- ○
added the new enum value
descto thequeryrequest parameterdirectionrequest-parameter-enum-value-added
- ○
added the new enum value
idto thequeryrequest parameterorderrequest-parameter-enum-value-added
- ○
for the
queryrequest parameterdirection, the type was generalized from no type tostringrequest-parameter-type-generalized
- ○
for the
queryrequest parameterorder, the type was generalized from no type tostringrequest-parameter-type-generalized
- ○
for the
queryrequest parameterstatus, the type was generalized from no type tostringrequest-parameter-type-generalized
- ▲
Of the 74 revisions, 1 has no diff computed.