İçeriğe geç
Lumean API

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

Reseller profile

The reseller profile: status, personal discount, limits, balance (available, held, debt). Key permission: reseller.read.

Bu sayfada(2)

Olası yanıtlar

200

The reseller profile.

Gövde örneği
{
  "data": {
    "id": "string",
    "status": "string",
    "discount_bps": "string",
    "blocked_reason": "string",
    "approved_at": "string",
    "limits": "string",
    "balance": {
      "key": 1
    },
    "currency_asset": {
      "code": "string",
      "precision": 1
    }
  }
}
Yanıt alanları
datazorunlu

The response payload.

ResellerProfileResellerProfile
idzorunlu

Reseller ID.

string
statuszorunlu
string
discount_bpszorunlu

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

string
blocked_reasonzorunlu

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

string
approved_atzorunlu

When the reseller application was approved.

string
limitsisteğe bağlı

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

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
*isteğe bağlı
rastgele anahtarlar
integer | number
currency_assetzorunlu

The currency of the amounts in the response — LMC. Use precision to convert amounts in minor units into whole LMC.

object
codezorunlu

Code of the asset the amounts are expressed in.

DeğerlerLUMC
string
precisionzorunlu

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.

Bu yanıtı çözümle
Gövde örneği
{
  "success": false,
  "message": "Resource not found."
}
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
reasonisteğe bağlı

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

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

string

Bu sayfayı yapay zekâya verin

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

spesifikasyon 0.0.1