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

payg_topup_required — top-up confirmation required

402payg_topup_requiredRetry-After yok

Ne oldu

The order was not created and no money was charged. Instead, the server sent the top-up price. Body: reason: "payg_topup_required", shortfall_tokens, shortfall_lmc, shortfall_lmc_minor, quote_token, expires_at. This response comes only in explicit top-up confirmation mode. By default, the amount beyond the quota is charged automatically.

Neden

The order costs more than the tokens left in the subscription quota, and the service allows paying beyond the quota (Service.payg_access ≠ disabled). This is 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 charging money without the user knowing. The quote is short-lived: 60 seconds by default (expires_at). If it has expired, a request without confirmation returns a new 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 the LMC balance. If the top-up got more expensive in the meantime, you get a 409 quote_mismatch with a fresh quote_token. The order later shows the actual split in tokens_from_quota and tokens_from_payg.

Yapay zekâ için bu sayfa

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

API sürümü 1.0.0