İçeriğe geç
Lumean

Açıklamalar İngilizce

Bölümün arayüzü dilinize çevrildi, ancak işlem, şema ve hata açıklamaları yalnızca Rusça ve İngilizce mevcut — burada İngilizce sürüm gösteriliyor.
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.

Bu sayfada(3)

Parametreler

Değerler doğrudan istek satırına yazılır ve URL kendiliğinden oluşur. Aşağıda her parametrenin türü, zorunlu olup olmadığı ve izin verilen değerleri var.

GEThttps://api.lumean.app/api/public/ledger-transactions
  • integersorgudaisteğe bağlı≥ 1

    Page number, starting at 1.

  • integersorgudaisteğe bağlı1..100

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

  • integersorgudaisteğe bağlı

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

  • LedgerTransactionTypesorgudaisteğe bağlı

    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.

    İzin verilen değerler
  • stringsorgudaisteğe bağlı≤ 32 karakter

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

  • stringsorgudaisteğe bağlı≤ 4 karakter

    Sort direction. Defaults to desc — newest operations first.

    İzin verilen değerler

Olası yanıtlar

200

Success. The payload is in data.

Gövde örneği
{
  "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
  }
}
Yanıt alanları
successzorunlu

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
messagezorunlu

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
datazorunlu

The response payload.

LedgerTransactionListLedgerTransactionList
itemszorunlu

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

array<LedgerTransaction>LedgerTransaction
dizi öğesi
idzorunlu

ID of the money movement.

integer
typezorunlu

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.

Değerlerreferral_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
statuszorunlu

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

Değerlerpendingpostedvoid
string
descriptionzorunlu

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

null olabilir
string
amountisteğe bağlı

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_formattedisteğe bağlı

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
assetisteğe bağlı

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

AssetAsset
idzorunlu

Internal identifier of the asset.

integer
codezorunlu

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

string
kindzorunlu

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

Değerlermoneyunit
AssetKindAssetKind
precisionzorunlu

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
namezorunlu

Display name of the asset, in the account language.

string
deleted_atzorunlu

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

null olabilirdate-time
string
created_atzorunlu

When the asset was created, ISO 8601.

null olabilirdate-time
string
updated_atzorunlu

When the asset last changed, ISO 8601.

null olabilirdate-time
string
directionisteğe bağlı

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.

Değerlerdebitcredit
string
created_atzorunlu

When the movement was created, ISO 8601.

string
entrieszorunlu

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
dizi öğesi
idzorunlu

Posting ID.

integer
wallet_idzorunlu

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

integer
amountzorunlu

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_formattedisteğe bağlı

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

number
assetisteğe bağlı

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

AssetAsset
idzorunlu

Internal identifier of the asset.

integer
codezorunlu

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

string
kindzorunlu

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

Değerlermoneyunit
AssetKindAssetKind
precisionzorunlu

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
namezorunlu

Display name of the asset, in the account language.

string
deleted_atzorunlu

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

null olabilirdate-time
string
created_atzorunlu

When the asset was created, ISO 8601.

null olabilirdate-time
string
updated_atzorunlu

When the asset last changed, ISO 8601.

null olabilirdate-time
string
entry_typezorunlu

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

Değerlercreditdebit
string
created_atzorunlu

When the posting was created, ISO 8601.

string
current_pagezorunlu

Current page number, starting from one.

integer
last_pagezorunlu

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

integer
per_pagezorunlu

Page size the server applied.

integer
totalzorunlu

Total number of records matching the filter.

integer
401

The key is missing, unknown, disabled or expired.

Bu yanıtı çözümle
Gövde örneği
{
  "success": false,
  "message": "API key is missing. Provide it in the X-API-KEY header.",
  "data": null
}
Yanıt alanları
successzorunlu

Always false in error responses.

boolean
messagezorunlu

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

string
datazorunlu

Always null when the request is rejected before processing.

null olabilir
null
403

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

Bu yanıtı çözümle
Gövde örneği
{
  "success": false,
  "message": "This API key does not have permission to perform this action."
}
Yanıt alanları
successzorunlu

Always false in error responses.

boolean
messagezorunlu

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

string
422

Validation error. Offending fields are listed in errors.

Bu yanıtı çözümle
Gövde örneği
{
  "success": true,
  "message": "string",
  "errors": {}
}
Yanıt alanları
successzorunlu

Always false in error responses.

boolean
messagezorunlu

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

string
errorszorunlu

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

object
*isteğe bağlı
rastgele anahtarlar
array<string>

Yapay zekâ için bu sayfa

.md sürümünü açllm.md

API sürümü 1.0.0