curl "https://api.scanova.io/plans/275/pricing/" \
-H "Authorization: 401f7ac837da42b97f613d789819ff93537bee6a"
{
"id": 275,
"slug": "pro-scanova-io",
"name": "Pro - scanova.io",
"plan_type": "Normal",
"description": "",
"version": 1,
"family": { "id": 12, "slug": "pro", "name": "Pro", "is_enterprise": false },
"pricing": [
{ "id": 501, "pricing": { "id": 2, "name": "Monthly", "period": "month" }, "price": "29.00" },
{ "id": 502, "pricing": { "id": 3, "name": "Yearly", "period": "year" }, "price": "290.00" }
]
}
分析与套餐
获取套餐的定价选项
GET /plans//pricing/
GET
/
plans
/
{id}
/
pricing
/
curl "https://api.scanova.io/plans/275/pricing/" \
-H "Authorization: 401f7ac837da42b97f613d789819ff93537bee6a"
{
"id": 275,
"slug": "pro-scanova-io",
"name": "Pro - scanova.io",
"plan_type": "Normal",
"description": "",
"version": 1,
"family": { "id": 12, "slug": "pro", "name": "Pro", "is_enterprise": false },
"pricing": [
{ "id": 501, "pricing": { "id": 2, "name": "Monthly", "period": "month" }, "price": "29.00" },
{ "id": 502, "pricing": { "id": 3, "name": "Yearly", "period": "year" }, "price": "290.00" }
]
}
在 Management API 主机(
字段与列出可用套餐相同的套餐字段,但不包含
api.scanova.io)上返回某个套餐的定价行,使用您的原始 Management API 密钥进行身份验证。
GET https://api.scanova.io/plans/{id}/pricing/
Authorization: 401f7ac837da42b97f613d789819ff93537bee6a
curl "https://api.scanova.io/plans/275/pricing/" \
-H "Authorization: 401f7ac837da42b97f613d789819ff93537bee6a"
{
"id": 275,
"slug": "pro-scanova-io",
"name": "Pro - scanova.io",
"plan_type": "Normal",
"description": "",
"version": 1,
"family": { "id": 12, "slug": "pro", "name": "Pro", "is_enterprise": false },
"pricing": [
{ "id": 501, "pricing": { "id": 2, "name": "Monthly", "period": "month" }, "price": "29.00" },
{ "id": 502, "pricing": { "id": 3, "name": "Yearly", "period": "year" }, "price": "290.00" }
]
}
quotas——此端点关注的是价格,而非权益。pricing 仅列出该套餐处于活跃/可见状态的定价行;price 是以套餐所配置货币表示的十进制字符串(此处不按货币分别返回——请单独查看账户自身的计费国家/货币)。如果套餐 id 不存在,或对调用方不可见/不可用,则返回 404。
相关内容
- 列出可用套餐——找到要查询价格的套餐
id。 - 当前套餐——账户实际当前的价格/计费状态。
- Management API 概览——适用于此端点的身份验证方案和配额规则。
授权
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.
路径参数
The plan's numeric id, from GET /plans/available/.
响应
Plan detail with its active pricing rows.
此页面对您有帮助吗?