Skip to main content
GET
在提交结账前,预览哪些资源会阻碍降级,位于 Management API 主机(api.scanova.io)上,使用您的原始 Management API 密钥进行身份验证。
string
必填
目标套餐的 slug(来自列出可用套餐slug 字段)。
violations 为空数组表示目前降级是干净的——无需事先更改任何内容。此端点完全为只读,不会更改任何内容;它复用与实际结账完全相同的规则引擎,因此不会与真正执行降级时发生的情况有所出入。

响应字段

array
针对目标套餐在账户当前使用量下无法满足的每一项配额,各有一条记录。
string
当前套餐的到期日期;若套餐无到期日期,则为 null
integer | null
current_plan_expiry 的剩余天数;若套餐无到期日期,则为 null
若缺少 target_plan,则返回 400

相关内容

授权

Authorization
string
header
必填

Send your Management API key as the raw value of the Authorization header — no "Bearer " or "Token " prefix, and no other characters. Example: Authorization: 401f7ac837da42b97f613d789819ff93537bee6a. A header containing more than one space-separated part is rejected outright. Requests also require the request's Host header to be the management API host (e.g. api.scanova.io) — the same key sent to the regular API host will not authenticate.

查询参数

target_plan
string
必填

The target plan's slug.

响应

Violations that would block the downgrade (empty array if none), plus the current plan's remaining time.