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

# Independent refund transaction

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

<Note>
  Refunds are issued independently and are not tied to any transaction, whether completed or otherwise, and may cover the full amount or a partial sum.
</Note>


## OpenAPI

````yaml POST /v1/pay-connect/transactions/refund/
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/refund/:
    post:
      description: >-
        A independent refund 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/PayConnectTransactionIndependentRefundBody'
        required: true
      responses:
        '200':
          description: Successful operation
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/PayConnectTransactionIndependentRefundResponse
        '400':
          description: Bad Request
        '401':
          description: Unauthorized
        '500':
          description: Internal Server Error
components:
  schemas:
    PayConnectTransactionIndependentRefundBody:
      required:
        - amount
      type: object
      properties:
        client_transaction_id:
          description: The reference of client transaction
          type: string
        amount:
          description: The amount of the refund payment, in cents
          type: integer
    PayConnectTransactionIndependentRefundResponse:
      required:
        - transaction_id
      type: object
      properties:
        transaction_id:
          description: Transaction ID
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````