Affiliates

Returns a paginated list of overrides for an affiliate.

Required permissions:

  • affiliate:basic:read
get/affiliates/{id}/overrides

Request

  • Base URL
    https://api.whop.com/api/v1
  • Auth
    HTTP 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, PageInfo 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 query request parameter override_type was restricted to a list of enum values

    • info

      added the new enum value rev_share to the query request parameter override_type

    • info

      added the new enum value standard to the query request parameter override_type

    1 more change in this revision