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

Reseller profile

The reseller profile: status, personal discount, limits, balance (available, held, debt). 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

    Respuestas posibles

    200

    The reseller profile.

    Ejemplo de cuerpo
    {
      "data": {
        "id": 1,
        "status": "active",
        "discount_bps": 1,
        "blocked_reason": "string",
        "approved_at": "2026-07-17T12:34:56+00:00",
        "limits": "string",
        "balance": {
          "key": 1
        },
        "currency_asset": {
          "code": "string",
          "precision": 1
        }
      }
    }
    Campos de la respuesta
    dataobligatorio

    The response payload.

    ResellerProfileResellerProfile
    idobligatorio

    Reseller ID.

    integer
    statusobligatorio

    Reseller status: active — tops up the balance and issues codes; blocked — the account is blocked, issuing and top-ups are closed; revoked — the status was withdrawn, issuing is closed.

    Valoresactiveblockedrevoked
    ResellerStatusResellerStatus
    discount_bpsobligatorio

    The reseller’s personal discount on issued codes, in basis points: 100 = 1%. It sets the price of a code: cost = nominal × (1 − discount_bps / 10000).

    integer
    blocked_reasonobligatorio

    Why the account is blocked. null while it is not blocked.

    admite null
    string
    approved_atobligatorio

    When the reseller application was approved.

    admite nulldate-time
    string
    limitsopcional

    Limits — personal when an administrator set them, otherwise the shared defaults: max_topup_rub is the ceiling of a single top-up in roubles, max_codes_per_issue is how many codes one POST /reseller/codes request may issue.

    string
    balanceopcional

    The account balance. Every amount comes as a pair: in minor LMC units (available, held, debt, …; real = value / 10^currency_asset.precision) and <name>_formatted, the same amount in whole LMC. available is what sits on the account, held is frozen, debt is owed to the platform (the next top-up repays it), spendable is what can actually be spent on issuing (available minus the debt).

    object
    *opcional
    claves arbitrarias
    integer | number
    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
    404

    not_reseller — the key owner has no reseller profile; gift_codes_disabled — the feature is switched off.

    Analizar esta respuesta
    Ejemplo de cuerpo
    {
      "success": false,
      "message": "Resource not found."
    }
    Campos de la respuesta
    successobligatorio

    Always false in error responses.

    boolean
    messageobligatorio

    Error text in the key's language (set through the X-Locale header).

    string
    reasonopcional

    Machine-readable reason — present on business refusals (for example, invalid_order_status); other errors omit it. Branch on it, not on the message text.

    string
    error_codeopcional

    The same machine-readable code as in reason — a second name for the field. Arrives together with reason; the values always match.

    string

    Esta página para IA

    Abrir .mdllm.md

    versión de la API 1.0.0