Zum Inhalt
Lumean API

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.

payg_topup_required — PAYG top-up required

402payg_topup_requiredkein Retry-After

Was passiert ist

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.

Warum

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.

Was jetzt zu tun ist

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.

Welche Anfrage als Nächstes

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.

Diese Seite einer KI geben

.md öffnenllm.md

Spezifikation 0.0.1