---
title: "Promo codes, newest first, with the number of paid orders that used each"
method: GET
path: "/api/v1/admin/promo-codes"
tags: ["Promo codes"]
---

# Promo codes, newest first, with the number of paid orders that used each

`GET /api/v1/admin/promo-codes`

## Request

- Base URL: `https://otprun.com`
- URL: `https://otprun.com/api/v1/admin/promo-codes`
- Auth: HTTP bearer

## Query parameters

- `cursor` string
- `limit` integer

## Response `200`

OK

- PromoPageBody
  - `items` PromoCodeBody[], nullable, required
    - `active` boolean, required
    - `amount_off` integer, required: Discount in US cents, 0 for a percent discount; tenge payments get the same share off
    - `code` string, required
    - `created_at` string, date-time, required
    - `expires_at` string, date-time, nullable, required
    - `id` integer, required
    - `kind` 'percent' | 'amount', required
    - `max_redemptions` integer, nullable, required: null means no limit
    - `percent` integer, required: Discount in percent, 0 for an amount discount
    - `plans` string[], nullable, required: Plans the code works for, empty for every paid plan
    - `redemptions` integer, required: Paid orders that used the code
  - `next_cursor` string, nullable, required

## Other responses

- `403`: Forbidden
- `422`: Unprocessable Entity
- `500`: Internal Server Error

---

[API](https://skmtc.dev/otprun/apis/otp-run-api.md) · [All operations](https://skmtc.dev/otprun/apis/otp-run-api/llms.txt) · [OpenAPI document](https://skmtc.dev/otprun/apis/otp-run-api/revisions/43d40d5f4050?raw)
