---
title: "payg_topup_required — top-up confirmation required"
url: https://lumean.app/en/developers/docs/errors/payg-topup-required
locale: en
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`

- `Retry-After` header: no

## What happened

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.

## Why

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.

## What to do

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

## Next request

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

## Related

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

---

- This page in the browser: https://lumean.app/en/developers/docs/errors/payg-topup-required
- Full machine-readable reference: https://api.lumean.app/docs/llm.md
