Saltar al contenido
Lumean

Descripciones en inglés

La interfaz de la sección está traducida a su idioma, pero las descripciones de operaciones, esquemas y errores solo existen en ruso y en inglés: aquí se muestra la versión en inglés.
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.

Parámetros

Los valores se escriben directamente en la línea de la solicitud y la URL se arma sola. Abajo están el tipo, la obligatoriedad y los valores permitidos de cada parámetro.

GEThttps://api.lumean.app/api/public/reseller/codes
  • integeren la consultaopcional≥ 1

    Page number, starting at 1.

  • integeren la consultaopcional1..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.

  • GiftCodeStatusen la consultaopcional

    Return only codes in this status. An unknown value returns 422.

    Valores permitidos
  • GiftCodeSourceen la consultaopcional

    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.

    Valores permitidos

Respuestas posibles

200

Success. The payload is in data.

Ejemplo de cuerpo
{
  "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
  }
}
Campos de la respuesta
dataobligatorio

The response payload.

GiftCodeListGiftCodeList
itemsobligatorio

Records on the current page, in the list’s sort order.

array<GiftCode>GiftCode
elemento del array
uuidobligatorio

Code UUID. Use it in the GET /reseller/codes/{uuid} and POST /reseller/codes/{uuid}/cancel paths.

string
code_maskedobligatorio

The code with a mask, LUM-****-****-XXXX: safe to show in a UI and to write to logs.

string
codeopcional

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.

string
nominalobligatorio

The code’s nominal value in minor LMC units: real = nominal / 10^currency_asset.precision. This is how much LMC the redeemer receives.

integer
nominal_formattedobligatorio

The same nominal value in whole LMC — a number ready to display.

number
costopcional

What the code cost the reseller after the discount, in minor LMC units. Present only for reseller codes (source: reseller).

integer
cost_formattedopcional

The same cost in whole LMC. Present only for reseller codes.

number
discount_bpsopcional

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.

integer
sourceobligatorio

Where the code came from: bought by a user with money (purchase) or issued by a reseller from their own balance (reseller).

Valorespurchaseresellersystem
GiftCodeSourceGiftCodeSource
fundingobligatorio

What paid for the code: roubles (rub), crypto (crypto) or both (mixed — a reseller code issued from a balance topped up both ways).

Valoresrubcryptomixedadmin
GiftCodeFundingGiftCodeFunding
statusobligatorio

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.

Valoresactiverefundingredeemedrefundedcancelledannulled
GiftCodeStatusGiftCodeStatus
activatable_atobligatorio

The moment from which the code can be redeemed; until then it is frozen. null means no restriction.

admite nulldate-time
string
redeemed_atobligatorio

When the code was redeemed. null until it is. The API never reveals who redeemed it.

admite nulldate-time
string
cancelled_atobligatorio

When the reseller cancelled the code. null if it was not cancelled.

admite nulldate-time
string
created_atobligatorio

When the code was issued.

admite nulldate-time
string
currency_assetobligatorio

The currency of the amounts in the response — LMC. Use precision to convert amounts in minor units into whole LMC.

object
codeobligatorio

Code of the asset the amounts are expressed in.

ValoresLUMC
string
precisionobligatorio

How many decimals LMC has: real = value / 10^precision.

integer
current_pageobligatorio

Current page number, starting from one.

integer
last_pageobligatorio

Number of the last page. The walk is over once current_page equals last_page.

integer
per_pageobligatorio

Page size the server applied.

integer
totalobligatorio

Total number of records matching the filter.

integer
422

Validation error. Offending fields are listed in errors.

Analizar esta respuesta
Ejemplo de cuerpo
{
  "success": true,
  "message": "string",
  "errors": {}
}
Campos de la respuesta
successobligatorio

Always false in error responses.

boolean
messageobligatorio

A summary of the validation errors in words, in the response language (X-Locale).

string
errorsobligatorio

A per-field breakdown: the key names a request field, the value lists the complaints about it.

object
*opcional
claves arbitrarias
array<string>

Esta página para IA

Abrir .mdllm.md

versión de la API 1.0.0