> ## Documentation Index
> Fetch the complete documentation index at: https://docs.scanova.io/llms.txt
> Use this file to discover all available pages before exploring further.

# 获取套餐的定价选项

> GET /plans/{id}/pricing/

在 **Management API** 主机（`api.scanova.io`）上返回某个套餐的定价行，使用您的原始 Management API 密钥进行身份验证。

```
GET https://api.scanova.io/plans/{id}/pricing/
Authorization: 401f7ac837da42b97f613d789819ff93537bee6a
```

<ParamField path="id" type="integer" required>
  套餐的数字 `id`，来自[列出可用套餐](/zh/api-reference/management-api/plans/available)。
</ParamField>

<RequestExample>
  ```bash cURL theme={null}
  curl "https://api.scanova.io/plans/275/pricing/" \
    -H "Authorization: 401f7ac837da42b97f613d789819ff93537bee6a"
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "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" }
    ]
  }
  ```
</ResponseExample>

字段与[列出可用套餐](/zh/api-reference/management-api/plans/available)相同的套餐字段，但不包含 `quotas`——此端点关注的是价格，而非权益。`pricing` 仅列出该套餐处于活跃/可见状态的定价行；`price` 是以套餐所配置货币表示的十进制字符串（此处不按货币分别返回——请单独查看账户自身的计费国家/货币）。如果套餐 `id` 不存在，或对调用方不可见/不可用，则返回 `404`。

## 相关内容

* [列出可用套餐](/zh/api-reference/management-api/plans/available)——找到要查询价格的套餐 `id`。
* [当前套餐](/zh/api-reference/management-api/plans/current)——账户实际当前的价格/计费状态。
* [Management API 概览](/zh/api-reference/management-api/overview)——适用于此端点的身份验证方案和配额规则。


## OpenAPI

````yaml api-reference/openapi/management-api.json GET /plans/{id}/pricing/
openapi: 3.1.0
info:
  title: Scanova Management API (v2)
  description: >-
    The complete Scanova Management API — every endpoint available at
    api.scanova.io (QR codes, folders, tags, leads, forms, analytics, plans,
    shared users & roles), plus the token-creation and usage-stats endpoints
    used to authenticate against it. Every path and request/response shape below
    was verified live against a real API key and the actual running backend
    (Phase 7, 2026-08-16) — not guessed from reading urls.py alone.
  version: 2.0.0
servers:
  - url: https://api.scanova.io
    description: Management API — QR/folder/tag/lead/form/analytics/plans endpoints
security:
  - apiKeyAuth: []
paths:
  /plans/{id}/pricing/:
    get:
      summary: Get a plan's pricing options
      description: >-
        Returns one plan's pricing rows (monthly/yearly/lifetime, by currency) —
        the plan fields themselves are the same as GET /plans/available/, minus
        `quotas`.
      operationId: getManagedPlanPricing
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: integer
          description: The plan's numeric id, from GET /plans/available/.
      responses:
        '200':
          description: Plan detail with its active pricing rows.
          content:
            application/json:
              example:
                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'
        '404':
          description: No plan with this id, or not visible/available to the caller.
components:
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: >-
        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.

````