> ## 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.

# 创建支付链接

> 创建可分享的支付链接，用于向客户收取支付



## OpenAPI

````yaml openapi/zh-hans/payment-links/create-payment-link.json POST /payment-links
openapi: 3.1.0
info:
  title: payment-links
  version: 1.0.2
servers:
  - url: https://api-sandbox.y.uno/v1
    description: Sandbox
  - url: https://api.y.uno/v1
    description: Production (US)
security:
  - sec0: []
    sec1: []
paths:
  /payment-links:
    post:
      summary: 创建支付链接
      operationId: create-payment-link
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
                - account_id
                - country
                - amount
                - payment_method_types
              properties:
                account_id:
                  type: string
                  description: >-
                    账户的唯一标识符。可在 [Yuno Dashboard](https://dashboard.y.uno/)
                    中找到此信息（MAX 64；MIN 36）。
                description:
                  type: string
                  description: 支付链接的描述（MAX 255；MIN 3）。
                country:
                  type: string
                  description: >-
                    客户的国家代码（MAX 2；MIN 2；[ISO
                    3166-1](/zh-hans/reference/country-reference)）**[必填]**。
                  enum:
                    - AR
                    - BO
                    - BR
                    - CL
                    - CO
                    - CR
                    - EC
                    - SV
                    - GT
                    - HN
                    - MX
                    - NI
                    - PA
                    - PY
                    - PE
                    - US
                    - UY
                merchant_order_id:
                  type: string
                  description: 由商户定义的支付链接交易标识（MAX 255；MIN 3）。
                amount:
                  type: object
                  description: 指定支付金额对象，包含金额值和币种。
                  required:
                    - value
                    - currency
                  properties:
                    value:
                      type: number
                      description: 支付金额（0.0001 的倍数）
                      format: float
                    currency:
                      type: string
                      description: >-
                        用于支付的币种。有关币种代码的完整列表，请参阅[国家参考](/zh-hans/reference/country-reference)（MAX
                        3；MIN 3；ISO 4217）。
                capture:
                  type: boolean
                  description: 决定是授权支付还是直接捕获。授权银行卡支付可在客户的银行账户中预留资金。未设置时默认为 true。
                type:
                  type: string
                  description: 支付链接的类型。
                status:
                  type: string
                  description: 支付链接的状态。
                payment_method:
                  type: object
                  description: 支付方式对象（可选）。
                installments_plan:
                  type: object
                  description: 分期计划配置（可选）。
                timezone:
                  type: string
                  description: 可用时段的时区（例如 UTC +03:00）。
                payments_number:
                  type: integer
                  description: 与该链接关联的支付数量。
                split_payment_methods:
                  type: boolean
                  description: 允许拆分支付方式。
                taxes:
                  type: array
                  description: 指定支付税费列表。
                  items:
                    properties:
                      type:
                        type: string
                        description: 税费类型。
                      tax_base:
                        type: number
                        description: 适用所定义税费的金额基数。
                        format: float
                      value:
                        type: number
                        description: 税费金额。
                        format: float
                      percentage:
                        type: number
                        description: 税费百分比。
                        format: float
                    type: object
                external_invoice:
                  type: object
                  description: >-
                    该支付链接所支付的 Stripe 发票。客户付款时，Yuno
                    会检查该发票：发票必须处于未结清状态，链接金额必须等于发票的剩余金额且币种相同，并且在发送 `customer_id`
                    时，客户必须是该发票的客户。如果检查失败，不会扣款，链接会被取消。不能与 `subscription` 或非空的
                    `taxes` 列表一起发送（400 `INVALID_REQUEST`），且创建后不可更改。请参见 [支付
                    Stripe
                    发票（充值）](/zh-hans/docs/payment-features/subscriptions/stripe-billing-top-ups#pay-a-stripe-invoice-with-a-payment-link)。
                  required:
                    - id
                  properties:
                    id:
                      type: string
                      description: >-
                        发票在 Stripe 中的标识符（`in_...`）。当该对象存在时必填。（MIN 3；MAX
                        255，去除空格后）
                      minLength: 3
                      maxLength: 255
                    customer_id:
                      type: string
                      description: >-
                        拥有该发票的 Stripe 客户（`cus_...`）。可选。发送时，必须是该发票的客户。（MIN 3；MAX
                        255，去除空格后）
                      minLength: 3
                      maxLength: 255
                local_pricing:
                  type: boolean
                  default: false
                  description: >-
                    设为 `true` 可在托管式 checkout 页面显示买家所在地的货币并按该货币扣款。默认为 `false`。不能与
                    `external_invoice` 一起发送（400
                    `INVALID_REQUEST`）。更新时，不带此字段的请求会将其关闭。
                tax_collection:
                  type: boolean
                  default: false
                  description: >-
                    设为 `true` 可在托管式 checkout 页面按买家地址报价并收取税费。默认为 `false`。需要带有
                    `customer_id` 和 `items`（且没有 `id`）的
                    `external_subscription`，以及 `customer_payer.id`。链接的
                    `amount.value` 必须等于订阅价格的小计，币种与这些价格的币种一致。否则，买家付款时支付会被拒绝。不能与
                    `external_invoice` 一起发送。当您的组织未启用税费收取时，返回 403
                    `PRODUCT_NOT_ENABLED`。更新时，不带此字段的请求会将其关闭。
                external_subscription:
                  type: object
                  description: >-
                    客户付款后，该链接所售卖的计费平台订阅。请发送 `items` 以创建新订阅，或发送 `id` 以使用现有订阅。需要
                    `customer_payer.id`，并将 `one_time_use` 设为 `true`。不能与
                    `subscription` 或 `external_invoice` 一起发送（400
                    `INVALID_REQUEST`）。暂不支持 `trial_period_days` 和订阅项 metadata。
                  properties:
                    provider:
                      type: string
                      default: STRIPE_BILLING
                      enum:
                        - STRIPE_BILLING
                      description: 计费平台。默认为 `STRIPE_BILLING`。
                    customer_id:
                      type: string
                      minLength: 3
                      maxLength: 255
                      description: 客户在计费平台中的标识符。与 `items` 一起使用时必填。（MIN 3；MAX 255）
                    items:
                      type: array
                      description: 要为客户订阅的价格。不能与 `id` 一起发送。
                      items:
                        type: object
                        required:
                          - price
                        properties:
                          price:
                            type: string
                            description: 计费平台中的价格标识符。
                          quantity:
                            type: integer
                            minimum: 1
                            default: 1
                            description: 数量。最小为 1。默认为 1。
                    currency:
                      type: string
                      description: 可选。发送时，必须等于 `amount.currency`。
                    metadata:
                      type: object
                      additionalProperties:
                        type: string
                      description: 可选。随订阅一起保存的文本键和文本值的映射。
                    id:
                      type: string
                      description: 现有订阅的标识符。不能与 `items` 或 `tax_collection` 一起发送。
                customer_payer:
                  type: object
                  description: 指定支付的客户对象。
                  properties:
                    id:
                      type: string
                      description: 客户的唯一标识符（UUID | 最大 36；最小 36）。
                    merchant_customer_id:
                      type: string
                      description: 客户在外部商户中的唯一标识符（最大 255；最小 3）。
                    first_name:
                      type: string
                      description: 客户的名字（MAX 255；MIN 1）。
                    last_name:
                      type: string
                      description: 客户的姓氏（MAX 255；MIN 1）。
                    gender:
                      type: string
                      description: >-
                        客户的性别（MAX 2；MIN 1；(M=Male/F=Female/NA=Not
                        applicable/NK=Not Known)）。
                    date_of_birth:
                      type: string
                      description: 客户的出生日期，格式为 YYYY-MM-DD（长度：10）。
                    email:
                      type: string
                      description: 客户的电子邮件（最大 255；最小 3）。
                    nationality:
                      type: string
                      description: 客户的国籍（MAX 2；MIN 2；ISO 3166-1）。
                    document:
                      type: object
                      description: 指定客户的证件对象，包括证件号码和类型。
                      required:
                        - document_number
                      properties:
                        document_number:
                          type: string
                          description: 证件号码（MAX 40；MIN 3）。
                        document_type:
                          type: string
                          description: >-
                            证件类型（MAX 6；MIN
                            3；[国家参考](/zh-hans/reference/country-reference)）。
                          enum:
                            - DNI
                            - CI
                            - LC
                            - LE
                            - CUIT
                            - CUIL
                            - PAS
                            - CPF
                            - RG
                            - CNH
                            - CNPJ
                            - RUT
                            - RUN
                            - CC
                            - CE
                            - NIT
                            - DUI
                            - PIC
                            - DPI
                            - IFR
                            - INE
                            - CP
                            - RFC
                            - CURP
                            - CIP
                            - CIC
                            - CUI
                            - RUC
                            - ''
                    phone:
                      type: object
                      description: 指定客户的电话号码对象。
                      properties:
                        country_code:
                          type: string
                          description: >-
                            电话的国家区号（MAX 5；MIN
                            1）。请查看[国家参考](/zh-hans/reference/country-reference)了解电话区号。
                        number:
                          type: string
                          description: 不含国家区号的电话号码（MAX 32；MIN 1）。
                    billing_address:
                      type: object
                      description: 指定客户的账单地址对象。
                      properties:
                        address_line_1:
                          type: string
                          description: 主地址行（MAX 255；MIN 3）。
                        address_line_2:
                          type: string
                          description: 次地址行（MAX 255；MIN 3）。
                        city:
                          type: string
                          description: 地址所在的城市（MAX 255；MIN 3）。
                        country:
                          type: string
                          description: >-
                            国家（MAX 2；MIN 2；[ISO
                            3166-1](/zh-hans/reference/country-reference)）。
                          enum:
                            - AR
                            - BO
                            - BR
                            - CL
                            - CO
                            - CR
                            - EC
                            - SV
                            - GT
                            - HN
                            - MX
                            - NI
                            - PA
                            - PY
                            - PE
                            - US
                            - UY
                        state:
                          type: string
                          description: 地址中的州/省（MAX 255；MIN 3）。
                        zip_code:
                          type: string
                          description: 地址的邮政编码（MAX 10；MIN 5）。
                    shipping_address:
                      type: object
                      description: 指定客户的收货地址对象。
                      properties:
                        address_line_1:
                          type: string
                          description: 主地址行（MAX 255；MIN 3）。
                        address_line_2:
                          type: string
                          description: 次地址行（MAX 255；MIN 3）。
                        city:
                          type: string
                          description: 地址所在的城市（MAX 255；MIN 3）。
                        country:
                          type: string
                          description: >-
                            国家（MAX 2；MIN 2；[ISO
                            3166-1](/zh-hans/reference/country-reference)）。
                          enum:
                            - AR
                            - BO
                            - BR
                            - CL
                            - CO
                            - CR
                            - EC
                            - SV
                            - GT
                            - HN
                            - MX
                            - NI
                            - PA
                            - PY
                            - PE
                            - US
                            - UY
                        state:
                          type: string
                          description: 地址中的州/省（MAX 255；MIN 3）。
                        zip_code:
                          type: string
                          description: 地址的邮政编码（MAX 10；MIN 5）。
                    ip_address:
                      type: string
                      description: 指定客户的 IP 地址（MAX 45；MIN 1）。
                additional_data:
                  type: object
                  description: 指定 additional_data 对象。此对象不是必需的。但是，如果您发送此信息，将改善您的用户的支付体验。
                  properties:
                    order:
                      type: object
                      description: 指定订单对象。
                      properties:
                        shipping_amount:
                          type: number
                          description: 订单的运费金额（0.0001 的倍数）
                          format: float
                        fee_amount:
                          type: number
                          description: 订单的手续费金额（0.0001 的倍数）
                          format: float
                        items:
                          type: array
                          description: 指定商品对象数组。
                          items:
                            properties:
                              id:
                                type: string
                                description: 商品的唯一标识符（MAX 255；MIN 1）。
                              name:
                                type: string
                                description: 商品名称（MAX 255；MIN 3）。
                              quantity:
                                type: integer
                                description: 商品数量。
                                format: int32
                              unit_amount:
                                type: number
                                description: 商品单价（0.0001 的倍数）。
                                format: float
                              category:
                                type: string
                                description: 商品的类别。请查看商品类别参考。
                              brand:
                                type: string
                                description: 商品的品牌（MAX 255；MIN 1）。
                              sku_code:
                                type: string
                                description: 商品的库存单位（SKU）（MAX 255；MIN 1）。
                              manufacture_part_number:
                                type: string
                                description: 商品的制造商零件号（MAX 255；MIN 1）。
                            required:
                              - id
                              - name
                              - quantity
                              - unit_amount
                            type: object
                    airline:
                      type: object
                      description: 指定航空公司对象。
                      properties:
                        pnr:
                          type: string
                          description: 旅客订座记录（MAX 10；MIN 1）。
                        legs:
                          type: array
                          description: 指定航段对象。
                          items:
                            properties:
                              departure_airport:
                                type: string
                                description: IATA 代码。请参阅 http://www.iata.org（MAX 3；MIN 3）。
                              departure_datetime:
                                type: string
                                description: UTC 时间的出发日期和时间（ISO 8601，MAX 27；MIN 27）。
                                format: date
                              departure_airport_timezone:
                                type: string
                                description: 机场时区（MAX 6；MIN 6）。
                              arrival_airport:
                                type: string
                                description: >-
                                  IATA 机场代码。请参阅 http://www.iata.org（MAX 3；MIN
                                  3）。
                              carrier_code:
                                type: string
                                description: >-
                                  IATA 承运人代码。请参阅 http://www.iata.org（MAX 2；MIN
                                  2）。
                              carrier_name:
                                type: string
                                description: 航空承运人名称（MAX 100；MIN 1）。
                              flight_number:
                                type: string
                                description: 航空承运人分配的航班号（MAX 5；MIN 1）。
                              fare_basis_code:
                                type: string
                                description: >-
                                  票价基础代码除舱位服务外还提供有关票价的具体信息，两者均为预订所必需（MAX 15；MIN
                                  1）。
                              fare_class_code:
                                type: string
                                description: >-
                                  航空公司的舱位等级代码（MAX 3；MIN
                                  1）。取值可以是字母（A-Z），但可能因航空公司的定义而异。请查看[航空信息参考](/zh-hans/reference/airline-information#fare-class-code)。
                              base_fare:
                                type: number
                                description: 交易金额，不含税费，以货币的最小单位表示（0.0001 的倍数）。
                                format: float
                              base_fare_currency:
                                type: string
                                description: >-
                                  用于基础票价金额的货币（MAX 3；MIN 3；[ISO
                                  4217](https://en.wikipedia.org/wiki/ISO_4217)）。
                              stopover_code:
                                type: string
                                description: >-
                                  表示是否允许旅客经停的 1 个字母代码。只允许两种字符：O：允许经停（字母“O”，不是零）/
                                  X：不允许经停。（MAX 1；MIN 1）。
                            required:
                              - departure_airport
                              - departure_datetime
                              - arrival_airport
                            type: object
                    device:
                      type: object
                      description: 指定设备对象。
                      properties:
                        locale:
                          type: string
                          description: 设备的区域设置（MAX 20；例如 es-CL）。
                        geolocation:
                          type: string
                          description: 设备的地理位置，格式为 lat,long（MAX 255）。
                        event_uuid:
                          type: string
                          description: 事件的唯一标识符（MAX 64）。
                        user_agent:
                          type: string
                          description: 设备的用户代理（MAX 512）。
                    payer_risk_data:
                      type: object
                      description: 指定付款方风险数据对象。
                      properties:
                        login_platform:
                          type: string
                          description: 登录所用的平台（MAX 64；例如 WEB）。
                        approved_transactions_2m:
                          type: integer
                          description: 过去 2 个月内已批准的交易数量（MIN 0）。
                          minimum: 0
                        recent_transactions_3h:
                          type: integer
                          description: 过去 3 小时内的交易数量（MIN 0）。
                          minimum: 0
                        is_paid_user:
                          type: boolean
                          description: 指示付款方是否为付费用户。
                        account_creation_date:
                          type: string
                          description: 账户创建日期，格式为 YYYYMMDD（例如 20191005）。
                    seller_details:
                      type: object
                      description: 指定卖家详细信息对象。仅对带有 sub_merchant 账户信息的 PSP 必填。
                      properties:
                        name:
                          type: string
                          description: 卖家的法定名称（MAX 255；MIN 1）。
                        email:
                          type: string
                          description: 卖家的电子邮箱（MAX 255；MIN 1）。
                        reference:
                          type: string
                          description: 卖家的识别码（MAX 255；MIN 1）。
                        website:
                          type: string
                          description: 卖家的网站 URL（MAX 255；MIN 1）。
                        industry:
                          type: string
                          description: 卖家所属行业（MAX 255；MIN 3；行业类别参考）。
                        country:
                          type: string
                          description: 卖家所在国家/地区（MAX 255；MIN 3；ISO 3166-1）。
                        document:
                          type: object
                          description: 指定卖家的证件对象。
                          required:
                            - document_number
                          properties:
                            document_number:
                              type: string
                              description: 证件号码（MAX 40；MIN 3）。
                            document_type:
                              type: string
                              description: >-
                                证件类型（MAX 6；MIN
                                1；[国家参考](/zh-hans/reference/country-reference)）。
                              enum:
                                - DNI
                                - CI
                                - LC
                                - LE
                                - CUIT
                                - CUIL
                                - PAS
                                - CPF
                                - RG
                                - CNH
                                - CNPJ
                                - RUT
                                - RUN
                                - CC
                                - CE
                                - NIT
                                - DUI
                                - PIC
                                - DPI
                                - IFR
                                - INE
                                - CP
                                - RFC
                                - CURP
                                - CIP
                                - CIC
                                - CUI
                                - RUC
                                - ''
                        phone:
                          type: object
                          description: 指定卖家的电话号码对象。
                          properties:
                            country_code:
                              type: string
                              description: >-
                                电话的国家/地区区号（MAX 5；MIN
                                1）。请查看[国家参考](/zh-hans/reference/country-reference)了解电话区号。
                            number:
                              type: string
                              description: 不含国家区号的电话号码（MAX 32；MIN 1）。
                        address:
                          type: object
                          description: 指定卖家的地址对象。
                          properties:
                            address_line_1:
                              type: string
                              description: 主地址行（MAX 255；MIN 3）。
                            address_line_2:
                              type: string
                              description: 第二行地址（MAX 255；MIN 1）。
                            city:
                              type: string
                              description: 地址所在的城市（MAX 255；MIN 3）。
                            country:
                              type: string
                              description: >-
                                国家（MAX 2；MIN 2；[ISO
                                3166-1](/zh-hans/reference/country-reference)）。
                              enum:
                                - AR
                                - BO
                                - BR
                                - CL
                                - CO
                                - CR
                                - EC
                                - SV
                                - GT
                                - HN
                                - MX
                                - NI
                                - PA
                                - PY
                                - PE
                                - US
                                - UY
                            state:
                              type: string
                              description: 地址中的州/省（MAX 255；MIN 3）。
                            zip_code:
                              type: string
                              description: 地址的邮政编码（MAX 10；MIN 5）。
                callback_url:
                  type: string
                  description: 支付完成后将客户重定向到的 URL（MAX 256）。
                one_time_use:
                  type: boolean
                  description: '`true` 表示仅允许使用一次，`false` 表示允许多次支付'
                availability:
                  type: object
                  description: 可用性对象。指支付链接的有效期。
                  properties:
                    start_at:
                      type: string
                      description: 支付链接有效期的开始时间。
                      format: date-time
                    finish_at:
                      type: string
                      description: >-
                        支付链接有效期的结束时间。必须晚于当前时间。过去的日期会返回 400
                        `INVALID_PARAMETERS`（`Invalid finish_at date`）。
                      format: date-time
                payment_method_types:
                  type: array
                  description: >-
                    客户可使用的支付方式类型列表。请在[支付类型](/zh-hans/reference/payment-type-list)中查看可用的支付方式。如果未传入任何值，Yuno
                    将显示在 Dashboard 中定义的支付方式。
                  items:
                    type: string
                metadata:
                  type: array
                  description: 指定 metadata 对象列表。最多可添加 50 个 metadata 对象。
                  items:
                    properties:
                      key:
                        type: string
                        description: 元数据键（MAX 48）。
                      value:
                        type: string
                        description: 元数据键值（MAX 512）。
                    type: object
                vault_on_success:
                  type: boolean
                  description: 用于在支付成功后注册该卡的标志
            examples:
              CREATE PAYMENT LINK:
                value:
                  account_id: 493e9374-510a-4201-9e09-de669d75f256
                  description: Test
                  country: AR
                  merchant_order_id: AA01
                  amount:
                    value: 5000
                    currency: ARS
                  payment_method_types:
                    - CARD
                  availability:
                    start_at: '2026-11-01T14:00:12Z'
                    finish_at: '2027-12-29T14:00:12Z'
              CREATE PAYMENT LINK WITH SUBSCRIPTION AND TAX COLLECTION:
                value:
                  account_id: 493e9374-510a-4201-9e09-de669d75f256
                  description: Monthly plan
                  country: US
                  merchant_order_id: AA02
                  amount:
                    value: 29
                    currency: USD
                  one_time_use: true
                  customer_payer:
                    id: 9d1f3a7e-5c2b-4e8a-9b6d-1a2b3c4d5e6f
                  local_pricing: false
                  tax_collection: true
                  external_subscription:
                    provider: STRIPE_BILLING
                    customer_id: cus_RplXYZ
                    items:
                      - price: price_1QwAbc
                        quantity: 1
      responses:
        '201':
          description: '201'
          content:
            application/json:
              examples:
                CREATE PAYMENT LINK:
                  value:
                    id: 555933df-4eed-4af4-ae83-a32072ef34af
                    country: US
                    availability:
                      start_at: '2026-11-01T14:00:12Z'
                      finish_at: '2027-12-29T14:00:12Z'
                    status: CREATED
                    merchant_order_id: AA01
                    description: Test
                    amount:
                      currency: USD
                      value: 5000
                    capture: true
                    metadata: null
                    split_payment_methods: false
                    payment_method_types:
                      - CARD
                    one_time_use: false
                    payments: null
                    callback_url: https://checkout.sandbox.y.uno/payment/status
                    installments_plan: null
                    customer_payer: null
                    taxes: null
                    external_invoice:
                      id: in_1QwZzz
                      customer_id: cus_RplXYZ
                    local_pricing: false
                    tax_collection: false
                    additional_data:
                      airline: null
                      order: null
                      seller_details: null
                    account_id: 493e9374-510a-4201-9e09-de669d75f256
                    checkout_url: >-
                      https://checkout.sandbox.y.uno/payment?session=2f6d9754-43d0-4dca-b023-6aba4b107179
                    payments_number: 0
                    merchant_image: ''
              schema:
                type: object
                properties:
                  id:
                    type: string
                    example: 555933df-4eed-4af4-ae83-a32072ef34af
                  country:
                    type: string
                    example: US
                  availability:
                    type: object
                    properties:
                      start_at:
                        type: string
                        example: '2026-11-01T14:00:12Z'
                      finish_at:
                        type: string
                        example: '2027-12-29T14:00:12Z'
                  status:
                    type: string
                    example: CREATED
                  merchant_order_id:
                    type: string
                    example: AA01
                  description:
                    type: string
                    example: Test
                  amount:
                    type: object
                    properties:
                      currency:
                        type: string
                        example: USD
                      value:
                        type: integer
                        example: 5000
                        default: 0
                  capture:
                    type: boolean
                    example: true
                    default: true
                  metadata: {}
                  split_payment_methods:
                    type: boolean
                    example: false
                    default: true
                  payment_method_types:
                    type: array
                    items:
                      type: string
                      example: CARD
                  one_time_use:
                    type: boolean
                    example: false
                    default: true
                  payments: {}
                  callback_url:
                    type: string
                    example: https://checkout.sandbox.y.uno/payment/status
                  installments_plan: {}
                  customer_payer: {}
                  taxes: {}
                  external_invoice:
                    type: object
                    description: 该支付链接所支付的 Stripe 发票，与创建链接时发送的内容一致。在未带该字段创建的链接上，此键不会出现。
                    required:
                      - id
                    properties:
                      id:
                        type: string
                        description: 发票在 Stripe 中的标识符（`in_...`）。
                        example: in_1QwZzz
                      customer_id:
                        type: string
                        nullable: true
                        description: 拥有该发票的 Stripe 客户（`cus_...`）。链接创建时未带该字段则为 Null。
                        example: cus_RplXYZ
                  local_pricing:
                    type: boolean
                    example: false
                    description: 当托管式 checkout 页面显示并按买家所在地的货币扣款时为 `true`。
                  tax_collection:
                    type: boolean
                    example: false
                    description: 当托管式 checkout 页面按买家地址报价并收取税费时为 `true`。
                  external_subscription:
                    type: object
                    description: 链接在付款后所售卖的计费平台订阅，与创建链接时发送的内容一致。在未带该字段创建的链接上，此键不会出现。
                    properties:
                      provider:
                        type: string
                        example: STRIPE_BILLING
                        description: 计费平台。
                      customer_id:
                        type: string
                        example: cus_RplXYZ
                        description: 客户在计费平台中的标识符。
                      items:
                        type: array
                        description: 订阅的价格。
                        items:
                          type: object
                          properties:
                            price:
                              type: string
                              example: price_1QwAbc
                            quantity:
                              type: integer
                              example: 1
                      currency:
                        type: string
                        example: USD
                        description: 订阅价格的货币。
                      metadata:
                        type: object
                        additionalProperties:
                          type: string
                        description: 创建链接时发送的文本映射。
                      id:
                        type: string
                        description: 现有订阅的标识符（如果发送了的话）。
                  additional_data:
                    type: object
                    properties:
                      airline: {}
                      order: {}
                      seller_details: {}
                      device:
                        type: object
                        properties:
                          locale:
                            type: string
                            example: es-CL
                          geolocation:
                            type: string
                          event_uuid:
                            type: string
                          user_agent:
                            type: string
                      payer_risk_data:
                        type: object
                        properties:
                          login_platform:
                            type: string
                            example: WEB
                          approved_transactions_2m:
                            type: integer
                            default: 0
                          recent_transactions_3h:
                            type: integer
                            default: 0
                          is_paid_user:
                            type: boolean
                          account_creation_date:
                            type: string
                            example: '20191005'
                  account_id:
                    type: string
                    example: 493e9374-510a-4201-9e09-de669d75f256
                  checkout_url:
                    type: string
                    example: >-
                      https://checkout.sandbox.y.uno/payment?session=2f6d9754-43d0-4dca-b023-6aba4b107179
                  payments_number:
                    type: integer
                    example: 0
                    default: 0
                  merchant_image:
                    type: string
                    example: ''
        '400':
          description: '400'
          content:
            application/json:
              examples:
                Invalid Request:
                  value:
                    code: INVALID_REQUEST
                    messages:
                      - Invalid request
                  summary: Invalid Request
              schema:
                type: object
                properties: {}
        '403':
          description: '403'
          content:
            application/json:
              examples:
                Product not enabled:
                  value:
                    code: PRODUCT_NOT_ENABLED
                    messages:
                      - >-
                        Tax collection is not enabled for this organization.
                        Please contact your Key Account Manager.
                  summary: Product not enabled
              schema:
                type: object
                properties: {}
      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.