Descripciones en inglés
payg_topup_required — top-up confirmation required
Qué pasó
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.
Por qué
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.
Qué hacer ahora mismo
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.
Qué solicitud enviar a continuación
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.
Adónde ir después
Esta página para IA
versión de la API 1.0.0