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/statistics

Reseller statistics

Statistics for the from–to window (Y-m-d dates in the X-Timezone zone, UTC without the header; the last 30 days by default): money, codes, a breakdown by nominal, a per-day series. 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/statistics
  • stringen la consultaopcionaldate

    First day of the statistics window — a calendar date Y-m-d in the X-Timezone zone (UTC without the header). Omitted — 30 days before to.

  • stringen la consultaopcionaldate

    Last day of the window — a calendar date Y-m-d in the X-Timezone zone, not earlier than from; the whole day is included. Omitted — today.

Respuestas posibles

200

Success. The payload is in data.

Ejemplo de cuerpo
{
  "success": true,
  "message": "string",
  "data": {
    "period": {
      "from": "2026-07-17T12:34:56+00:00",
      "to": "2026-07-17T12:34:56+00:00"
    },
    "money": {
      "top_ups_count": 1,
      "topped_up_lmc_minor": 1,
      "topped_up_rub_lmc_minor": 1,
      "topped_up_crypto_lmc_minor": "string",
      "topped_up_kopecks": 1,
      "refunds_count": 1,
      "refunded_kopecks": 1,
      "issued_nominal_lmc_minor": 1,
      "issued_cost_lmc_minor": 1,
      "discount_given_lmc_minor": "string",
      "cancelled_cost_lmc_minor": 1
    },
    "codes": {
      "issued": 1,
      "redeemed": 1,
      "active": 1,
      "cancelled": 1,
      "annulled": 1,
      "activation_rate": 1,
      "avg_seconds_to_activation": 1
    },
    "by_nominal": [
      {
        "nominal_lmc_minor": 1,
        "issued": 1,
        "redeemed": 1
      }
    ],
    "daily": [
      "string"
    ],
    "balance": {
      "available_lmc_minor": 1,
      "held_lmc_minor": 1,
      "debt_lmc_minor": 1,
      "spendable_lmc_minor": [],
      "rub_refundable_lmc_minor": []
    },
    "currency_asset": {
      "code": "string",
      "precision": 1
    }
  }
}
Campos de la respuesta
successobligatorio

Success flag. Branch on the HTTP status code instead: any 2xx response carries true here, while an error comes back in a different shape that need not contain this field at all.

boolean
messageobligatorio

A human-readable note in the account language. Fine to show to a user; do not parse it — the wording changes without notice and is not an error code.

string
dataobligatorio

The response payload.

object
periodobligatorio

The window the statistics cover: the from/to bounds (the last 30 days by default) in the X-Timezone zone.

object
fromobligatorio

Start of the window — the start of the from day.

date-time
string
toobligatorio

End of the window — the end of the to day.

date-time
string
moneyobligatorio

Money over the window. LMC amounts are in minor units (real = value / 10^currency_asset.precision), roubles are in kopecks.

object
top_ups_countobligatorio

How many balance top-ups were confirmed in the window.

integer
topped_up_lmc_minorobligatorio

Total top-ups in the window, minor LMC units: roubles and crypto together.

integer
topped_up_rub_lmc_minorobligatorio

The part of the top-ups paid in roubles, in minor LMC units.

integer
topped_up_crypto_lmc_minorobligatorio

The part of the top-ups paid in crypto, in minor LMC units.

string
topped_up_kopecksobligatorio

Roubles top-ups in kopecks — exactly what was paid to the provider.

integer
refunds_countobligatorio

How many refunds of the roubles balance to a card were made in the window.

integer
refunded_kopecksobligatorio

The total of those refunds, in kopecks.

integer
issued_nominal_lmc_minorobligatorio

The sum of nominals of the codes issued in the window, in minor LMC units.

integer
issued_cost_lmc_minorobligatorio

What those codes cost the reseller (after the discount), in minor LMC units.

integer
discount_given_lmc_minorobligatorio

The discount over the window: the sum of nominals minus the cost of the issued codes, in minor LMC units.

string
cancelled_cost_lmc_minorobligatorio

The cost of codes cancelled in the window and returned to the balance, in minor LMC units.

integer
codesobligatorio

Codes ISSUED in the window and what became of them as of the request.

object
issuedobligatorio

How many codes were issued in the window.

integer
redeemedobligatorio

Of those issued in the window, how many are already redeemed.

integer
activeobligatorio

Of those issued in the window, how many still await redemption.

integer
cancelledobligatorio

Of those issued in the window, how many the reseller cancelled.

integer
annulledobligatorio

Of those issued in the window, how many the platform annulled without a refund of the cost.

integer
activation_rateobligatorio

The share of redeemed codes among those issued in the window, from 0 to 1 (4 decimals). null when nothing was issued in the window.

admite null
number
avg_seconds_to_activationobligatorio

Average time from issue to redemption, in seconds. null when nothing was redeemed.

admite null
integer
by_nominalobligatorio

Issuing broken down by nominal, in ascending nominal order.

array<object>
elemento del array
nominal_lmc_minorobligatorio

The nominal, minor LMC units.

integer
issuedobligatorio

How many codes of this nominal were issued in the window.

integer
redeemedobligatorio

Of those, how many are redeemed.

integer
dailyobligatorio

A per-day series in the X-Timezone zone, ascending by date. An element: date (Y-m-d), issued, redeemed, topped_up_lmc_minor (top-ups, minor LMC units). Days without events are left out.

array<any>
balanceobligatorio

The balance as of the request — not for the window. Amounts are in minor LMC units.

admite null
object
available_lmc_minorobligatorio

How much sits on the reseller’s account.

integer
held_lmc_minorobligatorio

How much is frozen.

integer
debt_lmc_minorobligatorio

The debt to the platform.

integer
spendable_lmc_minorobligatorio

How much can be spent on issuing: the available balance minus the debt, never below zero.

admite null
object
rub_refundable_lmc_minorobligatorio

The part of the balance backed by roubles that can be refunded to a card (net of the debt).

admite null
object
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
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