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.
Response body
{
"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
nextActionsays.
Retryable
No: the SDKs mark HTTP 400 not retryable.
Limits
- Match on
typeorcode, not ondetail.