> ## Documentation Index
> Fetch the complete documentation index at: https://yuno-3979e326-docs-agent-readable-descriptions.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Capture Authorization

> Capture a previously authorized payment, tested against sandbox.



## OpenAPI

````yaml /openapi/yuno_sandbox_tested.json POST /v1/payments/{payment_id}/transactions/{transaction_id}/capture
openapi: 3.1.0
info:
  title: Yuno Payments API
  version: 1.0.0
  description: >
    The Yuno Payments API is built around REST principles, using standard HTTP
    methods and JSON payloads.


    ## Authentication

    All requests require two headers:

    ```

    public-api-key: YOUR_PUBLIC_KEY

    private-secret-key: YOUR_PRIVATE_KEY

    ```


    ## Idempotency

    Payment mutations (create, capture, cancel, refund, payout) require an
    `X-Idempotency-Key` header (UUID).

    The API stores the key and returns the same response for duplicate requests
    within 24 hours.


    ## Environments

    | Environment | Base URL |

    |-------------|----------|

    | Sandbox | `https://api-sandbox.y.uno/v1` |

    | Production | `https://api.y.uno/v1` |
  contact:
    name: Yuno Support
    url: https://docs.y.uno
  license:
    name: Proprietary
servers:
  - url: https://api-sandbox.y.uno
    description: Sandbox
  - url: https://api.y.uno
    description: Production
security:
  - PublicApiKey: []
    PrivateSecretKey: []
tags:
  - name: Customers
    description: Create and manage customer records.
  - name: Checkout Sessions
    description: Initialize the Yuno SDK on the front-end.
  - name: Payment Methods
    description: Enroll and manage vaulted payment methods.
  - name: Payments
    description: Create and manage payment transactions.
  - name: Payment Links
    description: Hosted payment pages requiring no SDK.
  - name: Subscriptions
    description: Recurring billing management.
  - name: Payouts
    description: Disburse funds to individuals or entities.
  - name: Reports
    description: Generate and download transaction reports.
  - name: Currency Conversion
    description: Dynamic currency conversion (DCC).
paths:
  /v1/payments/{payment_id}/transactions/{transaction_id}/capture:
    post:
      tags:
        - Payments
      summary: Capture Authorization
      description: Captures a previously authorized payment. Charges the customer.
      operationId: capture-payment
      parameters:
        - $ref: '#/components/parameters/PaymentId'
        - $ref: '#/components/parameters/TransactionId'
        - $ref: '#/components/parameters/IdempotencyKey'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CaptureRequest'
            example:
              merchant_reference: capture-001
              reason: PRODUCT_CONFIRMED
              amount:
                currency: USD
                value: 10000
      responses:
        '200':
          description: Payment captured
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Transaction'
components:
  parameters:
    PaymentId:
      name: payment_id
      in: path
      required: true
      schema:
        type: string
        format: uuid
    TransactionId:
      name: transaction_id
      in: path
      required: true
      schema:
        type: string
        format: uuid
    IdempotencyKey:
      name: X-Idempotency-Key
      in: header
      required: true
      schema:
        type: string
        format: uuid
      description: Unique UUID per request. Prevents duplicate processing on retries.
  schemas:
    CaptureRequest:
      type: object
      required:
        - merchant_reference
        - reason
        - amount
      properties:
        merchant_reference:
          type: string
          minLength: 3
          maxLength: 255
        reason:
          type: string
          enum:
            - PRODUCT_CONFIRMED
            - REQUESTED_BY_CUSTOMER
        amount:
          $ref: '#/components/schemas/Amount'
    Transaction:
      type: object
      properties:
        id:
          type: string
          format: uuid
        status:
          type: string
        type:
          type: string
          enum:
            - PURCHASE
            - CAPTURE
            - CANCEL
            - REFUND
            - VERIFY
        amount:
          $ref: '#/components/schemas/Amount'
        created_at:
          type: string
          format: date-time
    Amount:
      type: object
      required:
        - currency
        - value
      properties:
        currency:
          $ref: '#/components/schemas/Currency'
        value:
          type: number
          multipleOf: 0.0001
          description: Amount in cents (e.g. 10000 = $100.00)
    Currency:
      type: string
      minLength: 3
      maxLength: 3
      description: ISO 4217 currency code (e.g. USD, BRL, MXN)

````