# Get transaction

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /v1/transactions/{transaction_id}:
    get:
      summary: Get transaction
      deprecated: false
      description: Retrieve a single transaction and its ledger attributes by ID.
      operationId: get-transaction
      tags:
        - Vrtx Closed loop/Transactions
        - Transactions
      parameters:
        - name: transaction_id
          in: path
          description: Transaction identifier to look up.
          required: true
          example: 630a552d-97e3-4ae0-8dc9-c373ee1fd86a
          schema:
            type: string
      responses:
        '200':
          description: Transaction returned
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Transaction'
          headers: {}
          x-apidog-name: OK
        '401':
          description: Not Authorized
          content:
            application/json:
              schema: &ref_0
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                ErrorExample:
                  summary: ErrorExample
                  value:
                    error_message: You are not authorized to access this resource.
                    details:
                      - field: authorization
                        message: Valid Bearer token required
                        code: unauthorized_access
                    status_code: 401
                    error_code: UNAUTHORIZED_ACCESS
          headers: {}
          x-apidog-name: Unauthorized
        '403':
          description: Not Allowed
          content:
            application/json:
              schema: *ref_0
              examples:
                ErrorExample:
                  summary: ErrorExample
                  value:
                    error_message: Forbidden
                    details:
                      - field: authorization
                        message: Insufficient permissions to access this resource
                        code: forbidden
                    status_code: 403
                    error_code: FORBIDDEN
          headers: {}
          x-apidog-name: Forbidden
        '404':
          description: Transaction not found
          content:
            application/json:
              schema: *ref_0
              examples:
                NotFound:
                  summary: NotFound
                  value:
                    error_code: NOT_FOUND
                    error_message: Resource not found
                    details:
                      - field: resource
                        message: The requested resource was not found
                        code: not_found
                    status_code: 404
          headers: {}
          x-apidog-name: Not Found
      security:
        - bearerAuth3: []
          x-apidog:
            schemeGroups:
              - id: ayMZ9_F9FCDmfWNN7S2HN
                schemeIds:
                  - bearerAuth3
            required: true
            use:
              id: ayMZ9_F9FCDmfWNN7S2HN
            scopes:
              ayMZ9_F9FCDmfWNN7S2HN:
                bearerAuth3: []
      x-apidog-folder: Vrtx Closed loop/Transactions
      x-apidog-status: released
      x-run-in-apidog: https://app.apidog.com/web/project/1053095/apis/api-24814173-run
components:
  schemas:
    Transaction:
      type: object
      required:
        - id
        - business_id
        - status
        - type
        - amount
        - currency
        - posted_at
        - created_at
        - effective_date
        - debit_wallet_id
        - credit_wallet_id
      description: Transaction object (v1)
      properties:
        id: &ref_1
          $ref: '#/components/schemas/UUID'
        business_id: *ref_1
        external_reference:
          type: string
          maxLength: 120
        description:
          type: string
          maxLength: 512
        status:
          type: string
        type:
          type: string
        amount:
          type: string
        amount_minor:
          type: integer
          format: int64
        currency:
          type: string
          minLength: 3
          maxLength: 3
        posted_at: &ref_2
          $ref: '#/components/schemas/OffsetDateTime'
        created_at: *ref_2
        effective_date:
          $ref: '#/components/schemas/LocalDate'
        debit_wallet_id: *ref_1
        debit_account_number:
          type: string
          maxLength: 64
        credit_wallet_id: *ref_1
        credit_account_number:
          type: string
          maxLength: 64
      x-apidog-orders:
        - id
        - business_id
        - external_reference
        - description
        - status
        - type
        - amount
        - amount_minor
        - currency
        - posted_at
        - created_at
        - effective_date
        - debit_wallet_id
        - debit_account_number
        - credit_wallet_id
        - credit_account_number
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    LocalDate:
      type: string
      format: date
      examples:
        - '2022-03-10T00:00:00.000Z'
      x-apidog-folder: ''
    OffsetDateTime:
      type: string
      format: date-time
      examples:
        - '2022-03-10T16:15:50.000Z'
      x-apidog-folder: ''
    UUID:
      type: string
      format: uuid
      pattern: >-
        [a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}
      x-apidog-folder: ''
    ErrorResponse:
      type: object
      properties:
        error_code:
          type: string
        error_message:
          type: string
        details:
          type: array
          items:
            $ref: '#/components/schemas/ErrorDetail'
        status_code:
          type: integer
          format: int32
      x-apidog-orders:
        - error_code
        - error_message
        - details
        - status_code
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
    ErrorDetail:
      type: object
      properties:
        field:
          type: string
        message:
          type: string
        code:
          type: string
      x-apidog-orders:
        - field
        - message
        - code
      x-apidog-ignore-properties: []
      x-apidog-folder: ''
  securitySchemes:
    bearerAuth:
      type: jwt
      scheme: bearer
      bearerFormat: JWT
      description: Enter your JWT access token for authentication
    bearerAuth1:
      type: jwt
      scheme: bearer
      bearerFormat: JWT
    bearerAuth2:
      type: jwt
      scheme: bearer
      bearerFormat: JWT
      description: Enter your JWT access token for authentication
    bearerAuth3:
      type: jwt
      scheme: bearer
      bearerFormat: JWT
      description: >-
        JWT issued by Keycloak. The client_id/azp in the token must map to a
        configured tenant (public, fai, neomrs; e.g., fai-sandbox -> fai) or
        requests will return 403.
    bearerAuth4:
      type: jwt
      scheme: bearer
      bearerFormat: JWT
      description: Enter your JWT access token for authentication
    bearer:
      type: http
      scheme: bearer
servers:
  - url: https://api.sandbox.vrtx.sa
    description: Sandbox
security:
  - bearer: []

```
