---
title: "Get Affiliate Earnings"
method: GET
path: "/api/referral/affiliate/earnings"
tags: ["referral", "referral"]
---

# Get Affiliate Earnings

`GET /api/referral/affiliate/earnings`

## Request

- Base URL: `https://api.dialogbrain.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.dialogbrain.com/api/referral/affiliate/earnings`
- Auth: none declared

Get affiliate earnings (affiliate users only).

## Query parameters

- `limit` integer
- `offset` integer

## Response `200`

Successful Response

- AffiliateEarningsResponse
  - `is_affiliate` boolean, required
  - `total_earned_cents` number, nullable
  - `pending_cents` number, nullable
  - `paid_cents` number, nullable
  - `earnings` AffiliateEarning[]
    - `id` integer, required
    - `invoice_id` string, required
    - `referral_name` string, nullable
    - `action_type` string
    - `amount_paid_cents` integer, required
    - `commission_percent` number, required
    - `commission_cents` number, required
    - `status` string, required
    - `created_at` string, nullable, required
    - `paid_at` string, nullable, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway.md) · [All operations](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway/llms.txt) · [OpenAPI document](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway/revisions/d84e7dc9977d?raw)
