Skip to main content
GET
List sub-affiliates
The partners enrolled beneath you, and the second-tier override you have earned through each of them. Required scope: affiliates:read.
Most workspaces get {"data": []} here. Sub-affiliates are part of a partner arrangement, not a self-serve feature — see Who appears here.

Scoping

Like GET /affiliates/stats, this endpoint always reports on the workspace that issued the API key. There is no company id parameter anywhere in the request, and supplying company_id returns 400. There are no query parameters and no request body.

Who appears here

A row exists only for a partner Yappr has explicitly enrolled beneath you. Two consequences worth being clear about:
  • A customer who happens to share their own referral link does not become your sub-affiliate, does not appear in this list, and their customers’ revenue is never disclosed to you.
  • A partner enrolled yesterday who has referred nobody yet does appear — as a row of zeros. The list is built from the referral graph, not from revenue, so “enrolled, nothing yet” is a visible state rather than an absent one. Do not treat a zero row as a bug or filter it out.
Enrolment is also what starts the clock: you earn an override on a sub-affiliate’s customers from the moment the referral is made, never retroactively on revenue those customers generated beforehand.

Response fields

Every row is one enrolled sub-affiliate. All amounts are integer US cents — divide by 100 for dollars. Your override does not come out of your sub-affiliate’s commission. They earn their own full rate on their own customers; yours is paid on top by Yappr. With override_basis: "affiliate_commission", a partner who earns $5 on a $100 paid purchase keeps that $5. Your 15% share is $0.75, not $15. Gift and promotional credits earn neither commission, and taxes are excluded. `downline_revenue_cents` still reports the $100 customer revenue; use my_override_cents for your actual earnings rather than multiplying the revenue column yourself. my_override_cents and my_override_payable_cents differ for exactly the reason described under “Earned vs payable” on Affiliate stats — recent revenue is still inside the hold window and is not yet claimable. Summing my_override_cents across every row reconciles to summary.override_earned_cents on GET /affiliates/stats, and summing my_direct_cents gives the part of summary.direct_earned_cents that came from your sub-affiliates’ own spend rather than from your ordinary customers.

Example request

Example response

The second row is a partner enrolled recently who has not referred anyone yet. That is the expected shape, not an empty result.

Errors

Authorizations

Authorization
string
header
required

Your Yappr API key (e.g. ypr_live_...). Generate one in the dashboard under Settings → API Keys. No key is 401 MISSING_KEY; a key that is not one of ours, or is revoked, is 401 INVALID_KEY; an expired one is 401 EXPIRED_KEY. A valid key without the scope an operation needs is 403 INSUFFICIENT_SCOPE on every operation, and the message names the scope. Every response, a 401 included, carries X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset: the budget is 60 requests a minute per API key. Every 429, whatever its code, carries Retry-After (whole seconds, never zero): the per-key budget's RATE_LIMIT asks for what is left of the minute, a route's daily cap (RATE_LIMITED) for the time until that cap resets. All four headers are listed in Access-Control-Expose-Headers, so a browser can read them. A path the API does not serve (an unknown sub-path, an id left empty) is 404 ROUTE_NOT_FOUND, and a method a served path does not take is 405 METHOD_NOT_ALLOWED with an Allow header; both are answered before any scope check, and nothing is read or changed. A trailing slash is ignored where it cannot be an id left empty (POST /calls/ is POST /calls) and refused where it can (GET /calls/). A doubled slash inside a path is merged into one before the request reaches the API (GET //calls is GET /calls).

Response

Sub-affiliates

data
object[]