Zum Inhalt
Lumean

Beschreibungen auf Englisch

Die Oberfläche des Bereichs ist in Ihre Sprache übersetzt, Beschreibungen von Operationen, Schemata und Fehlern gibt es aber nur auf Russisch und Englisch — hier wird die englische Fassung angezeigt.
GET/ledger-transactions

List Transactions

The key owner's money movements: top-ups, charges for completed orders, refunds and referral rewards. Newest first, paginated.

Amounts are in the asset's minor units (see asset.precision); the sign follows the direction of the entry; amount_formatted is the same amount, ready to display. The public payload omits the full wallet object and keeps wallet_id.

This endpoint exists only while the wallet feature is enabled; otherwise 404.

Required key permission: billing.read.

Auf dieser Seite(3)

Parameter

Werte werden direkt in die Anfragezeile eingesetzt, und die URL entsteht von selbst. Darunter stehen Typ, Pflichtangabe und zulässige Werte jedes Parameters.

GEThttps://api.lumean.app/api/public/ledger-transactions
  • integerin der Queryoptional≥ 1

    Page number, starting at 1.

  • integerin der Queryoptional1..100

    Records per page, 1..100. Defaults to 15.

  • integerin der Queryoptional

    Show movements for a single wallet only. Ids come from GET /wallets.

  • LedgerTransactionTypein der Queryoptional

    Filter by movement type. The full set of accepted values ships in the LedgerTransactionType schema; the common ones are deposit (top-up), order_completion (charge for a finished order), order_refund (refund) and referral_reward.

    An unknown value returns 422.

    Zulässige Werte
  • stringin der Queryoptional≤ 32 Zeichen

    Sort field. Defaults to the operation date. An unknown value is not an error: the list simply falls back to date ordering, newest first.

  • stringin der Queryoptional≤ 4 Zeichen

    Sort direction. Defaults to desc — newest operations first.

    Zulässige Werte

Mögliche Antworten

200

Success. The payload is in data.

Beispiel für den Body
{
  "success": true,
  "message": "string",
  "data": {
    "items": [
      {
        "id": "string",
        "type": "string",
        "status": "string",
        "description": "string",
        "amount": "string",
        "amount_formatted": 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"
        },
        "direction": "string",
        "created_at": "string",
        "entries": [
          {
            "id": null,
            "wallet_id": null,
            "amount": null,
            "amount_formatted": null,
            "asset": null,
            "entry_type": null,
            "metadata": null,
            "created_at": null,
            "wallet": null
          }
        ],
        "actor_user_id": "string",
        "metadata": "string"
      }
    ],
    "current_page": 1,
    "last_page": 1,
    "per_page": 1,
    "total": 1
  }
}
Felder der Antwort
successerforderlich

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
messageerforderlich

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
dataerforderlich

The response payload.

LedgerTransactionListLedgerTransactionList
itemserforderlich

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

array<LedgerTransaction>LedgerTransaction
Array-Element
iderforderlich

ID of the money movement.

integer
typeerforderlich

Movement type — a LedgerTransactionType value: deposit (top-up), order_completion (charge for an order), order_refund (refund), policy_block_fee (fee for an attempt rejected by the content policy), and others.

Wertereferral_rewardinitial_depositdepositunlock_balancelock_balanceadmin_adjustmenttransfertransfer_feesubscription_refundadmin_subscription_grantdeposit_refundadmin_chargeadmin_creditmigration_creditorder_completionorder_refundsubscription_direct_paymenttoken_consumption_chargedeposit_bonusreferral_reward_usdreferral_reward_reversalsubscription_renewalsubscription_token_consumedsubscription_token_refundsubscription_token_forfeitedsubscription_token_creditlegacy_balance_migrationpolicy_block_feeai_gateway_usagegift_code_purchasegift_code_issuegift_code_cancelgift_code_redemptiongift_code_self_redemptiongift_code_discountgift_code_refundreseller_top_upreseller_top_up_refundreseller_debt_repaymentreseller_revoke_transfer
LedgerTransactionTypeLedgerTransactionType
statuserforderlich

