Ungültiger Abrechnungszeitraum

Moses SkodaEntwickler1 Min. Lesezeit

Bei diesem Problem antwortet die API mit 400 Bad Request. Der Wert von type ist https://lingo.dev/docs/api/errors/billing-period-invalid. Das einheitliche Format aller Fehler ist unter Fehler und Statuscodes beschrieben.

"<period>" ist kein gültiger Abrechnungszeitraum. Sende ein Datum aus dem Monat, auf den sich der Bericht beziehen soll, zum Beispiel 2026-11-01.

Felder#

Neben den Standardfeldern type, status, title und detail enthält der Antwortkörper die folgenden Felder. Aus diesen wird der Text für detail generiert. Ein Client kann daher stattdessen einen eigenen Text anzeigen.

FeldTyp
periodstring

Beispiel#

json
{
  "detail": "\"<period>\" is not a billing period. Send a date in the month to report, such as 2026-11-01.",
  "period": "<period>",
  "type": "https://lingo.dev/docs/api/errors/billing-period-invalid",
  "status": 400,
  "title": "Billing period invalid"
}

Zurückgegeben von#

  • GET /v2/organizations/{orgId}/billing/cost-by-model
  • GET /v2/organizations/{orgId}/billing/provider-costs
  • GET /v2/organizations/{orgId}/billing/token-consumption
  • GET /v2/organizations/{orgId}/billing/usage-history