---
title: "Affiliate Stats"
method: GET
path: "/v1/shops/{shopId}/affiliates/stats"
tags: ["Affiliates"]
---

# Affiliate Stats

`GET /v1/shops/{shopId}/affiliates/stats`

Aggregate stats for the shop's affiliate program, with 30-day deltas.

## Response `200`

- object
  - `total_affiliates` integer
  - `active_affiliates` integer
  - `inactive_affiliates` integer
  - `new_affiliates` integer
  - `new_affiliates_previous` integer
  - `commissions_usd` integer
  - `commissions_usd_previous` integer
  - `commissions_usd_all_time` integer
  - `attributed_revenue_usd` integer
  - `attributed_revenue_usd_previous` integer
  - `attributed_revenue_usd_all_time` integer
  - `commissionable_revenue_usd` integer
  - `commissionable_revenue_usd_previous` integer
  - `commissionable_revenue_usd_all_time` integer
  - `attributed_orders` integer
  - `skipped_commissions` integer
  - `skipped_commissions_by_reason` unknown[]
    - unknown
  - `average_commission_rate` integer
  - `top_earner_usd` integer
  - `top_performers` object[]
    - `id` integer
    - `email` string
    - `shop_id` integer
    - `balance` string
    - `affiliate_balance` string
    - `affiliate_code` string
    - `affiliate_code_set_at` string
    - `affiliate_tier_id` string
    - `affiliate_referrer_earnings` string
    - `created_at` string
    - `referrals_count` integer
    - `affiliate_tier` string
  - `balance_mode` string
  - `pending_payout_requests` integer
  - `window_days` integer

---

[API](https://skmtc.dev/sellauth/apis/sellauth-api.md) · [All operations](https://skmtc.dev/sellauth/apis/sellauth-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/sellauth/sellauth-api/revisions/945e6d749d68/schema)
