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

# Get a Transaction



## OpenAPI

````yaml https://cdn.ecrypt.dev/swagger/gateway-swagger-v25.json get /v1/transactions/{id}
openapi: 3.0.4
info:
  title: Ecrypt.Gateway.Api
  description: Ecrypt API
  contact:
    name: Ecrypt
    url: https://www.ecrypt.com/
    email: Engineering@Ecrypt.com
  version: 1.0.0.0
servers: []
security: []
paths:
  /v1/transactions/{id}:
    get:
      tags:
        - Transactions
      summary: Get a Transaction
      parameters:
        - name: id
          in: path
          description: ''
          required: true
          schema:
            type: integer
            format: int64
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/Ecrypt.Gateway.Api.Core.Model.WebAPI.Transactions.TransactionDto
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Ecrypt.Gateway.Api.Core.Model.BadRequest'
        '404':
          description: Not Found
        '429':
          description: Too Many Requests
components:
  schemas:
    Ecrypt.Gateway.Api.Core.Model.WebAPI.Transactions.TransactionDto:
      type: object
      properties:
        transaction_id:
          type: integer
          format: int64
        type:
          type: string
          nullable: true
        tender:
          type: string
          nullable: true
        payment_name:
          type: string
          nullable: true
        payment_network:
          type: string
          nullable: true
        payment_account:
          type: string
          nullable: true
        payment_account_expiry:
          type: string
          nullable: true
        amount:
          type: number
          format: double
        authorization_amount:
          type: number
          format: double
          nullable: true
        captured_amount:
          type: number
          format: double
          nullable: true
        gratuity_amount:
          type: number
          format: double
          nullable: true
        surcharge_amount:
          type: number
          format: double
          nullable: true
        settlement_amount:
          type: number
          format: double
          nullable: true
        voided_amount:
          type: number
          format: double
          nullable: true
        reference_transaction_id:
          type: number
          format: double
          nullable: true
        approval_code:
          type: string
          nullable: true
        avs_code:
          type: string
          nullable: true
        cvv_code:
          type: string
          nullable: true
        enhanced:
          type: boolean
          nullable: true
        status:
          type: string
          nullable: true
        created:
          type: string
          description: Create date time represented in UTC.
          format: date-time
        events:
          type: array
          items:
            $ref: >-
              #/components/schemas/Ecrypt.Gateway.Api.Core.Model.WebAPI.Transactions.TransactionEventDto
          nullable: true
      additionalProperties: false
    Ecrypt.Gateway.Api.Core.Model.BadRequest:
      required:
        - requestId
      type: object
      properties:
        errors:
          type: array
          items:
            $ref: '#/components/schemas/Ecrypt.Gateway.Api.Core.Model.BadRequestError'
          nullable: true
        request_id:
          maxLength: 100
          minLength: 1
          type: string
          default: '000000000000000000000'
      additionalProperties: false
    Ecrypt.Gateway.Api.Core.Model.WebAPI.Transactions.TransactionEventDto:
      type: object
      properties:
        type:
          type: string
          nullable: true
        code:
          type: string
          nullable: true
        text:
          type: string
          nullable: true
        created:
          type: string
          format: date-time
      additionalProperties: false
    Ecrypt.Gateway.Api.Core.Model.BadRequestError:
      type: object
      properties:
        type:
          type: string
          nullable: true
        message:
          nullable: true
      additionalProperties: false

````