---
title: "Get a referrer's sub-affiliates"
method: GET
path: "/api/v1/referrals/sub-affiliates"
tags: ["Referrals"]
---

# Get a referrer's sub-affiliates

`GET /api/v1/referrals/sub-affiliates`

## Request

- Base URL: `https://api.mainnet.aptoslabs.com/decibel`
- URL: `https://api.mainnet.aptoslabs.com/decibel/api/v1/referrals/sub-affiliates`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/decibel/apis/decibel-trading-api/docs/api/v1/referrals/sub-affiliates/get.ts> (a function with typed inputs; its response is checked against the schema)

Direct referrals who went on to refer others, with their downline size and that
downline's window volume. Carries no override amounts: the accrual ledger they would
come from does not exist yet.

## Query parameters

- `referrer_account` string, required
- `days` integer
- `limit` integer
- `offset` integer

## Response `200`

Sub-affiliate totals and a page of rows

- SubAffiliatesResponse
  - `referrer_account` string, required
  - `sub_affiliates` SubAffiliate[], required
    - `joined_unix_ms` integer, required: When this sub-affiliate redeemed the referrer's code
    - `l2_clients` integer, required: Distinct clients this sub-affiliate has referred
    - `network_volume_usd` number, double, required: Both-sides notional those clients traded inside the window
    - `override_usd` number, double, required: The L2 override this sub-affiliate's downline generated, at each day's own rate and penalty. Zero when the accrual ledger has no rows — the state before it runs, not a claim that the downline earned nothing.
    - `sub_affiliate` string, required: Full owner address, matching `/affiliates/earnings`
  - `summary` SubAffiliatesSummary, required: Totals across every sub-affiliate, independent of the page.
    - `l2_clients` integer, required
    - `network_volume_usd` number, double, required
    - `override_usd` number, double, required: The L2 override this sub-affiliate's downline generated, at each day's own rate and penalty. Zero when the accrual ledger has no rows — the state before it runs, not a claim that the downline earned nothing.
    - `sub_affiliates` integer, required
  - `total_count` integer, required: Sub-affiliates in total, for pagination

## Other responses

- `400`: Invalid address
- `500`: Database error

## Changes

- **2026-11-03** `bb095628df0a`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/decibel/apis/decibel-trading-api/changes/api/v1/referrals/sub-affiliates/get.md)

---

[API](https://skmtc.dev/decibel/apis/decibel-trading-api.md) - [All operations](https://skmtc.dev/decibel/apis/decibel-trading-api/llms.txt) - [OpenAPI document](https://skmtc.dev/decibel/apis/decibel-trading-api/revisions/ee1bcb5822bd?raw)
