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

# Capture Pre-Authorization

> Charges the customer for the currently authorized amount on an existing preauthorization. Converts the preauth into a completed transaction. Fires a preauth.charge webhook on success.



## OpenAPI

````yaml post /preauth/capture
openapi: 3.0.3
info:
  title: Fractal
  version: 1.0.0
  contact: {}
servers:
  - url: https://testapi.fractalpay.com/api/v1
    description: Sandbox
  - url: https://api.fractalpay.com/api/v1
    description: Production
security: []
tags:
  - name: Merchant Onboarding
  - name: Payment Collection Methods
  - name: Requests
  - name: Preauthorizations
  - name: Customers
  - name: Charging Customer
  - name: Transactions
paths:
  /preauth/capture:
    post:
      tags:
        - Preauthorizations
      summary: Capture Pre-Authorization
      description: >-
        Charges the customer for the currently authorized amount on an existing
        preauthorization. Converts the preauth into a completed transaction.
        Fires a preauth.charge webhook on success.
      operationId: capturePreAuthorization
      requestBody:
        content:
          application/json:
            schema:
              type: object
              required:
                - merchant_key
                - transaction_id
              properties:
                merchant_key:
                  type: string
                  description: The merchant's unique API key.
                  example: '{{merchant_key}}'
                transaction_id:
                  type: string
                  description: >-
                    The guid of the preauthorization to capture. Always use the
                    original preauthorization transaction ID — not the ID
                    returned by a previous update.
                  example: txn_f84144f73a
            examples:
              Capture Pre-Authorization:
                value:
                  merchant_key: '{{merchant_key}}'
                  transaction_id: txn_f84144f73a
      responses:
        '200':
          description: Capture successful
          content:
            application/json:
              schema:
                type: object
                properties:
                  result:
                    type: boolean
                    example: true
                  message:
                    type: string
                    example: Payment captured successfully.
                  data:
                    type: object
                    properties:
                      Status:
                        type: string
                        description: Gateway approval status.
                        example: Approved
                      Account:
                        type: string
                        description: Last four digits of the card.
                        example: '0043'
                      Brand:
                        type: string
                        description: Card brand.
                        example: Visa
                      AuthCode:
                        type: string
                        description: Authorization code from the gateway.
                        example: ''
                      amount:
                        type: string
                        description: Captured amount.
                        example: '11.00'
                      Authorized:
                        type: number
                        description: Authorized amount.
                        example: 11
                      orderid:
                        type: string
                        description: The associated order ID.
                        example: '5467'
                      transaction_id:
                        type: string
                        description: The resulting completed transaction ID.
                        example: txn_77c9a625a3
                      net_amount:
                        type: number
                        description: Amount after fees.
                        example: 10.64
              examples:
                Capture Pre-Authorization:
                  value:
                    result: true
                    message: Payment captured successfully.
                    data:
                      Status: Approved
                      Account: '0043'
                      Brand: Visa
                      AuthCode: ''
                      amount: '11.00'
                      Authorized: 11
                      orderid: '5467'
                      transaction_id: txn_77c9a625a3
                      net_amount: 10.64
        '400':
          description: Capture failed
          content:
            application/json:
              schema:
                type: object
                properties:
                  result:
                    type: boolean
                    example: false
                  message:
                    type: string
              examples:
                Not found:
                  value:
                    result: false
                    message: Authorization not found
      security:
        - basicAuth: []
components:
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic
      description: |-
        Use your Fractal API credentials.

        Username = Client ID
        Password = Secret Key

        Sandbox credentials can be generated from the Test Portal.

````