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

# Preauthorization transaction

> A transaction will be initiated and sent to the terminal.



## OpenAPI

````yaml POST /v1/pay-connect/transactions/preauth/
openapi: 3.1.0
info:
  title: Pay-Connect API
  description: >-
    Pay-Connect is a unified payment integration platform that enables reliable
    communication between software applications and payment terminals. With a
    single integration, developers can manage terminals, execute payment
    operations, and retrieve transaction data consistently across hardware and
    platforms.
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://api-payment.lab4pay.com
  - url: https://api-payment.lab4pay.dev
security:
  - bearerAuth: []
paths:
  /v1/pay-connect/transactions/preauth/:
    post:
      description: A transaction will be initiated and sent to the terminal.
      parameters:
        - name: X-Pay-Connect-Integrator-Id
          in: header
          description: Pay-Connect Integrator ID
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PayConnectTransactionPreauthBody'
        required: true
      responses:
        '200':
          description: Successful operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PayConnectTransactionPreauthResponse'
        '400':
          description: Bad Request
        '401':
          description: Unauthorized
        '500':
          description: Internal Server Error
components:
  schemas:
    PayConnectTransactionPreauthBody:
      required:
        - amount
      type: object
      properties:
        client_transaction_id:
          description: The reference of client transaction
          type: string
        amount:
          description: The amount of the payment, in cents
          type: integer
    PayConnectTransactionPreauthResponse:
      required:
        - transaction_id
      type: object
      properties:
        transaction_id:
          description: Transaction ID
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````