Automatische Aufladungen sind im Tarif nicht enthalten
Die API gibt bei diesem Fehler 402 Payment Required zurück. Der Wert von type ist https://lingo.dev/docs/api/errors/auto-top-up-unavailable. Die gemeinsame Struktur aller Fehler findest du unter Fehler und Statuscodes.
Automatische Aufladungen setzen einen Tarif mit Guthaben voraus. Die Organisation <organizationId> hat keinen solchen Tarif. Wechsle zuerst zu einem entsprechenden Tarif und aktiviere dann die Aufladungen.
Felder#
Neben den Standardfeldern type, status, title und detail enthält der Antwortinhalt die folgenden Felder. Der Text in detail wird daraus zusammengesetzt, sodass ein Client stattdessen einen eigenen Text anzeigen kann.
| Feld | Typ |
|---|---|
organizationId | string |
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