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

# Revert operation

> The revert operation will be initiated and sent to the terminal.

<Warning>
  Operation details endpoint have to be used for polling or webhook to confirm the status change.

  There might be a case where the terminal could not process operation or the transaction was already completed before the terminal received the operation request.
</Warning>

<Note>
  Only the most recent successfully completed transaction can be reverted.
</Note>


## OpenAPI

````yaml POST /v1/pay-connect/transaction-operations/{transaction_id}/revert/
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/transaction-operations/{transaction_id}/revert/:
    post:
      description: The revert operation 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
        - name: transaction_id
          in: path
          description: ID of the transaction
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Successful operation
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/PayConnectTransactionOperationCreateResponse
        '400':
          description: Bad Request
        '401':
          description: Unauthorized
        '500':
          description: Internal Server Error
components:
  schemas:
    PayConnectTransactionOperationCreateResponse:
      required:
        - operation_id
        - transaction_id
      type: object
      properties:
        operation_id:
          description: Operation ID
          type: string
        transaction_id:
          description: Transaction ID
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````