---
title: "Get fee revenue generated by a referrer's network"
method: GET
path: "/api/v1/referrals/fees"
tags: ["Referrals"]
---

# Get fee revenue generated by a referrer's network

`GET /api/v1/referrals/fees`

## Request

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

Net fees the referred network paid, the builder kickbacks owed on those same fills,
and the difference — the basis an affiliate commission would be computed on. Returns
no commission amount: no rate is signed off and no accrual ledger exists.

## Query parameters

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

## Response `200`

Fee revenue generated by the referral network

- ReferralFees: Fee revenue a referrer's network generated over the window. Carries no commission figure: the rate is not signed off and no accrual ledger exists. What it does carry is the basis such a figure would be computed from.
  - `builder_payouts_usd` number, double, required: Builder kickbacks owed on those same fills, in USD. Deducted before commission.
  - `commission_basis_usd` number, double, required: `net_fees_usd - builder_payouts_usd`
  - `days` integer, required: The window actually used, after clamping
  - `net_fees_usd` number, double, required: Fees the network paid minus rebates it received, in USD. Can go negative on a net-rebated network.

## 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/fees/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)
