Affiliates
List overrides
Changed onReturns a paginated list of overrides for an affiliate.
Required permissions:
- affiliate:basic:read
get/affiliates/{id}/overrides
Request
- Base URLhttps://api.whop.com/api/v1
- AuthHTTP bearer
Path parameters
id, string required
Example:aff_xxxxxxxxxxxxxx
The affiliate ID.
Query parameters
after, string
Returns the elements in the list that come after the specified cursor.
before, string
Returns the elements in the list that come before the specified cursor.
first, integer
Returns the first n elements from the list.
Example:42
last, integer
Returns the last n elements from the list.
Example:42
override_type, 'standard' | 'rev_share'
Filter by override type (standard or rev_share).
Response
A successful response
object required
The connection type for AffiliateOverride.
data, object[] required
A list of nodes.
page_info, Page Info required
Information to aid in pagination.
Example response
{
"data": [
{
"commission_value": 6.9,
"id": "affov_xxxxxxxxxxxx",
"plan_id": "plan_xxxxxxxxxxxxx",
"total_referral_earnings_usd": 6.9
}
]
}Changes
- breaking
the
queryrequest parameteroverride_typewas restricted to a list of enum values - info
added the new enum value
rev_shareto thequeryrequest parameteroverride_type - info
added the new enum value
standardto thequeryrequest parameteroverride_type
1 more change in this revision
- breaking