---
title: "payg_topup_required — top-up confirmation required"
url: https://lumean.app/es/developers/docs/errors/payg-topup-required
locale: es
description: "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."
generated: 2026-12-02
---

# payg_topup_required — top-up confirmation required

- HTTP: `402`

- `reason`: `payg_topup_required`

- Encabezado `Retry-After`: no

## 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

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

## Siguiente petició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`.

## Relacionado

- [quote_mismatch — top-up price changed](https://lumean.app/es/developers/docs/errors/quote-mismatch)
- [insufficient_allowance — paying beyond the quota is disabled](https://lumean.app/es/developers/docs/errors/insufficient-allowance)
- [Guide: tokens, quotas, LMC and PAYG](https://lumean.app/es/developers/docs/guide/billing)
- [POST /orders](https://lumean.app/es/developers/docs/api/post-orders)
- [POST /orders/{order}/retry](https://lumean.app/es/developers/docs/api/post-orders-order-retry)
- [GET /subscriptions](https://lumean.app/es/developers/docs/api/get-subscriptions)
- [Wallet](https://lumean.app/es/wallet)
- [Plans](https://lumean.app/es/shop)

---

- Esta página en el navegador: https://lumean.app/es/developers/docs/errors/payg-topup-required
- Referencia completa legible por máquina: https://api.lumean.app/docs/llm.md
