Out of credits
What the CreditLimitReached 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/credit-limit-reached. See Errors and status codes for the shape every error shares.
Organization <organizationId> has run out of credits. Top up the balance or turn on automatic top-ups on the billing page: https://lingo.dev/orgs/<organizationId>/settings/billing
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": "Organization <organizationId> has run out of credits. Top up the balance or turn on automatic top-ups on the billing page: https://lingo.dev/orgs/<organizationId>/settings/billing",
"organizationId": "<organizationId>",
"type": "https://lingo.dev/docs/api/errors/credit-limit-reached",
"status": 402,
"title": "Out of credits"
}Returned by #
POST /v2/engines/{engineId}/provisioning/jobsPOST /v2/localization/jobs/{id}/startPOST /v2/organizations/{orgId}/provisioning/jobsPOST /v2/provisioning/jobs/{id}/retry