Automatic top-ups not in plan
What the AutoTopUpUnavailable error (402 Payment Required) means, the fields it carries, and the endpoints that return it.
The API answers 402 Payment Required with this problem. Its type is https://lingo.dev/docs/api/errors/auto-top-up-unavailable. See Errors and status codes for the shape every error shares.
Automatic top-ups need a plan that carries a credit balance, and organization <organizationId> is not on one. Upgrade the plan first, then enable top-ups.
Fields #
Besides the standard type, status, title and detail members, the body carries these fields. The detail text is built from them, so a client can show its own text instead.
| Field | Type |
|---|---|
organizationId | string |
Example #
json
{
"detail": "Automatic top-ups need a plan that carries a credit balance, and organization <organizationId> is not on one. Upgrade the plan first, then enable top-ups.",
"organizationId": "<organizationId>",
"type": "https://lingo.dev/docs/api/errors/auto-top-up-unavailable",
"status": 402,
"title": "Automatic top-ups not in plan"
}Returned by #
POST /v2/organizations/{orgId}/billing/auto-top-up