Automatische Aufladungen sind im Tarif nicht enthalten

Moses SkodaEntwickler1 Min. Lesezeit

Bei diesem Problem antwortet die API mit 402 Payment Required. Der Wert von type ist https://lingo.dev/docs/api/errors/auto-top-up-unavailable. Das einheitliche Format aller Fehler findest du unter Fehler und Statuscodes.

Automatische Aufladungen setzen einen Tarif mit Guthaben voraus. Die Organisation <organizationId> hat keinen solchen Tarif. Führe zuerst ein Tarif-Upgrade durch und aktiviere anschließend die Aufladungen.

Felder#

Neben den Standardfeldern type, status, title und detail enthält der Antwortkörper die folgenden Felder. Der Text in detail wird aus diesen Feldern zusammengesetzt, sodass ein Client stattdessen einen eigenen Text anzeigen kann.

FeldTyp
organizationIdstring

Beispiel#

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"
}

Zurückgegeben von#

  • POST /v2/organizations/{orgId}/billing/auto-top-up