当前套餐不支持自动充值
API 返回此错误时,状态码为 402 Payment Required,其 type 为 https://lingo.dev/docs/api/errors/auto-top-up-unavailable。所有错误的通用结构请参阅错误和状态码。
自动充值需要支持额度余额的套餐,而组织 <organizationId> 目前未使用此类套餐。请先升级套餐,再启用自动充值。
字段#
除标准的 type、status、title 和 detail 成员外,响应体还包含以下字段。detail 文本根据这些字段生成,因此客户端也可以自行生成并显示文本。
| 字段 | 类型 |
|---|---|
organizationId | string |
示例#
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