このプランでは自動チャージを利用できません

Moses Skodaエンジニア読了目安 1分

API はこのエラーとともに 402 Payment Required を返します。type は https://lingo.dev/docs/api/errors/auto-top-up-unavailable です。すべてのエラーに共通する構造については、エラーとステータスコードをご覧ください。

自動チャージにはクレジット残高のあるプランが必要ですが、組織 <organizationId> は該当するプランを利用していません。まずプランをアップグレードしてから、自動チャージを有効にしてください。

フィールド#

レスポンス本文には、標準の type、status、title、detail メンバーに加えて、以下のフィールドが含まれます。detail のテキストはこれらのフィールドから生成されるため、クライアント側で独自のテキストに置き換えて表示できます。

フィールド型
organizationIdstring

例#

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

このエラーを返すエンドポイント#

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