List affiliates
Changed onLists the affiliates of an account.
Required permissions:
- affiliate:basic:read
Request
- Base URL: https://api.whop.com/api/v1
- URL: https://api.whop.com/api/v1/affiliates
- Auth: HTTP bearer
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
- breaking
added the new required
queryrequest parameteraccount_id - warning
deleted the
queryrequest parametercompany_id
- breaking
- breaking
the
queryrequest parameterdirectionwas restricted to a list of enum values - breaking
the
queryrequest parameterorderwas restricted to a list of enum values - breaking
the
queryrequest parameterstatuswas restricted to a list of enum values - info
added the new enum value
activeto thequeryrequest parameterstatus - info
added the new enum value
archivedto thequeryrequest parameterstatus - info
added the new enum value
ascto thequeryrequest parameterdirection - info
added the new enum value
cached_total_referralsto thequeryrequest parameterorder - info
added the new enum value
cached_total_rewardsto thequeryrequest parameterorder - info
added the new enum value
created_atto thequeryrequest parameterorder - info
added the new enum value
deletedto thequeryrequest parameterstatus - info
added the new enum value
descto thequeryrequest parameterdirection - info
added the new enum value
idto thequeryrequest parameterorder - info
for the
queryrequest parameterdirection, the type was generalized from no type tostring - info
for the
queryrequest parameterorder, the type was generalized from no type tostring - info
for the
queryrequest parameterstatus, the type was generalized from no type tostring
- breaking