Movement state: posted — booked, pending — awaiting booking, void — cancelled, with no effect on the balance.

Wertependingpostedvoid
string
descriptionerforderlich

A description of the movement in words, for display. null when there is none.

darf null sein
string
amountoptional

Movement amount as an integer in the asset’s minor units (asset.precision), unsigned — the direction is in direction. Absent when the amount cannot be determined.

integer
amount_formattedoptional

The same amount in whole asset units, ready to display. Present when the asset of the amount is known: always for wallet movements, and for a movement that bypasses a wallet when its asset is recorded.

number
assetoptional

The asset of the amount; its precision is the divisor for amount. Present under the same conditions as amount_formatted.

AssetAsset
iderforderlich

Internal identifier of the asset.

integer
codeerforderlich

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

string
kinderforderlich

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

Wertemoneyunit
AssetKindAssetKind
precisionerforderlich

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
nameerforderlich

Display name of the asset, in the account language.

string
deleted_aterforderlich

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

darf null seindate-time
string
created_aterforderlich

When the asset was created, ISO 8601.

darf null seindate-time
string
updated_aterforderlich

When the asset last changed, ISO 8601.

darf null seindate-time
string
directionoptional

credit — money in, debit — money out. Locking and unlocking for an order (type: lock_balance, unlock_balance) keep the money in the wallet, so the direction is that of the available balance (balance in GET /wallets): a lock is debit, an unlock is credit.

Wertedebitcredit
string
created_aterforderlich

When the movement was created, ISO 8601.

string
entrieserforderlich

Postings to your wallets. A movement that bypasses a wallet (such as a direct subscription payment) has an empty list; the amount is then on the transaction itself.

array<LedgerEntry>LedgerEntry
Array-Element
iderforderlich

Posting ID.

integer
wallet_iderforderlich

The posting’s wallet — an id from GET /wallets.

integer
amounterforderlich

Posting amount as an integer in the wallet asset’s minor units (the divisor is asset.precision), signed: negative means out; the direction is also in entry_type.

integer
amount_formattedoptional

The same signed amount in whole asset units, ready to display.

number
assetoptional

The asset of the posting’s wallet; its precision is the divisor for amount.

AssetAsset
iderforderlich

Internal identifier of the asset.

integer
codeerforderlich

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

string
kinderforderlich

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

Wertemoneyunit
AssetKindAssetKind
precisionerforderlich

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
nameerforderlich

Display name of the asset, in the account language.

string
deleted_aterforderlich

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

darf null seindate-time
string
created_aterforderlich

When the asset was created, ISO 8601.

darf null seindate-time
string
updated_aterforderlich

When the asset last changed, ISO 8601.

darf null seindate-time
string
entry_typeerforderlich

credit — into the wallet, debit — out of it.

Wertecreditdebit
string
created_aterforderlich

When the posting was created, ISO 8601.

string
current_pageerforderlich

Current page number, starting from one.

integer
last_pageerforderlich

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

integer
per_pageerforderlich

Page size the server applied.

integer
totalerforderlich

Total number of records matching the filter.

integer
401

The key is missing, unknown, disabled or expired.

Diese Antwort analysieren
Beispiel für den Body
{
  "success": false,
  "message": "API key is missing. Provide it in the X-API-KEY header.",
  "data": null
}
Felder der Antwort
successerforderlich

Always false in error responses.

boolean
messageerforderlich

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

string
dataerforderlich

Always null when the request is rejected before processing.

darf null sein
null
403

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

Diese Antwort analysieren
Beispiel für den Body
{
  "success": false,
  "message": "This API key does not have permission to perform this action."
}
Felder der Antwort
successerforderlich

Always false in error responses.

boolean
messageerforderlich

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

string
422

Validation error. Offending fields are listed in errors.

Diese Antwort analysieren
Beispiel für den Body
{
  "success": true,
  "message": "string",
  "errors": {}
}
Felder der Antwort
successerforderlich

Always false in error responses.

boolean
messageerforderlich

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

string
errorserforderlich

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

object
*optional
beliebige Schlüssel
array<string>

Diese Seite für KI

.md öffnenllm.md

API-Version 1.0.0