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

Gift code settings

Preset nominals (LMC decimal strings), the bounds for a custom nominal and the reseller self-cancel window (reseller_cancel_window_minutes). The cap on codes per issue is in the profile. 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/settings

    Respuestas posibles

    200

    Success. The payload is in data.

    Ejemplo de cuerpo
    {
      "nominals": [
        "string"
      ],
      "min_nominal": "string",
      "max_nominal": "string",
      "max_codes_per_purchase": 1,
      "max_purchase_rub": 1,
      "hold_hours": 1,
      "reseller_cancel_window_minutes": 1,
      "rub_enabled": true,
      "currency_asset": {
        "code": "string",
        "precision": 1
      }
    }
    Campos de la respuesta
    nominalsobligatorio

    Preset code nominals in LMC — decimal strings without trailing zeros ("100", "2.5"). POST /reseller/codes accepts any value between min_nominal and max_nominal, not only those from this list.

    array<string>
    min_nominalobligatorio

    The smallest allowed nominal of a single code, LMC (decimal string).

    string
    max_nominalobligatorio

    The largest allowed nominal of a single code, LMC (decimal string).

    string
    max_codes_per_purchaseobligatorio

    How many codes an ordinary buyer may take in one purchase. It does not apply to reseller issuing: that ceiling is limits.max_codes_per_issue in GET /reseller.

    integer
    max_purchase_rubobligatorio

    The ceiling of a single roubles purchase of codes by an ordinary buyer, in roubles.

    integer
    hold_hoursobligatorio

    For how many hours a code bought with roubles stays frozen for redemption (the code’s activatable_at field).

    integer
    reseller_cancel_window_minutesobligatorio

    The reseller’s self-cancel window, in minutes since issue: while it is open, POST /reseller/codes/{uuid}/cancel returns the cost to the balance.

    integer
    rub_enabledobligatorio

    Whether code purchases with roubles are enabled. It does not affect issuing from the reseller balance.

    boolean
    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.

    string
    precisionobligatorio

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

    integer

    Esta página para IA

    Abrir .mdllm.md

    versión de la API 1.0.0