---
title: "GET /reseller/codes — List my gift codes"
url: https://lumean.app/en/developers/docs/api/get-reseller-codes
locale: en
description: "List my gift codes"
generated: 2026-12-02
operationId: reseller.codes
method: GET
path: /reseller/codes
scopes: [reseller.read]
spec_version: 1.0.0
---

# GET /reseller/codes

**List my gift codes**

Codes issued by the key owner, newest first, WITH the FULL `code` value. Filters `status` and `source`; page-based pagination (`page`, `per_page` up to 100). **Required key permission:** `reseller.read`.

- Required scope: `reseller.read`

## Request

```bash
curl -X GET 'https://api.lumean.app/api/public/reseller/codes' \
  -H 'Accept: application/json' \
  -H 'X-API-KEY: YOUR_API_KEY'
```

## Parameters

| Field | In | Type | Req. | Description |
| --- | --- | --- | --- | --- |
| `page` | query | `integer` — ≥ 1 | — | Page number, starting at `1`. |
| `per_page` | query | `integer` — 1..100 | — | How many records to return per page. The page meta sits in `data` next to the `items` list: `current_page`, `last_page`, `per_page`, `total`. |
| `status` | query | `GiftCodeStatus` — `active` · `refunding` · `redeemed` · `refunded` · `cancelled` · `annulled` | — | Return only codes in this status. An unknown value returns `422`. |
| `source` | query | `GiftCodeSource` — `purchase` · `reseller` · `system` | — | Return only codes of this source: `reseller` — issued by you from your balance, `purchase` — bought by you as an ordinary buyer. An unknown value returns `422`. |
| `X-Locale` | header | `string` | — | Language of the localised texts in the response (`message`, labels, failure reasons), an ISO-639-1 code. Optional; without it — the key owner’s account language, then `Accept-Language`, then the default language. An unknown or unsupported code is skipped as if it were absent. |
| `X-Timezone` | header | `string` | — | IANA time zone (`Europe/Moscow`) in which the response shows moments in time — ISO-8601 with an offset. Optional; without it dates come in UTC. An invalid zone is ignored. The server returns the applied zone in the response header of the same name. |

## Request body

No body.

## Responses

### 200 — Success. The payload is in `data`.

**Response fields**

| Field | Type | Req. | Description |
| --- | --- | --- | --- |
| `data` | `GiftCodeList` | required | The response payload. |
| `data.items` | `array<GiftCode>` | required | Records on the current page, in the list’s sort order. |
| `data.items[].uuid` | `string` | required | Code UUID. Use it in the `GET /reseller/codes/{uuid}` and `POST /reseller/codes/{uuid}/cancel` paths. |
| `data.items[].code_masked` | `string` | required | The code with a mask, `LUM-****-****-XXXX`: safe to show in a UI and to write to logs. |
| `data.items[].code` | `string` | — | The FULL code value — what the recipient types to redeem it. The reseller public API returns it in the list, on show and on issue. Treat it as a secret: whoever knows the code can redeem it. |
| `data.items[].nominal` | `integer` | required | The code’s nominal value in minor LMC units: `real = nominal / 10^currency_asset.precision`. This is how much LMC the redeemer receives. |
| `data.items[].nominal_formatted` | `number` | required | The same nominal value in whole LMC — a number ready to display. |
| `data.items[].cost` | `integer` | — | What the code cost the reseller after the discount, in minor LMC units. Present only for reseller codes (`source: reseller`). |
| `data.items[].cost_formatted` | `number` | — | The same cost in whole LMC. Present only for reseller codes. |
| `data.items[].discount_bps` | `integer` | — | The reseller’s discount at the moment of issue, in basis points (`100` = 1%). A later change of the personal discount does not affect this code. Present only for reseller codes. |
| `data.items[].source` | `GiftCodeSource` — `purchase` · `reseller` · `system` | required | Where the code came from: bought by a user with money (`purchase`) or issued by a reseller from their own balance (`reseller`). |
| `data.items[].funding` | `GiftCodeFunding` — `rub` · `crypto` · `mixed` · `admin` | required | What paid for the code: roubles (`rub`), crypto (`crypto`) or both (`mixed` — a reseller code issued from a balance topped up both ways). |
| `data.items[].status` | `GiftCodeStatus` — `active` · `refunding` · `redeemed` · `refunded` · `cancelled` · `annulled` | required | Gift code status: `active` — issued and awaiting redemption (possibly still frozen until `activatable_at`); `refunding` — a refund is in progress, redemption and cancellation are unavailable; `redeemed` — redeemed, the nominal is on the redeemer's balance; `refunded` — the money went back to the buyer's card; `cancelled` — the reseller cancelled the code and the cost returned to their balance; `annulled` — annulled with no refund. |
| `data.items[].activatable_at` | `string` — date-time — nullable | required | The moment from which the code can be redeemed; until then it is frozen. `null` means no restriction. |
| `data.items[].redeemed_at` | `string` — date-time — nullable | required | When the code was redeemed. `null` until it is. The API never reveals who redeemed it. |
| `data.items[].cancelled_at` | `string` — date-time — nullable | required | When the reseller cancelled the code. `null` if it was not cancelled. |
| `data.items[].created_at` | `string` — date-time — nullable | required | When the code was issued. |
| `data.items[].currency_asset` | `object` | required | The currency of the amounts in the response — LMC. Use `precision` to convert amounts in minor units into whole LMC. |
| `data.items[].currency_asset.code` | `string` — `LUMC` | required | Code of the asset the amounts are expressed in. |
| `data.items[].currency_asset.precision` | `integer` | required | How many decimals LMC has: `real = value / 10^precision`. |
| `data.current_page` | `integer` | required | Current page number, starting from one. |
| `data.last_page` | `integer` | required | Number of the last page. The walk is over once `current_page` equals `last_page`. |
| `data.per_page` | `integer` | required | Page size the server applied. |
| `data.total` | `integer` | required | Total number of records matching the filter. |

**Example**

```json
{
  "data": {
    "items": [
      {
        "uuid": "string",
        "code_masked": "string",
        "code": "string",
        "nominal": 1,
        "nominal_formatted": 1,
        "cost": 1,
        "cost_formatted": 1,
        "discount_bps": 1,
        "source": "purchase",
        "funding": "rub",
        "status": "active",
        "activatable_at": "2026-07-17T12:34:56+00:00",
        "redeemed_at": "2026-07-17T12:34:56+00:00",
        "cancelled_at": "2026-07-17T12:34:56+00:00",
        "created_at": "2026-07-17T12:34:56+00:00",
        "currency_asset": {
          "code": "string",
          "precision": 1
        }
      }
    ],
    "current_page": 1,
    "last_page": 1,
    "per_page": 1,
    "total": 1
  }
}
```

### 422 — Validation error. Offending fields are listed in `errors`.

**Response fields**

| Field | Type | Req. | Description |
| --- | --- | --- | --- |
| `success` | `boolean` | required | Always `false` in error responses. |
| `message` | `string` | required | A summary of the validation errors in words, in the response language (`X-Locale`). |
| `errors` | `object` | required | A per-field breakdown: the key names a request field, the value lists the complaints about it. |
| `errors.*` | `array<string>` — arbitrary keys | — |  |

**Example**

```json
{
  "success": true,
  "message": "string",
  "errors": {}
}
```

---

- This page in the browser: https://lumean.app/en/developers/docs/api/get-reseller-codes
- Full machine-readable reference: https://api.lumean.app/docs/llm.md
