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

# 捕获授权（两张卡）

> 使用某张卡的交易 id，捕获双卡支付中该卡的授权。

此请求捕获通过[创建支付（两张卡）](https://docs.y.uno/zh-hans/reference/payments/create-payment-v2.md)以 `capture: false` 创建的支付中的一张卡。捕获按卡进行：请为每张卡调用一次，并使用来自 `payment_method.payment_methods[].transactions` 的该卡 `AUTHORIZE` 交易的 `id`。

第一次捕获后，支付状态为 `SUCCEEDED / PARTIALLY_CAPTURED`。两张卡均捕获后，状态为 `SUCCEEDED / CAPTURED`。响应为 `201`，支付采用 v2 结构。

> [!WARNING]
>
> 当支付处于 `REFUND_RETRY_IN_PROCESS` 或 `CANCEL_RETRY_IN_PROCESS` 状态时，捕获会被拒绝。请参阅[使用两张卡支付](https://docs.y.uno/zh-hans/docs/payment-features/pay-with-two-cards.md#operations)。

此请求需要 `X-Idempotency-Key`。详情请参阅[身份验证](https://docs.y.uno/zh-hans/reference/getting-started/authentication.md#idempotency)。


## OpenAPI

````yaml openapi/zh-hans/payments/capture-authorization-v2.json POST /payments/{payment_id}/transactions/{transaction_id}/capture
openapi: 3.1.0
info:
  title: payments-v2
  version: 2.0.0
servers:
  - url: https://api-sandbox.y.uno/v2
    description: Sandbox
  - url: https://api.y.uno/v2
    description: Production (US)
security:
  - sec0: []
    sec1: []
paths:
  /payments/{payment_id}/transactions/{transaction_id}/capture:
    post:
      summary: 捕获授权（两张卡）
      description: 捕获一张卡的授权。请对每张卡分别调用一次，并使用该卡的 `AUTHORIZE` 交易 id。
      operationId: capture-authorization-v2
      parameters:
        - name: X-Idempotency-Key
          in: header
          required: true
          description: >-
            此请求的唯一键。每个 v2 支付请求都必须提供。结果不明确时，请使用相同的键重试。缺少该键时，请求会被拒绝并返回 `400
            INVALID_PARAMETERS`："The header 'x-idempotency-key' is required."
          schema:
            type: string
            format: uuid
        - name: payment_id
          in: path
          required: true
          description: '`POST /v2/payments` 返回的支付 `id`。'
          schema:
            type: string
            format: uuid
        - name: transaction_id
          in: path
          required: true
          description: 要操作的卡交易的 `id`，来自 `payment_method.payment_methods[].transactions[]`。
          schema:
            type: string
            format: uuid
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
                - merchant_reference
                - reason
              properties:
                merchant_reference:
                  type: string
                  description: 由商户定义的支付交易标识（MAX 255；MIN 3）
                amount:
                  type: object
                  description: 可选。在该卡上捕获的金额。如果省略，则捕获该卡的全部已授权金额。
                  required:
                    - currency
                    - value
                  properties:
                    currency:
                      type: string
                      description: ISO 4217 货币代码（3 个字符）。
                      example: BRL
                    value:
                      type: number
                      description: 以主单位表示的金额（0.0001 的倍数）。
                      example: 300
                reason:
                  type: string
                  description: >-
                    操作原因。可能的值为 `DUPLICATE`、`FRAUDULENT` 和
                    `REQUESTED_BY_CUSTOMER`。
                  enum:
                    - DUPLICATE
                    - FRAUDULENT
                    - REQUESTED_BY_CUSTOMER
                additional_data:
                  type: object
                  description: 用于补充支付捕获的附加数据
                  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 3）。
                              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: >-
                                  商品类别。请查看[商品类别参考](/zh-hans/reference/items-category-list)。
                                enum:
                                  - art
                                  - baby
                                  - coupons
                                  - beauty_&_personal_care
                                  - donations
                                  - computing
                                  - books
                                  - grocery_&_gourmet_food
                                  - cameras
                                  - video_games
                                  - television
                                  - car_electronics
                                  - electronics
                                  - automotive
                                  - toys_&_games
                                  - musical_instruments
                                  - handmade
                                  - garden_&_outdoor
                                  - entertainment
                                  - industrial_&_scientific
                                  - fashion
                                  - games
                                  - pet_supplies
                                  - home
                                  - musical
                                  - phones
                                  - services
                                  - learnings
                                  - tickets
                                  - travels
                                  - virtual_goods
                                  - others
                              brand:
                                type: string
                                description: 商品品牌（MAX 255；MIN 3）。
                              sku_code:
                                type: string
                                description: 商品的库存单位（SKU）（MAX 255；MIN 3）。
                              manufacture_part_number:
                                type: string
                                description: 商品的制造商零件编号
                            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](https://en.wikipedia.org/wiki/ISO_8601)，MAX
                                  27；MIN 27）。
                                format: date-time
                              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 1；MIN
                                  1）。值可以是一个字母（A-Z），但可能因航空公司的定义而异。请查看[航空公司信息参考](/zh-hans/reference/airline-information#fare-class-code)。
                                enum:
                                  - F
                                  - FR
                                  - B
                                  - CR
                                  - 'Y'
                                  - YD
                              base_fare:
                                type: number
                                description: 交易金额，不含税费和手续费，以货币的最小单位表示（multipleOf 0.0001）。
                                format: float
                              base_fare_currency:
                                type: string
                                description: >-
                                  交易金额所用的货币（MAX 3；MIN 3；[ISO
                                  4217](country-reference)）。
                              stopover_code:
                                type: string
                                description: >-
                                  1
                                  个字母的代码，指示乘客是否可以中途停留。仅允许两种字符：O：允许中途停留（字母“O”，不是数字零）/
                                  X：不允许中途停留。（MAX 1；MIN 1）
                            required:
                              - departure_airport
                              - departure_datetime
                              - departure_airport_timezone
                              - arrival_airport
                              - carrier_code
                              - flight_number
                              - fare_basis_code
                              - fare_class_code
                            type: object
                        passengers:
                          type: array
                          description: 指定与机票关联的乘客对象数组。
                          items:
                            properties:
                              first_name:
                                type: string
                                description: 旅客的名字（MAX 255；MIN 3）。
                              last_name:
                                type: string
                                description: 乘客的姓（MAX 255；MIN 3）
                              middle_name:
                                type: string
                                description: 旅客的中间名（MAX 255；MIN 3）。
                              type:
                                type: string
                                description: >-
                                  旅客类型（MAX 1；MIN
                                  1）。请查看[航空公司信息参考](/zh-hans/reference/airline-information#passenger-type)。
                                enum:
                                  - A
                                  - C
                                  - I
                              date_of_birth:
                                type: string
                                description: 旅客的出生日期，格式为 YYYY-MM-DD（MAX 10；MIN 10）。
                                format: date
                              nationality:
                                type: string
                                description: >-
                                  旅客的国籍（MAX 2；MIN 2；[ISO
                                  3166-1](country-reference)）。
                                enum:
                                  - AR
                                  - BO
                                  - BR
                                  - CL
                                  - CO
                                  - CR
                                  - EC
                                  - SV
                                  - GT
                                  - HN
                                  - MX
                                  - NI
                                  - PA
                                  - PY
                                  - PE
                                  - US
                                  - UY
                              document:
                                type: object
                                description: 指定乘客的证件对象。
                                properties:
                                  document_number:
                                    type: string
                                    description: 旅客的证件号码（MAX 40；MIN 3）。
                                  document_type:
                                    type: string
                                    description: >-
                                      乘客的证件类型（MAX 6；MIN
                                      2；（[国家参考](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
                                      - ''
                                  country:
                                    type: string
                                    description: >-
                                      证件签发国家/地区（MAX 2；MIN 2；[ISO
                                      3166-1](country-reference)）。
                                    enum:
                                      - AR
                                      - BO
                                      - BR
                                      - CL
                                      - CO
                                      - CR
                                      - EC
                                      - SV
                                      - GT
                                      - HN
                                      - MX
                                      - NI
                                      - PA
                                      - PY
                                      - PE
                                      - US
                                      - UY
                              loyalty_number:
                                type: string
                                description: 旅客忠诚度计划的编号。
                              loyalty_tier:
                                type: string
                                description: >-
                                  旅客忠诚度计划的等级。请查看[航空公司信息参考](/zh-hans/reference/airline-information#loyalty-tier)。
                                enum:
                                  - '1'
                                  - '2'
                                  - '3'
                              phone:
                                type: object
                                description: 指定旅客的电话对象。
                            type: object
                        tickets:
                          type: array
                          description: 指定与乘客关联的机票对象数组。
                          items:
                            properties:
                              ticket_number:
                                type: string
                                description: 票号（MAX 14；MIN 1）。
                              e_ticket:
                                type: boolean
                                description: 是否为电子机票？（true）（false）。
                              restricted:
                                type: boolean
                                description: 指示机票是否可退款（true/false）
                              total_fare_amount:
                                type: number
                                description: 以货币最小单位表示的票价总额（0.0001 的倍数）。
                                format: float
                              total_tax_amount:
                                type: number
                                description: 以货币最小单位表示的税费总额（0.0001 的倍数）。
                                format: float
                              total_fee_amount:
                                type: number
                                description: 以货币最小单位表示的手续费总额（0.0001 的倍数）。
                                format: float
                              issue:
                                type: object
                                description: 指定出票对象。
                                properties:
                                  carrier_prefix_code:
                                    type: string
                                    description: >-
                                      出票或验证承运人。即 AWB 前缀（航空运单）3 位数字代码（MAX 3；MIN
                                      3）。
                                  travel_agent_code:
                                    type: string
                                    description: 出票旅行代理人的代码（MAX 9；MIN 8）。
                                  travel_agent_name:
                                    type: string
                                    description: 销售点在代理商列表中显示的名称或特许经营名称（MAX 32；MIN 1）。
                                  date:
                                    type: string
                                    description: 出票日期（MAX 27；MIN 27）。
                                    format: date-time
                                  address:
                                    type: string
                                    description: 售票代理人的地址（MAX 255；MIN 3）。
                                  city:
                                    type: string
                                    description: 售票代理人所在城市名称（MAX 255；MIN 3）。
                                  country:
                                    type: string
                                    description: >-
                                      出票所在国家的 alpha 2 代码（MAX 2；MIN 2；[ISO
                                      3166-1](country-reference)）。
                                    enum:
                                      - AR
                                      - BO
                                      - BR
                                      - CL
                                      - CO
                                      - CR
                                      - EC
                                      - SV
                                      - GT
                                      - HN
                                      - MX
                                      - NI
                                      - PA
                                      - PY
                                      - PE
                                      - US
                                      - UY
                            type: object
                    seller_details:
                      type: object
                      description: 指定卖家详细信息对象。
                      properties:
                        name:
                          type: string
                          description: 卖家的法定名称（MAX 255；MIN 3）。
                        email:
                          type: string
                          description: 卖家的 e-mail（MAX 255；MIN 3）。
                        reference:
                          type: number
                          description: 卖家的识别代码（MAX 255；MIN 3）。
                          format: float
                        website:
                          type: string
                          description: 卖家的网站 URL（MAX 255；MIN 3）。
                        industry:
                          type: string
                          description: >-
                            卖家所属行业（MAX 235；MIN
                            1）。有关详细信息，请访问[行业类别参考页面](/zh-hans/reference/industry-category-list)。
                        merchant_category_code:
                          type: string
                          description: MCC：商户类别代码（MAX 235；MIN 1）。
                        country:
                          type: string
                          description: >-
                            卖家所在国家/地区（MAX 255；MIN 3；[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
                            - ''
                        document:
                          type: object
                          description: 指定卖家的证件对象。
                          properties:
                            document_number:
                              type: string
                              description: 卖家的证件号码（MAX 40；MIN 3）。
                            document_type:
                              type: string
                              description: >-
                                卖家的证件类型（MAX 6；MIN
                                2；[证件类型列表](/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 3；MIN
                                1）。请查看[国家参考](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 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 11；MIN 4）。
      responses:
        '201':
          description: 操作后的支付，采用 v2 结构
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaymentV2'
              examples:
                One card captured:
                  value:
                    id: 7c1b6e2a-5f3d-4a8e-9b21-3e4f5a6b7c8d
                    account_id: 493e9374-510a-4201-9e09-de669d75f256
                    description: Order paid with two cards
                    country: BR
                    status: SUCCEEDED
                    sub_status: PARTIALLY_CAPTURED
                    merchant_order_id: order-10045
                    created_at: '2026-10-27T14:02:11.120Z'
                    updated_at: '2026-10-27T14:02:12.300Z'
                    split_payment_methods: true
                    payment_methods_count: 2
                    sdk_action_required: false
                    amount:
                      currency: BRL
                      value: 300
                    checkout:
                      session: null
                    payment_method:
                      capture: false
                      account_updater: false
                      payment_methods:
                        - sequence: 1
                          type: CARD
                          amount:
                            currency: BRL
                            value: 200
                          transactions:
                            - id: d2a4f6b8-1c3e-4a5b-8d7f-9e0a1b2c3d4e
                              type: AUTHORIZE
                              status: SUCCEEDED
                              category: CARD
                              amount: 200
                              provider_id: YUNO_TEST_PAYMENT_GATEWAY
                              response_code: SUCCEEDED
                              response_message: Transaction successful
                              reason: null
                              description: null
                              merchant_reference: null
                              three_d_secure_action_required: false
                              created_at: '2026-10-27T14:02:11.402Z'
                              updated_at: '2026-10-27T14:02:12.118Z'
                            - id: a5d7c9e1-4f6b-4d8e-9a0c-2b3c4d5e6f7a
                              type: CAPTURE
                              status: SUCCEEDED
                              category: CARD
                              amount: 200
                              provider_id: YUNO_TEST_PAYMENT_GATEWAY
                              response_code: SUCCEEDED
                              response_message: Transaction successful
                              reason: null
                              description: null
                              merchant_reference: null
                              three_d_secure_action_required: false
                              created_at: '2026-10-27T14:02:11.402Z'
                              updated_at: '2026-10-27T14:02:12.118Z'
                        - sequence: 2
                          type: CARD
                          amount:
                            currency: BRL
                            value: 100
                          transactions:
                            - id: e3b5a7c9-2d4f-4b6c-9e8a-0f1b2c3d4e5f
                              type: AUTHORIZE
                              status: SUCCEEDED
                              category: CARD
                              amount: 100
                              provider_id: YUNO_TEST_PAYMENT_GATEWAY
                              response_code: SUCCEEDED
                              response_message: Transaction successful
                              reason: null
                              description: null
                              merchant_reference: null
                              three_d_secure_action_required: false
                              created_at: '2026-10-27T14:02:11.402Z'
                              updated_at: '2026-10-27T14:02:12.118Z'
                    customer_payer:
                      id: cfae0941-7234-427a-a739-ef4fce966c79
                      first_name: Ana
                      last_name: Souza
                      email: ana.souza@example.com
                    workflow: DIRECT
                    callback_url: https://merchant.example.com/checkout/return
                    metadata: []
        '400':
          description: >-
            无效请求。缺少幂等键或金额超过可操作的上限时返回 `INVALID_PARAMETERS`；卡无法执行该操作时返回
            `INVALID_STATUS`，例如卡有未结拒付时退款，或支付处于 `REFUND_RETRY_IN_PROCESS` 或
            `CANCEL_RETRY_IN_PROCESS` 时捕获或取消。
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                  messages:
                    type: array
                    items:
                      type: string
              examples:
                Missing idempotency key:
                  value:
                    code: INVALID_PARAMETERS
                    messages:
                      - The header 'x-idempotency-key' is required.
        '401':
          description: 凭证无效
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                  messages:
                    type: array
                    items:
                      type: string
              example:
                code: INVALID_CREDENTIALS
                messages:
                  - Invalid credentials
components:
  schemas:
    PaymentV2:
      type: object
      description: 由两张卡共同支付的支付。
      properties:
        id:
          type: string
          format: uuid
        account_id:
          type: string
          format: uuid
        description:
          type: string
        country:
          type: string
        status:
          type: string
          description: >-
            支付的汇总状态。参见[使用两张卡支付](/zh-hans/docs/payment-features/pay-with-two-cards#statuses)。
        sub_status:
          type: string
          description: >-
            汇总子状态，例如
            `APPROVED`、`AUTHORIZED`、`PARTIALLY_CAPTURED`、`PARTIALLY_REFUNDED`、`REFUND_RETRY_IN_PROCESS`
            或 `CANCEL_RETRY_IN_PROCESS`。
        merchant_order_id:
          type: string
        merchant_reference:
          type: string
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
        split_payment_methods:
          type: boolean
          description: 由两张卡共同支付的支付为 `true`。
        payment_methods_count:
          type: integer
          description: 为该支付出资的卡数量：`2`。
        sdk_action_required:
          type: boolean
          description: 当 SDK 必须继续该支付时为 `true`，例如运行 3DS 验证。
        amount:
          type: object
          description: 支付总额。
          required:
            - currency
            - value
          properties:
            currency:
              type: string
              description: ISO 4217 货币代码（3 个字符）。
              example: BRL
            value:
              type: number
              description: 以主单位表示的金额（0.0001 的倍数）。
              example: 300
        checkout:
          type: object
          properties:
            session:
              type:
                - string
                - 'null'
        payment_method:
          type: object
          properties:
            capture:
              type: boolean
              description: 两张卡共用的捕获设置。
            account_updater:
              type:
                - boolean
                - 'null'
            payment_methods:
              type: array
              description: 每张卡一条记录。不提供单卡状态：请从各卡的 `transactions` 中读取其结果。
              minItems: 2
              maxItems: 2
              items:
                type: object
                properties:
                  sequence:
                    type: integer
                    description: 卡的位置：`1` 或 `2`。
                  type:
                    type: string
                    enum:
                      - CARD
                  amount:
                    type: object
                    description: 该卡支付的总额部分。
                    required:
                      - currency
                      - value
                    properties:
                      currency:
                        type: string
                        description: ISO 4217 货币代码（3 个字符）。
                        example: BRL
                      value:
                        type: number
                        description: 以主单位表示的金额（0.0001 的倍数）。
                        example: 300
                  payment_method_detail:
                    type: object
                    description: 卡详细信息，与 v1 支付对象一致。
                  payment_method_owner:
                    type: object
                    description: 持卡人，在请求中发送时返回。
                  transactions:
                    type: array
                    description: >-
                      该卡的交易。经过 3DS 的卡会显示 `THREE_D_SECURE`，随后是 `PURCHASE` 或
                      `AUTHORIZE`。
                    items:
                      type: object
                      description: 该卡的一笔交易。请从其交易中读取该卡的结果。
                      properties:
                        id:
                          type: string
                          format: uuid
                          description: 交易 id。用于按交易执行的操作。
                        type:
                          type: string
                          description: >-
                            交易类型，例如
                            `THREE_D_SECURE`、`PURCHASE`、`AUTHORIZE`、`CAPTURE`、`CANCEL`
                            或 `REFUND`。
                        status:
                          type: string
                          description: >-
                            该交易的状态，例如 `SUCCEEDED`、`DECLINED`、`PENDING` 或
                            `ERROR`。
                        category:
                          type: string
                          example: CARD
                        amount:
                          type: number
                          description: 该交易的金额。
                        provider_id:
                          type: string
                          description: 处理该交易的服务提供商。
                        response_code:
                          type: string
                          description: 该交易的 Yuno 响应代码。
                        response_message:
                          type: string
                        reason:
                          type:
                            - string
                            - 'null'
                        description:
                          type:
                            - string
                            - 'null'
                        merchant_reference:
                          type:
                            - string
                            - 'null'
                        three_d_secure_action_required:
                          type:
                            - boolean
                            - 'null'
                        created_at:
                          type: string
                          format: date-time
                        updated_at:
                          type:
                            - string
                            - 'null'
                          format: date-time
        customer_payer:
          type: object
          description: 付款方，与请求中发送的一致。
        additional_data:
          type:
            - object
            - 'null'
        callback_url:
          type: string
        workflow:
          type: string
          enum:
            - DIRECT
            - REDIRECT
            - SDK_CHECKOUT
        metadata:
          type: array
          items:
            type: object
  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.