---
title: "Handler to get referrer statistics.
Non-affiliate referrers must meet the minimum trade volume threshold
to see their referral codes. Affiliate referrers always see all codes."
method: GET
path: "/api/v1/referrals/stats/{account}"
tags: ["Referrals"]
---

# Handler to get referrer statistics.
Non-affiliate referrers must meet the minimum trade volume threshold
to see their referral codes. Affiliate referrers always see all codes.

`GET /api/v1/referrals/stats/{account}`

## Path parameters

- `account` string, required

## Response `200`

Successfully retrieved referrer stats

- ReferrerStatsDto — Referrer statistics — aggregate stats for a referrer account
  - `codes` string[], required — List of referral codes visible to this referrer. Non-affiliate referrers must meet the volume threshold to see their codes.
  - `is_affiliate` boolean, required — Whether this referrer has any affiliate-designated codes. Affiliates always see all their codes regardless of trade volume.
  - `referrer_account` string, required — The referrer's wallet address
  - `total_codes_created` integer, required — Total number of referral codes created by this referrer. Always accurate regardless of code visibility (non-affiliates below the volume threshold will see an empty `codes` array but this still reflects the true count).
  - `total_referrals` integer, required — Total number of users referred
  - `volume_threshold_met` boolean, required — Whether the account meets the minimum trade volume threshold to see non-affiliate referral codes

## Other responses

- `404` — Referrer not found
- `500` — Internal server error

---

[API](https://skmtc.net/decibel/apis/decibel-trading-api.md) · [All operations](https://skmtc.net/decibel/apis/decibel-trading-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/decibel/decibel-trading-api/revisions/37a02083ff59/schema)
