---
title: "Top-up amount is out of range (top-up-amount-invalid)"
description: "PubNio top-up-amount-invalid problem, HTTP 400: A top-up checkout's amountMinor is below minMinor or above maxMinor."
---

> Documentation Index
> Fetch the complete documentation index at: https://pubnio.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Top-up amount is out of range (top-up-amount-invalid)

HTTP 400 Top-up amount is out of range. A top-up checkout's `amountMinor` is below `minMinor` or above `maxMinor`.

## When it happens

One operation declares it: [`POST /api/v1/workspaces/{workspaceId}/billing/checkout`](https://pubnio.com/api/v1/docs#tag/billing/POST/api/v1/workspaces/{workspaceId}/billing/checkout).

## Response body

```json
{
  "type": "https://pubnio.com/docs/problems/top-up-amount-invalid/",
  "status": 400,
  "title": "Top-up amount is out of range",
  "code": "top_up_amount_invalid",
  "minMinor": 1000,
  "maxMinor": 10000000,
  "nextAction": "Choose an amountMinor between 1000 and 10000000.",
  "requestId": "0f8e4c2a-6b1d-4e3f-8a9b-7c6d5e4f3a21"
}
```

| Field        | Type    | Always present |
| ------------ | ------- | -------------- |
| `minMinor`   | integer | Yes            |
| `maxMinor`   | integer | Yes            |
| `nextAction` | string  | Yes            |

## Recovery for agents

- Do what `nextAction` says.

## Retryable

No: the SDKs mark HTTP 400 not `retryable`.

## Limits

- Match on `type` or `code`, not on `detail`.

## Related

- [Billing problems](https://pubnio.com/docs/problems/#billing)
- [API reference](https://pubnio.com/docs/api/)

Source: https://pubnio.com/docs/problems/top-up-amount-invalid/index.mdx
