---
title: "List Codes"
method: GET
path: "/referral-codes"
tags: ["REFERRAL"]
---

# List Codes

`GET /referral-codes`

List every referral code with its usage stats (ordered newest first).

## Response `200`

Successful Response

- ReferralCodeWithStats[]
  - `id` integer, required
  - `code` string, required
  - `is_active` boolean, required
  - `max_uses` integer, nullable, required
  - `used_count` integer, required
  - `remaining_uses` integer, nullable, required
  - `expires_at` string, date-time, nullable, required
  - `created_by` string, nullable, required
  - `created_at` string, date-time, required

---

[API](https://skmtc.net/myaltimate/apis/fastapi.md) · [All operations](https://skmtc.net/myaltimate/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/myaltimate/fastapi/versions/50769cbf05d5/schema)
