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

List Wallets

The key owner's wallets: asset, available balance and funds locked against running orders. There may be several — one per asset.

Amounts are in the asset's minor units and come with its precision: the real value is amount / 10^precision. A display-ready *_formatted field sits next to each.

This endpoint exists only while the wallet feature is enabled; in the subscription-only model it is absent (404) and the remaining allowance is read from GET /subscriptions.

Required key permission: billing.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/wallets
  • integeren la consultaopcional≥ 1

    Page number, starting at 1.

  • integeren la consultaopcional1..100

    Wallets per page. Defaults to 20; there are usually only a few, so this is rarely needed.

Respuestas posibles

200

Success. The payload is in data.

Ejemplo de cuerpo
{
  "success": true,
  "message": "string",
  "data": {
    "items": [
      {
        "id": 1,
        "user_id": 1,
        "asset_id": 1,
        "purpose": "string",
        "balance": 1,
        "locked_balance": 1,
        "balance_formatted": 1,
        "locked_balance_formatted": 1,
        "balance_converted": {
          "currency": "string",
          "amount": 1,
          "symbol": "string",
          "precision": 1
        },
        "asset": {
          "id": 1,
          "code": "string",
          "kind": null,
          "precision": 1,
          "name": null,
          "is_active": true,
          "is_default": true,
          "default_balance": 1,
          "deleted_at": "2026-07-17T12:34:56+00:00",
          "created_at": "2026-07-17T12:34:56+00:00",
          "updated_at": "2026-07-17T12:34:56+00:00"
        },
        "user": {
          "id": 1,
          "email": "string",
          "lang_code": "string",
          "timezone": "string",
          "display_currency": "string",
          "has_telegram": true,
          "created_at": "2026-07-17T12:34:56+00:00",
          "updated_at": "2026-07-17T12:34:56+00:00",
          "referral_code": "string",
          "referral": {
            "kind": null,
            "code": null,
            "program_id": null,
            "commission_rate": null
          },
          "preferred_domain": "string",
          "email_verified_at": "2026-07-17T12:34:56+00:00",
          "is_admin": true,
          "is_beta_tester": true,
          "allowed_models": [
            null
          ],
          "referrer_id": 1,
          "deleted_at": "2026-07-17T12:34:56+00:00",
          "blocked_at": "2026-07-17T12:34:56+00:00",
          "is_blocked": true,
          "tickets_banned_at": "2026-07-17T12:34:56+00:00",
          "is_tickets_banned": true,
          "tickets_ban_reason": "string",
          "voice_clone_banned_at": "2026-07-17T12:34:56+00:00",
          "is_voice_clone_banned": true,
          "voice_clone_ban_reason": "string",
          "ideas_banned_at": "2026-07-17T12:34:56+00:00",
          "ideas_ban_reason": "string",
          "last_seen_at": "2026-07-17T12:34:56+00:00",
          "last_login_at": "2026-07-17T12:34:56+00:00",
          "block_reason": "string",
          "blocked_by": {
            "id": null,
            "email": null
          },
          "tickets_banned_by": {
            "id": null,
            "email": null
          },
          "voice_clone_banned_by": {
            "id": null,
            "email": null
          },
          "ideas_banned_by": {
            "id": null,
            "email": null
          },
          "hidden_fields": [
            null
          ],
          "is_super_admin": true,
          "admin_permissions": [
            null
          ],
          "admin_roles": [
            null
          ],
          "referrer": null,
          "referral_link": "string",
          "active_referral_program": null,
          "wallets": [
            null
          ],
          "telegram": null,
          "subscriptions": [
            null
          ],
          "order_settings": null,
          "entitlements": [
            null
          ]
        },
        "deleted_at": "2026-07-17T12:34:56+00:00",
        "created_at": "2026-07-17T12:34:56+00:00",
        "updated_at": "2026-07-17T12:34:56+00:00",
        "system_key": "string"
      }
    ],
    "current_page": 1,
    "last_page": 1,
    "per_page": 1,
    "total": 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.

WalletListWalletList
itemsobligatorio

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

array<Wallet>Wallet
elemento del array
idobligatorio

Wallet ID. Use it to filter the history: GET /ledger-transactions?wallet_id=.

integer
user_idobligatorio

ID of the wallet owner — always the key owner.

admite null
integer
asset_idobligatorio

ID of the asset the wallet is kept in; the asset itself is in asset.

admite null
integer
purposeobligatorio

Wallet purpose: main is the main balance, referral holds referral earnings.

string
balanceobligatorio

Balance in the asset’s minor units: amount = balance / 10^asset.precision. An integer, not a fraction.

integer
locked_balanceobligatorio

Locked part of the balance in the asset’s minor units — reserved for orders in progress and payout requests, so it cannot be spent.

integer
balance_formattedopcional

Balance as a decimal number by asset.precision (balance / 10^precision), ready to display.

admite null
number
locked_balance_formattedopcional

Locked part of the balance as a decimal number by asset.precision.

admite null
number
balance_convertedobligatorio

Informational conversion of the balance into the account’s display currency. null for non-LUMC wallets and when no rate is available; use balance for calculations.

admite null
object
currencyobligatorio

Display currency code (ISO 4217).

string
amountobligatorio

Amount in the display currency, rounded to its precision.

number
symbolobligatorio

Currency symbol for display; null if the currency has none.

string
precisionobligatorio

Number of decimal places of the display currency.

integer
assetopcional

The wallet asset: code, kind and the precision that turns balance into an amount.

AssetAsset
idobligatorio

Internal identifier of the asset.

integer
codeobligatorio

Asset code: LUMC is the internal currency, TOKEN the generation tokens.

string
kindobligatorio

Kind of asset: money or consumable units. It decides whether an amount counts as a payment or as quota consumption.

Valoresmoneyunit
AssetKindAssetKind
precisionobligatorio

Number of decimal places. The load-bearing field: every integer amount in this asset is divided by 10^precision to obtain the real value. Do not assume the divisor is 100.

integer
nameobligatorio

Display name of the asset, in the account language.

string
deleted_atobligatorio

When the asset was retired, ISO 8601. null while it is in use.

admite nulldate-time
string
created_atobligatorio

When the asset was created, ISO 8601.

admite nulldate-time
string
updated_atobligatorio

When the asset last changed, ISO 8601.

admite nulldate-time
string
deleted_atobligatorio

When the wallet was deleted; null for wallets in this list.

admite nulldate-time
string
created_atobligatorio

When the wallet was created.

admite nulldate-time
string
updated_atobligatorio

When the wallet last changed, balance included.

admite nulldate-time
string
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
401

The key is missing, unknown, disabled or expired.

Analizar esta respuesta
Ejemplo de cuerpo
{
  "success": false,
  "message": "API key is missing. Provide it in the X-API-KEY header.",
  "data": null
}
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
dataobligatorio

Always null when the request is rejected before processing.

admite null
null
403

The key lacks the required permission, or the object belongs to another user.

Analizar esta respuesta
Ejemplo de cuerpo
{
  "success": false,
  "message": "This API key does not have permission to perform this action."
}
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
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