---
title: "Get Detail"
method: GET
path: "/admin/affiliates/{affiliate_id}/detail"
tags: ["admin"]
---

# Get Detail

`GET /admin/affiliates/{affiliate_id}/detail`

## Request

- Base URL: `https://api.framesail.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.framesail.com/admin/affiliates/{affiliate_id}/detail`
- Auth: HTTP bearer

One affiliate's board as they see it, plus the traffic behind it.

The money half is deliberately the same pair of calls the affiliate's own
portal makes (balance_rollup + list_commissions), so the admin view and the
creator's view can never quietly disagree about what they are owed. The
traffic half is admin-only: the portal shows no click data at all
(migration 0173).

## Path parameters

- `affiliate_id` string, required

## Query parameters

- `start` string, date, nullable: Inclusive start date (YYYY-MM-DD)
- `end` string, date, nullable: Inclusive end date (YYYY-MM-DD)

## Response `200`

Successful Response

- AffiliateDetail: Everything the drill-down shows: the affiliate's own board (identical numbers to what they see at /app/affiliate) plus the traffic and redemption detail their portal deliberately does not expose.
  - `start` string, required
  - `end` string, required
  - `affiliate` Affiliate, required
    - `id` string, required
    - `name` string, required
    - `handle` string, nullable
    - `main_platform` string, nullable
    - `outreach_platform` string, nullable
    - `contact_left` string, nullable
    - `status` string, required
    - `notes` string, nullable
    - `email` string, nullable
    - `payout_method` string, nullable
    - `payout_handle` string, nullable
    - `country` string, nullable
    - `stripe_coupon_id` string, nullable
    - `stripe_promotion_code_id` string, nullable
    - `promo_code` string, nullable
    - `code_aliases` string[]
    - `code_percent_off` integer, nullable
    - `code_amount_off_cents` integer, nullable
    - `code_currency` string, nullable
    - `code_duration` string, nullable
    - `code_duration_in_months` integer, nullable
    - `code_max_redemptions` integer, nullable
    - `code_first_time_only` boolean, nullable
    - `code_redeem_by` string, nullable
    - `code_created_at` string, nullable
    - `code_active` boolean, nullable
    - `redemption_count` integer
    - `first_redeemed_at` string, nullable
    - `last_redeemed_at` string, nullable
    - `created_at` string, required
    - `updated_at` string, nullable
  - `tier` integer, required
  - `rate_bps` integer, required
  - `pending_cents` integer, required
  - `approved_cents` integer, required
  - `paid_cents` integer, required
  - `lifetime_revenue_cents` integer, required
  - `qualified_referrals` integer, required
  - `chargeback_count` integer, required
  - `min_payout_cents` integer, required
  - `terms_accepted` boolean, required
  - `progress` SchemasAdminAffiliatesTierProgress, required
    - `next_tier` integer, nullable
    - `next_rate_bps` integer, nullable
    - `revenue_cents` integer
    - `revenue_target_cents` integer, nullable
  - `commissions` SchemasAdminAffiliatesCommissionRow[], required
    - `id` string, required
    - `type` string, required
    - `status` string, required
    - `net_revenue_cents` integer, required
    - `rate_bps` integer, required
    - `commission_cents` integer, required
    - `reversed_cents` integer, required
    - `is_first_payment` boolean, required
    - `billing_reason` string, nullable
    - `created_at` string, required
    - `approved_at` string, nullable
    - `paid_at` string, nullable
  - `visits_in_range` integer
  - `days_with_traffic` integer
  - `redemptions_in_range` integer
  - `new_referrals_in_range` integer
  - `visit_to_redemption_pct` number, nullable
  - `visit_to_referral_pct` number, nullable
  - `clicks_by_day` ClickPoint[]
    - `day` string, required
    - `visits` integer, required
  - `landing_paths` LandingPathRow[]
    - `path` string, required
    - `visits` integer, required
  - `redemptions` RedemptionRow[]
    - `promo_code` string, nullable
    - `customer_email` string, nullable
    - `amount_discount_cents` integer, nullable
    - `created_at` string, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/framesail/apis/framesail-api.md) · [All operations](https://skmtc.dev/framesail/apis/framesail-api/llms.txt) · [OpenAPI document](https://skmtc.dev/framesail/apis/framesail-api/revisions/12602eae0820?raw)
