Out of credits

Moses SkodaEngineer1 min read

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 enable automatic top-ups to continue.

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.

FieldType
organizationIdstring

Example#

json
{
  "detail": "Organization <organizationId> has run out of credits. Top up the balance or enable automatic top-ups to continue.",
  "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/jobs
  • POST /v2/localization/jobs/{id}/start
  • POST /v2/organizations/{orgId}/provisioning/jobs
  • POST /v2/provisioning/jobs/{id}/retry