İç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.

payg_topup_required — PAYG top-up required

402payg_topup_requiredRetry-After yok

Ne oldu

The order was not created and no money was charged — instead, the server sent the price of the top-up. Body: reason: "payg_topup_required", shortfall_tokens, shortfall_lmc, shortfall_lmc_minor, quote_token, expires_at.

Neden

The order costs more than the tokens remaining in the subscription quota, but the service allows pay-as-you-go (Service.payg_access ≠ disabled). This is a payment decision point, not a key refusal and not a limit: the server is asking for consent to charge the missing part to the LMC balance.

Şimdi ne yapmalı

Show the user shortfall_lmc and get explicit consent — an automatic retry here means silently charging money. The quote is short-lived (expires_at, on the order of a minute); if it has expired, a repeat request WITHOUT confirmation returns a fresh 402 with a new quote_token.

Sırada hangi istek gönderilmeli

The same POST /orders with the same body plus "confirm_payg_topup": true and the "quote_token" from this response → 201, and the top-up is charged to LMC. If the price has gone up in the meantime, you get a 409 quote_mismatch. The actual split is visible in the order afterwards: tokens_from_quota and tokens_from_payg.

Bu sayfayı yapay zekâya verin

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

spesifikasyon 0.0.1