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

# Get a transaction validation record by ID

> Use this endpoint to retrieve a transaction validation record by its unique identifier. Useful for auditing and debugging validation decisions.



## OpenAPI

````yaml /en/openapi/v3-current/tracer.yaml get /v1/validations/{id}
openapi: 3.1.0
info:
  title: Midaz Tracer API
  description: >-
    Reference for Midaz Tracer transaction validation, fraud rules, spending
    limits, reservations, and audit events.
  version: 4.0.0
servers:
  - url: https://tracer.sandbox.lerian.net
security: []
tags:
  - name: Validations API
  - name: Rules API
  - name: Limits API
  - name: Reservations API
  - name: Audit Events API
paths:
  /v1/validations/{id}:
    get:
      tags:
        - Validations API
      summary: Get a transaction validation record by ID
      description: >-
        Use this endpoint to retrieve a transaction validation record by its
        unique identifier. Useful for auditing and debugging validation
        decisions.
      operationId: getValidation
      parameters:
        - description: Transaction Validation ID (UUID)
          in: path
          name: id
          required: true
          schema:
            description: Transaction Validation ID (UUID)
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TransactionValidation'
          description: OK
        default:
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Error'
          description: Error
      security:
        - BearerAuth: []
        - ApiKeyAuth: []
components:
  schemas:
    TransactionValidation:
      additionalProperties: false
      properties:
        account:
          $ref: '#/components/schemas/AccountContext'
        amount:
          examples:
            - '100.00'
          type: string
        asset:
          examples:
            - USD
          type: string
        createdAt:
          examples:
            - '2021-01-01T00:00:00Z'
          format: date-time
          type: string
        decision:
          examples:
            - ALLOW
          type: string
        evaluatedRuleIds:
          items:
            format: uuid
            type: string
          type:
            - array
            - 'null'
        limitUsageDetails:
          items:
            $ref: '#/components/schemas/LimitUsageDetail'
          type:
            - array
            - 'null'
        matchedRuleIds:
          items:
            format: uuid
            type: string
          type:
            - array
            - 'null'
        merchant:
          $ref: '#/components/schemas/MerchantContext'
        metadata:
          additionalProperties: {}
          type: object
        portfolio:
          $ref: '#/components/schemas/PortfolioContext'
        processingTimeMs:
          examples:
            - 12.5
          format: double
          type: number
        reason:
          examples:
            - >-
              Transaction denied by rule 'Block high-value checking
              transactions'
          type: string
        requestId:
          examples:
            - 00000000-0000-0000-0000-000000000000
          format: uuid
          type: string
        segment:
          $ref: '#/components/schemas/SegmentContext'
        subType:
          examples:
            - purchase
          maxLength: 50
          type: string
        totalRulesLoaded:
          examples:
            - 42
          format: int64
          type: integer
        transactionTimestamp:
          examples:
            - '2021-01-01T00:00:00Z'
          format: date-time
          type: string
        transactionType:
          examples:
            - CARD
          type: string
        truncated:
          examples:
            - false
          type: boolean
        validationId:
          examples:
            - 00000000-0000-0000-0000-000000000000
          format: uuid
          type: string
      required:
        - validationId
        - requestId
        - transactionType
        - amount
        - asset
        - transactionTimestamp
        - account
        - limitUsageDetails
        - processingTimeMs
        - createdAt
        - decision
        - matchedRuleIds
        - evaluatedRuleIds
        - reason
        - totalRulesLoaded
        - truncated
      type: object
    Error:
      additionalProperties: false
      properties:
        code:
          description: >-
            Stable, machine-readable domain error code scoped to the emitting
            service (format: <SERVICE>-NNNN).
          examples:
            - ERR-0001
          type: string
        detail:
          description: >-
            A human-readable explanation specific to this occurrence of the
            problem.
          examples:
            - Property foo is required but is missing.
          type: string
        errors:
          description: Optional list of individual error details
          items:
            $ref: '#/components/schemas/ErrorDetail'
          type:
            - array
            - 'null'
        instance:
          description: >-
            A URI reference that identifies the specific occurrence of the
            problem.
          examples:
            - https://example.com/error-log/abc123
          format: uri
          type: string
        status:
          description: HTTP status code
          examples:
            - 400
          format: int64
          type: integer
        title:
          description: >-
            A short, human-readable summary of the problem type. This value
            should not change between occurrences of the error.
          examples:
            - Bad Request
          type: string
        type:
          default: about:blank
          description: A URI reference to human-readable documentation for the error.
          examples:
            - https://example.com/errors/example
          format: uri
          type: string
        upstream:
          $ref: '#/components/schemas/Upstream'
          description: >-
            RFC 9457 extension member: the error a proxied third-party provider
            reported. Absent unless the emitting service explicitly surfaced
            one.
      type: object
    AccountContext:
      additionalProperties: false
      properties:
        accountId:
          examples:
            - 00000000-0000-0000-0000-000000000000
          format: uuid
          type: string
        metadata:
          additionalProperties: {}
          type: object
        status:
          examples:
            - active
          type: string
        type:
          examples:
            - checking
          type: string
      required:
        - accountId
        - type
        - status
      type: object
    LimitUsageDetail:
      additionalProperties: false
      properties:
        attemptedAmount:
          examples:
            - '100.00'
          type: string
        currentUsage:
          examples:
            - '500.00'
          type: string
        exceeded:
          type: boolean
        limitAmount:
          examples:
            - '1000.00'
          type: string
        limitId:
          examples:
            - 00000000-0000-0000-0000-000000000000
          format: uuid
          type: string
        period:
          examples:
            - DAILY
          type: string
        scope:
          examples:
            - account:00000000-0000-0000-0000-000000000000
          type: string
        skipReason:
          examples:
            - outside_time_window
          type: string
        skipped:
          type: boolean
      required:
        - limitId
        - limitAmount
        - scope
        - period
        - currentUsage
        - attemptedAmount
        - exceeded
      type: object
    MerchantContext:
      additionalProperties: false
      properties:
        category:
          examples:
            - '5411'
          type: string
        country:
          examples:
            - US
          type: string
        merchantId:
          examples:
            - 00000000-0000-0000-0000-000000000000
          format: uuid
          type: string
        metadata:
          additionalProperties: {}
          type: object
        name:
          examples:
            - Acme Store
          type: string
      required:
        - merchantId
        - name
        - category
        - country
      type: object
    PortfolioContext:
      additionalProperties: false
      properties:
        metadata:
          additionalProperties: {}
          type: object
        name:
          examples:
            - growth
          type: string
        portfolioId:
          examples:
            - 00000000-0000-0000-0000-000000000000
          format: uuid
          type: string
      required:
        - portfolioId
      type: object
    SegmentContext:
      additionalProperties: false
      properties:
        metadata:
          additionalProperties: {}
          type: object
        name:
          examples:
            - retail
          type: string
        segmentId:
          examples:
            - 00000000-0000-0000-0000-000000000000
          format: uuid
          type: string
      required:
        - segmentId
      type: object
    ErrorDetail:
      additionalProperties: false
      properties:
        location:
          description: >-
            Where the error occurred, e.g. 'body.items[3].tags' or
            'path.thing-id'
          type: string
        message:
          description: Error message text
          type: string
        value:
          description: The value at the given location
      type: object
    Upstream:
      additionalProperties: false
      properties:
        code:
          description: The upstream provider's own error code, verbatim.
          examples:
            - E4001
          type: string
        message:
          description: >-
            The upstream provider's own error message, verbatim (bounded, never
            its raw response body).
          examples:
            - account not found at provider
          type: string
      type: object
  securitySchemes:
    BearerAuth:
      bearerFormat: JWT
      description: JWT bearer token issued by the identity provider.
      scheme: bearer
      type: http
    ApiKeyAuth:
      description: Static API key presented in the X-API-Key header.
      in: header
      name: X-API-Key
      type: apiKey

````