Billing period invalid

Moses SkodaEngineer1 min read

The API answers 400 Bad Request with this problem. Its type is https://lingo.dev/docs/api/errors/billing-period-invalid. See Errors and status codes for the shape every error shares.

"<period>" is not a billing period. Send a date in the month to report, such as 2026-11-01.

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
periodstring

Example#

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

Returned by#

  • 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