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

# List Affiliates

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

Returns the shop's affiliates (customers with an affiliate code) with their stats.

## Request body

- object
  - `page` integer — Page number.
  - `perPage` integer — Items per page, 1-100. Must be at least 1. Must not be greater than 100.
  - `search` string — Search by email or affiliate code. Must not be greater than 100 characters.
  - `tier_id` integer — Filter by affiliate tier ID.
  - `status` 'active' | 'suspended' | 'all' — active (default), suspended, or all.
  - `segment` 'active' | 'inactive' | 'new'
  - `orderColumn` 'id' | 'email' | 'affiliate_code' | 'affiliate_referrer_earnings' | 'balance' | 'affiliate_balance' | 'affiliate_code_set_at' | 'referrals_count'
  - `orderDirection` 'asc' | 'desc'

## Response `200`

- object
  - `current_page` integer
  - `data` 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
  - `first_page_url` string
  - `from` integer
  - `last_page` integer
  - `last_page_url` string
  - `links` object[]
    - `url` string
    - `label` string
    - `active` boolean
  - `next_page_url` string
  - `path` string
  - `per_page` integer
  - `prev_page_url` string
  - `to` integer
  - `total` 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)
