---
title: "Get affiliate statistics"
method: GET
path: "/v1/affiliate/stats"
tags: ["Affiliate"]
---

# Get affiliate statistics

`GET /v1/affiliate/stats`

Retrieve aggregated swap statistics for an affiliate by partnerCode. Returns total swaps, volume, and fees earned. Supports optional date range filtering.

## Query parameters

- `partnerCode` string, required
- `startDate` string, date-time
- `endDate` string, date-time

## Response `200`

Affiliate statistics

- AffiliateStatsResponse
  - `totalSwaps` number, required
  - `totalVolumeUsd` string, required
  - `totalFeesEarnedUsd` string, required

## Other responses

- `400` — Invalid request parameters
- `429` — Rate limit exceeded. Includes Retry-After header with seconds until reset.
- `500` — Internal server error
- `503` — Swap service unavailable
- `504` — Swap service timed out

---

[API](https://skmtc.net/shapeshift/apis/shapeshift-public-api.md) · [All operations](https://skmtc.net/shapeshift/apis/shapeshift-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/shapeshift/shapeshift-public-api/revisions/6ffb6a8fd74a/schema)
