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

> ## Agent Instructions
> Test in the sandbox first: base URL https://api-sandbox.y.uno (Test Mode in the Dashboard). Production is https://api.y.uno (Live Mode).
> Every API request needs the public-api-key and private-secret-key headers. Get them in the Dashboard at https://dashboard.y.uno/developers (Developers > Credentials); sandbox and production keys are different.
> Send an X-Idempotency-Key (a UUID) when creating payments, refunds and cancels, so retries do not create duplicates.
> Start with the Quickstart (https://docs.y.uno/docs/quickstart.md) and the agent guide (https://docs.y.uno/agents.md). To search these docs from a coding agent, connect the docs MCP server at https://docs.y.uno/mcp.

# 列出订阅

> 返回某个账户订阅的分页列表。

> [!WARNING]
>
> **列表项是摘要，而非完整订阅**
>
> 每个列表项包含渲染表格所需的字段，包括 `current_period_start`/`current_period_end`。其他所有字段（`availability`、`retries`、`metadata`、`trial_period`、`payments`、`pending_plan_change`、`billing_phases` 以及 [订阅对象](https://docs.y.uno/zh-hans/reference/subscriptions/the-subscription-object.md) 中的其余字段）仅由 [检索订阅](https://docs.y.uno/zh-hans/reference/subscriptions/retrieve-subscription.md) 返回。如果您需要其中任何字段，请针对每个列表项调用该 endpoint。

> [!NOTE]
>
> **`merchant_reference` 不是此 endpoint 的筛选条件**
>
> 发送该参数不会产生任何效果：该参数会被忽略，并返回完整的、未经筛选的页面。如需按商户参考号查找订阅，请保存您创建订阅时收到的 `id`，或者逐页浏览此 endpoint 并在客户端进行匹配。

## 范围和排序

列表的范围始终限定为 `X-Account-Code` 标头中的单个账户，不存在跨账户的变体。结果按 `created_at` 降序排列，因此在您翻页期间创建的订阅可能会使列表项跨越页面边界发生偏移。如需稳定地遍历，请使用固定为您开始遍历时刻的 `created_at_to` 进行筛选。

各筛选条件可以组合使用且均为可选；每个筛选条件都会进一步缩小结果集。如果未设置任何筛选条件，将返回所有状态的订阅，包括 `CANCELED` 和 `COMPLETED` 状态的订阅。


## OpenAPI

````yaml openapi/zh-hans/subscriptions/list-subscriptions.json GET /subscriptions
openapi: 3.1.0
info:
  title: subscription
  version: 1.0.0
servers:
  - url: https://api-sandbox.y.uno/v1
    description: Sandbox
  - url: https://api.y.uno/v1
    description: Production (US)
security:
  - sec0: []
    sec1: []
paths:
  /subscriptions:
    get:
      summary: 列出订阅
      description: >-
        返回账户订阅的分页列表，最新的在前（按 `created_at`
        降序）。过滤条件可以组合使用，并且每一个都是可选的；一个都不设置时，返回所有状态的订阅。分页从 1 开始计数。
      operationId: list-subscriptions
      parameters:
        - in: header
          name: X-Account-Code
          required: true
          schema:
            type: string
          description: >-
            在您的 [Yuno Dashboard](https://dashboard.y.uno/developers) 中找到的
            `account_id`（UUID）。必填：列表始终限定在单个账户范围内。省略它会返回 `400
            INVALID_PARAMETERS`（"x-account-code header is required."）。
        - name: customer_id
          in: query
          description: >-
            按拥有该订阅的客户过滤（`customer_payer.id`，UUID）。不是 UUID 的值会返回 `400
            BAD_REQUEST`（"Invalid customer_id."）。
          schema:
            type: string
            example: 3t04911d-5df9-429e-8488-ad41abea1a2c
        - name: status
          in: query
          description: >-
            按状态过滤。接受以逗号分隔的多个值，匹配其中任意一个，例如
            `ACTIVE,PAUSED`。值的拼写必须与[订阅状态](/zh-hans/reference/subscriptions/status-subscriptions)中的完全一致；未知的值会返回
            `400 BAD_REQUEST`（"Invalid status: FOO."）。
          schema:
            type: string
            example: ACTIVE,PAUSED
        - name: plan_id
          in: query
          description: >-
            按订阅关联的[计划](/zh-hans/reference/plans/the-plan-object)过滤（UUID）。没有订阅者的计划，或不存在的计划，会返回空列表，而不是错误。不是
            UUID 的值会返回 `400 BAD_REQUEST`（"Invalid plan_id."）。
          schema:
            type: string
            example: 00000000-0000-4000-8000-000000000001
        - name: created_at_from
          in: query
          description: >-
            仅返回在此时刻或之后创建的订阅（带偏移量的 ISO 8601，包含该时刻）。无法解析的值会返回 `400
            BAD_REQUEST`（"Invalid created_at_from."）。
          schema:
            type: string
            example: '2024-01-01T00:00:00Z'
        - name: created_at_to
          in: query
          description: >-
            仅返回在此时刻或之前创建的订阅（带偏移量的 ISO 8601，包含该时刻）。无法解析的值会返回 `400
            BAD_REQUEST`（"Invalid created_at_to."）。
          schema:
            type: string
            example: '2024-12-31T23:59:59Z'
        - name: payment_method_type
          in: query
          description: 按订阅的支付方式类型过滤，例如 `CARD`。
          schema:
            type: string
            example: CARD
        - name: page
          in: query
          description: >-
            从 1 开始计数的页码。必须 >= 1，否则返回 `400 BAD_REQUEST`（"The page must be greater
            than or equal to 1."）。
          schema:
            type: integer
            default: 1
            minimum: 1
        - name: size
          in: query
          description: >-
            每页条数。必须在 1 到 100 之间（含），否则返回 `400 BAD_REQUEST`（过低时为 "The size must be
            greater than or equal to 1."，过高时为 "The size must be at most 100."）。
          schema:
            type: integer
            default: 20
            minimum: 1
            maximum: 100
      responses:
        '200':
          description: '200'
          content:
            application/json:
              examples:
                Result:
                  value:
                    items:
                      - id: 7304911d-5df9-429e-8488-ad41abea1a4c
                        name: sub_001
                        status: ACTIVE
                        merchant_reference: 001_marzo_23
                        account_id: 2404911d-5df9-429e-8488-ad41abea1a4b
                        customer_payer:
                          id: 3t04911d-5df9-429e-8488-ad41abea1a2c
                        amount:
                          currency: USD
                          value: 12100
                        frequency:
                          type: MONTH
                          value: 1
                        billing_cycles:
                          total: 10
                          current: 2
                          next_at: '2023-02-16T20:00:00.786342Z'
                        payment_method:
                          type: CARD
                        plan_id: 00000000-0000-4000-8000-000000000001
                        created_at: '2023-12-16T20:46:54.786342Z'
                        current_period_start: '2023-01-16T20:00:00.912480Z'
                        current_period_end: '2023-02-16T20:00:00.786342Z'
                    pagination:
                      page: 1
                      size: 20
                      total: 1
                      total_pages: 1
                  summary: Result
              schema:
                type: object
                properties:
                  items:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          description: 订阅的唯一标识符。
                        name:
                          type: string
                        status:
                          type: string
                          description: >-
                            请参阅[订阅状态](/zh-hans/reference/subscriptions/status-subscriptions)。
                        merchant_reference:
                          type: string
                        account_id:
                          type: string
                        customer_payer:
                          type: object
                          properties:
                            id:
                              type: string
                              description: 客户的唯一标识符。
                        amount:
                          type: object
                          properties:
                            currency:
                              type: string
                            value:
                              type: number
                        frequency:
                          type: object
                          nullable: true
                          description: 对于使用 `billing_date` 而不是频率计费的订阅，为 `null`。
                          properties:
                            type:
                              type: string
                            value:
                              type: integer
                            monthly_billing_day:
                              type: integer
                              nullable: true
                              description: >-
                                在 MONTH 频率的订阅上，计费所锚定的每月日期。由
                                RESTART（在更新、计划变更、恢复或重新激活时）设置，或通过发送更新订阅自己的
                                frequency.monthly_billing_day
                                设置。只有在写入之后才会出现；在此之前以及在所有其他频率类型上，该字段不存在（而不是
                                null）。
                              example: 15
                        billing_cycles:
                          type: object
                          description: >-
                            语义与[订阅对象](/zh-hans/reference/subscriptions/the-subscription-object)中相同：`current`
                            是下一个要扣款的周期，而不是正在进行的周期。
                          properties:
                            total:
                              type: integer
                              nullable: true
                            current:
                              type: integer
                            next_at:
                              type: string
                            scheduling_date:
                              type: string
                              description: >-
                                扣款指令交给 Pix 通道的时间，即 `next_at` 减去四天。仅出现在由 Yuno 执行的
                                `PIX_AUTOMATIC`
                                条目上，并且仅在该组织启用了四天预约提前期时出现；否则该字段不存在（而不是
                                `null`）。只读。请参阅 [Pix
                                Automático](/zh-hans/docs/payment-features/subscriptions/pix-automatico#the-scheduling-date)。
                            paid:
                              type: integer
                              description: 到目前为止已支付的周期数。与 `current` 不同，`current` 是正在计费的周期。
                        payment_method:
                          type: object
                          properties:
                            type:
                              type: string
                              description: 支付方式类型，例如 `CARD`。
                            vaulted_token:
                              type: string
                              example: 6104911d-5df9-429e-8488-ad41abea1a4b
                            card:
                              type: object
                              properties:
                                installments:
                                  type: integer
                                  nullable: true
                                network_transaction_id:
                                  type: string
                                  nullable: true
                                usage:
                                  type: string
                                  example: FIRST
                              nullable: true
                        plan_id:
                          type: string
                          nullable: true
                          description: 订阅关联的计划；对于使用原始 `amount`/`frequency` 创建的订阅，为 `null`。
                        created_at:
                          type: string
                        current_period_start:
                          type: string
                          nullable: true
                          description: >-
                            语义与[订阅对象](/zh-hans/reference/subscriptions/the-subscription-object)中相同：订阅当前所处计费周期的开始时间。
                        current_period_end:
                          type: string
                          nullable: true
                          description: 订阅当前所处计费周期的结束时间。等于 `billing_cycles.next_at`。
                        description:
                          type: string
                          example: streaming service
                          nullable: true
                        country:
                          type: string
                          description: 订阅所在国家/地区（ISO 3166-1 alpha-2）。
                          example: US
                        soft_descriptor:
                          type: string
                          example: ACME SUBSCRIPTION
                          nullable: true
                        billing_date:
                          type: object
                          nullable: true
                          description: 仅出现在按固定日期（而不是按频率）计费的订阅上；与 `frequency` 互斥。
                          properties:
                            type:
                              type: string
                              example: DAY
                            day:
                              type: integer
                              example: 2
                        availability:
                          type: object
                          properties:
                            start_at:
                              type: string
                              example: '2024-01-16T00:00:00.786342Z'
                            finish_at:
                              type: string
                              example: '2024-05-26T20:00:00.786342Z'
                              nullable: true
                        retries:
                          type: object
                          nullable: true
                          description: >-
                            定期扣款被拒绝时所采用的重试策略。请参阅[重试](/zh-hans/docs/payment-features/subscriptions/retries)。
                          properties:
                            retry_on_decline:
                              type: boolean
                              description: 被拒绝的扣款是否会重试。
                              example: true
                            amount:
                              type: integer
                              description: 一个计费周期可以重试的次数。上限为您所在环境的重试计划长度（生产环境为 6）。
                              example: 4
                            strategy:
                              type: string
                              description: >-
                                每次重试的时间如何确定：`DEFAULT`、`SMART` 或
                                `CUSTOM_SCHEDULE`。请将其视为开放式字段，并妥善处理无法识别的值。
                              example: DEFAULT
                            schedule:
                              type: array
                              nullable: true
                              description: >-
                                每次尝试的计划，仅当 `strategy` 为 `CUSTOM_SCHEDULE`
                                时设置；否则为 `null`。
                              items:
                                type: object
                            stop_on_hard_decline:
                              type: boolean
                              nullable: true
                              description: 为 true 时，硬拒绝会停止当前计费周期的重试。
                            cancel_on_exhausted_retries:
                              type: boolean
                              nullable: true
                              description: >-
                                为 true 时，一个周期的重试结束后仍没有支付成功，订阅就会被取消，同时
                                `cancellation_source` 设置为 `RETRIES_EXHAUSTED`。
                            profile:
                              type: string
                              description: >-
                                订阅遵循的固定重试阶梯，用来替代可配置的计划。始终为
                                `PIX_AUTOMATIC`。该字段和下面三个字段仅出现在由 Yuno 执行的
                                `PIX_AUTOMATIC` 订阅上；在所有其他支付方式上，它们不存在（而不是
                                `null`）。请参阅 [Pix
                                Automático](/zh-hans/docs/payment-features/subscriptions/pix-automatico#the-retry-ladder)。
                              example: PIX_AUTOMATIC
                            max_attempts:
                              type: integer
                              description: Pix 阶梯执行的重试次数。始终为 3，与这些订阅所报告的 `amount` 一致。
                              example: 3
                            min_gap_hours:
                              type: integer
                              description: >-
                                始终为
                                24，即阶梯各扣款日期（`D`、`D+1`、`D+2`、`D+3`）之间的间隔，而不是各发出尝试之间的间隔。
                              example: 24
                            until:
                              type: string
                              description: >-
                                阶梯停止的时间，即 `billing_cycles.next_at` 加 7 天。每次续订时随
                                `next_at` 一起变动。
                            stopped:
                              type: boolean
                              description: 仅当订阅处于 PAST_DUE 状态或有待处理的 cancel_scheduled 时出现。
                            attempts_made:
                              type: integer
                              description: 仅当订阅处于 PAST_DUE 状态或有待处理的 cancel_scheduled 时出现。
                            outcome:
                              type: string
                              description: >-
                                RECOVERED、EXHAUSTED 或 ABANDONED。仅当订阅处于 PAST_DUE
                                状态或有待处理的 cancel_scheduled 时出现。
                            next_retry_at:
                              type: string
                              description: 仅当订阅处于 PAST_DUE 状态或有待处理的 cancel_scheduled 时出现。
                        trial_period:
                          type: object
                          properties:
                            billing_cycles:
                              type: integer
                              example: 1
                              default: 0
                            amount:
                              type: object
                              properties:
                                value:
                                  type: number
                                  example: 0
                                  default: 0
                                currency:
                                  type: string
                                  example: ''
                        metadata:
                          type: array
                          items:
                            type: object
                            properties:
                              key:
                                type: string
                                example: sub_ext_id
                              value:
                                type: string
                                example: AA001
                          nullable: true
                        additional_data:
                          type: object
                          nullable: true
                          description: >-
                            创建时发送的可选订单补充数据，原样回显。完整结构请参阅[订阅对象](/zh-hans/reference/subscriptions/the-subscription-object)。
                        initial_payment_validation:
                          type: boolean
                          description: 订阅是否等待首次支付成功后才激活。默认为 `false`。
                          example: false
                        reason:
                          type: string
                          nullable: true
                          description: 订阅当前状态的自由格式原因（如果有记录）；否则为 `null`。
                          example: merchant request
                        renewal_notification_days:
                          type: integer
                          nullable: true
                          description: >-
                            在下一个计费日期之前多少天发送 `subscription.close_to_renewal`
                            webhook。`null` 表示不发送续订通知。
                          example: 3
                        payments:
                          type: array
                          items:
                            type: string
                            example: 5104911d-5df9-229e-8468-bd41abea1a4s
                        subscription_agreement_id:
                          type: string
                          example: sa_6af2dfcd-44c0-4f16-a331-8bed3ed9c9fa
                          nullable: true
                        cancellation_time:
                          type: string
                          nullable: true
                          description: 订阅被取消的时间。仅在订阅达到 `CANCELED` 后设置；否则为 `null`。
                          example: '2023-12-16T20:46:54.786342Z'
                        cancellation_source:
                          type: string
                          nullable: true
                          description: >-
                            触发取消的原因：`MERCHANT`、`SYSTEM`、`PLAN_CHANGE` 或
                            `RETRIES_EXHAUSTED`。仅在订阅达到 `CANCELED` 后设置；否则为
                            `null`。请将其视为开放式字段，并妥善处理无法识别的值。
                          example: MERCHANT
                        ending_time:
                          type: string
                          nullable: true
                          description: 订阅完成或过期的时间。仅在订阅达到 `COMPLETED` 后设置；否则为 `null`。
                          example: '2024-12-16T20:46:54.786342Z'
                        plan_assigned_at:
                          type: string
                          description: 仅出现在关联了计划的订阅上。计划被附加的时间，即从计划创建订阅时、迁移到计划时或计划变更时。
                          example: '2023-12-16T20:46:54.786342Z'
                        previous_subscription_id:
                          type: string
                          description: 仅当该订阅由计划变更（将现有订阅切换到另一个计划）创建时出现。
                          nullable: true
                        phases:
                          type: array
                          description: >-
                            所关联计划的阶段定义，与计划声明的一致，包括终止的 `REGULAR`
                            阶段。仅出现在其计划包含阶段的、关联了计划的订阅上。这是计划自己的阶梯，而不是该订阅者的快照：要查看创建时为该订阅固定下来的内容，请使用
                            `billing_phases`。
                          items:
                            type: object
                            properties:
                              order:
                                type: integer
                              name:
                                type: string
                              type:
                                type: string
                                description: '`TRIAL` 或 `REGULAR`。'
                              duration:
                                type: object
                                nullable: true
                                description: >-
                                  阶段持续多长时间。在终止的 `REGULAR` 阶段上为
                                  `null`，该阶段一直持续到订阅结束。
                                properties:
                                  type:
                                    type: string
                                  value:
                                    type: integer
                              frequency:
                                type: object
                                nullable: true
                                description: >-
                                  阶段的计费频率。在终止的 `REGULAR` 阶段上为
                                  `null`，该阶段按计划自身的频率计费。
                                properties:
                                  type:
                                    type: string
                                  value:
                                    type: integer
                              amount:
                                type: object
                                nullable: true
                                description: >-
                                  阶段价格。在终止的 `REGULAR` 阶段上为
                                  `null`，其价格在每次计费时由计划确定。
                                properties:
                                  currency:
                                    type: string
                                  value:
                                    type: number
                              total_payments:
                                type: integer
                                nullable: true
                              country_prices:
                                type: array
                                description: 按国家/地区覆盖的阶段价格，阶段没有覆盖时为空。
                                items:
                                  type: object
                                  properties:
                                    country:
                                      type: string
                                    amount:
                                      type: object
                                      properties:
                                        currency:
                                          type: string
                                        value:
                                          type: number
                        current_phase:
                          type: string
                          description: 仅出现在关联了计划的订阅上。
                          example: REGULAR
                        current_phase_end:
                          type: string
                          nullable: true
                          description: >-
                            由 `current_phase`
                            指定的阶段移交给下一个阶段的时间，对于处于试用期的订阅，即切换到常规价格的时间。它是该阶段所涵盖的最后一个计费周期的结束时间，因此在试用期的最后一个周期，它等于
                            `current_period_end`。对于没有计划的订阅以及已离开阶段阶梯的订阅，为 Null。
                          example: '2023-03-16T20:00:00.786342Z'
                        billing_phases:
                          type: array
                          description: >-
                            仅出现在其计划包含阶段的、关联了计划的订阅上。只包含前面的 TRIAL 阶段，在创建时生成快照；终止的
                            REGULAR
                            阶段从不包含在内，因为它的价格没有被固定，而是在每次计费时由计划确定。`current_phase:
                            "REGULAR"` 表示阶梯已经用完。
                          items:
                            type: object
                            properties:
                              order:
                                type: integer
                              type:
                                type: string
                                description: 始终为 TRIAL，终止的 REGULAR 阶段从不出现在该数组中。
                              name:
                                type: string
                              amount:
                                type: object
                                properties:
                                  currency:
                                    type: string
                                  value:
                                    type: number
                              frequency:
                                type: object
                                properties:
                                  type:
                                    type: string
                                  value:
                                    type: integer
                              start_cycle:
                                type: integer
                              end_cycle:
                                type: integer
                        pending_plan_change:
                          type: object
                          nullable: true
                          description: >-
                            计划在下一个计费周期生效的变更，没有待处理的变更时为 null。使用更新订阅上的
                            `plan_change` 块可以预定一个变更。
                          properties:
                            plan_id:
                              type: string
                              description: 目标计划的标识符。
                              example: 1904911d-5df9-429e-8488-ad41abea1a4d
                            plan_name:
                              type: string
                              description: 目标计划的名称。
                              example: Pro
                            direction:
                              type: string
                              enum:
                                - UPGRADE
                                - DOWNGRADE
                              description: 目标计划是升级还是降级。仅供参考。
                              example: UPGRADE
                            effective:
                              type: string
                              enum:
                                - NEXT_BILLING_CYCLE
                              description: 变更生效的时间。
                              example: NEXT_BILLING_CYCLE
                            phases_behavior:
                              type: string
                              enum:
                                - START_FROM_REGULAR
                                - HONOR_PHASES
                              description: 目标计划包含阶段时会发生什么。
                              example: START_FROM_REGULAR
                            applies_at:
                              type: string
                              description: 变更将在其上生效的计费事件，即订阅的下一个计费日期。
                              example: '2023-02-16T20:00:00.786342Z'
                            requested_at:
                              type: string
                              description: 变更被预定的时间。
                              example: '2023-01-20T10:12:31.786342Z'
                        updated_at:
                          type: string
                          example: '2023-12-16T21:00:54.786342Z'
                        refund_rule:
                          type: object
                          description: >-
                            已存储的退款规则，当取消请求没有自带 refund_amount 时，用它来确定 CUSTOM
                            取消的退款。仅在配置了规则时出现；否则该字段被省略（而不是 null）。适用于已启用该功能的组织；请联系
                            Yuno。
                          properties:
                            type:
                              type: string
                              enum:
                                - PERCENT
                                - FIXED
                              description: PERCENT 将退款确定为已扣款金额的百分比；FIXED 将其确定为固定金额。
                              example: FIXED
                            percent:
                              type: number
                              description: 当 type 为 PERCENT 时必填，且仅在此时允许（0-100）。
                              example: 50
                            amount:
                              type: object
                              description: 当 type 为 FIXED 时必填，且仅在此时允许。
                              properties:
                                value:
                                  type: number
                                  example: 10000
                                currency:
                                  type: string
                                  description: 必须与订阅自身的币种一致。
                                  example: COP
                        pause_until:
                          type: string
                          description: >-
                            订阅预定自动恢复的时间。仅出现在当前带有时长（暂停时发送了 pause_cycles 或
                            pause_until）而处于暂停状态的订阅上；在所有其他读取中，该字段不存在（而不是 null）。
                          example: '2026-10-15T15:54:22.780166Z'
                        cancel_scheduled:
                          type:
                            - object
                            - 'null'
                          description: 没有待处理的取消时为 null。
                          properties:
                            mode:
                              type: string
                              example: AFTER_CYCLES
                            after_cycles:
                              type: integer
                              example: 3
                            at:
                              type: string
                            requested_at:
                              type: string
                            past_due_behavior:
                              type: string
                              example: EXHAUST_RETRIES
                        refund:
                          type:
                            - object
                            - 'null'
                          description: >-
                            当 refund 为 NONE 或被省略时为
                            null。出现在取消响应中，计算完成后的每次后续读取中也会出现。
                          properties:
                            mode:
                              type: string
                              example: PRORATED
                            amount:
                              type: object
                              properties:
                                currency:
                                  type: string
                                  example: USD
                                value:
                                  type: number
                                  example: 20
                            unused_days:
                              type: integer
                              example: 20
                            period_days:
                              type: integer
                              example: 30
                            basis:
                              type: object
                              properties:
                                billing_cycle:
                                  type: integer
                                  example: 4
                                charged_amount:
                                  type: object
                                  properties:
                                    currency:
                                      type: string
                                      example: USD
                                    value:
                                      type: number
                                      example: 30
                                payment_id:
                                  type: string
                                  description: 对于没有已捕获支付的 $0 阶段报价，为 null。
                                charged_at:
                                  type: string
                                  description: 对于没有已捕获支付的 $0 阶段报价，为 null。
                            execution:
                              type: string
                              example: MERCHANT
                            quoted_at:
                              type: string
                        unpaid_cycle:
                          type: object
                          description: 仅当当前计费周期处于 PAST_DUE 状态且尚未结清时出现。
                          properties:
                            cycle_number:
                              type: integer
                            amount:
                              type: object
                              properties:
                                currency:
                                  type: string
                                value:
                                  type: number
                            attempts:
                              type: integer
                            last_failure_code:
                              type: string
                  pagination:
                    type: object
                    properties:
                      page:
                        type: integer
                        description: 返回的页码，与请求一致。
                      size:
                        type: integer
                        description: 返回的每页条数，与请求一致。
                      total:
                        type: integer
                        description: 符合过滤条件的订阅总数，包含所有页。
                      total_pages:
                        type: integer
        '400':
          description: '400'
          content:
            application/json:
              examples:
                Result:
                  value:
                    code: BAD_REQUEST
                    messages:
                      - The page must be greater than or equal to 1.
                  summary: Result
              schema:
                type: object
                properties:
                  code:
                    type: string
                    example: BAD_REQUEST
                  messages:
                    type: array
                    items:
                      type: string
      deprecated: false
components:
  securitySchemes:
    sec0:
      type: apiKey
      in: header
      name: public-api-key
      x-default: <Your public-api-key>
    sec1:
      type: apiKey
      in: header
      name: private-secret-key
      x-default: <Your private-secret-key>

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.