---
title: "402 — payment required"
url: https://lumean.app/en/developers/docs/errors/402
locale: en
description: "The order was not created and no money was charged. `POST /orders` and `POST /orders/{order}/retry` return this code: both are paid for the same way. Chunk retry and regeneration also return `402` when an extra charge cannot be paid: `insufficient_balance`, `insufficient_allowance`, and for retry also `insufficient_funds` (the order's reserved remainder is not enough). The `reason` field names the cause."
generated: 2026-12-02
---

# 402 — payment required

- HTTP: `402`

- `Retry-After` header: no

## What happened

The order was not created and no money was charged. `POST /orders` and `POST /orders/{order}/retry` return this code: both are paid for the same way. Chunk retry and regeneration also return `402` when an extra charge cannot be paid: `insufficient_balance`, `insufficient_allowance`, and for retry also `insufficient_funds` (the order's reserved remainder is not enough). The `reason` field names the cause.

## Why

`insufficient_balance` means the subscription quota is used up and the balance does not have enough LMC to pay beyond it. `insufficient_allowance` means the quota is used up and paying beyond the quota is disabled for this service. `payg_topup_required` comes only when explicit top-up confirmation mode is on. By default, the amount beyond the quota is charged to the balance automatically.

## What to do

Branch on `reason`, not on `message`: the message text can change without notice. For `insufficient_balance`, top up the balance. For `insufficient_allowance`, wait for the next quota or change the plan. Until then, the same request keeps returning the same 402.

## Next request

`GET /subscriptions` shows the remaining quota in `items[].tokens_remaining`.

## Related

- [payg_topup_required — top-up confirmation required](https://lumean.app/en/developers/docs/errors/payg-topup-required)
- [insufficient_balance — not enough LMC](https://lumean.app/en/developers/docs/errors/insufficient-balance)
- [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)
- [Wallet](https://lumean.app/en/wallet)
- [Plans](https://lumean.app/en/shop)

---

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