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

# Retrieve transaction

> Retrieves a transaction by ID.



## OpenAPI

````yaml https://app.stainless.com/api/spec/documented/augustus/openapi.documented.yml get /v1/transactions/{id}
openapi: 3.1.0
info:
  title: Augustus Banking API
  description: Augustus Banking API
  version: 0.1.0
  contact:
    name: Augustus
    url: https://docs.augustus.com
    email: developer@augustus.com
servers:
  - url: https://api.augustus.com
    description: Production
  - url: https://api.sandbox.augustus.com
    description: Sandbox
security:
  - BearerAuth: []
tags: []
paths:
  /v1/transactions/{id}:
    get:
      tags:
        - Transactions
      summary: Retrieve transaction
      description: Retrieves a transaction by ID.
      operationId: TransactionsController_retrieve
      parameters:
        - name: id
          required: true
          in: path
          description: Unique identifier of the transaction.
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: The transaction resource
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TransactionResourceDto'
      x-codeSamples:
        - lang: JavaScript
          source: >-
            import Augustus from '@augustusbank/typescript-sdk';


            const client = new Augustus({
              apiKey: process.env['AUGUSTUS_API_KEY'], // This is the default and can be omitted
            });


            const transaction = await
            client.transactions.retrieve('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e');


            console.log(transaction.id);
components:
  schemas:
    TransactionResourceDto:
      type: object
      properties:
        id:
          description: Unique identifier of the transaction.
          type: string
          format: uuid
        type:
          description: Resource type discriminator.
          type: string
          enum:
            - transaction
        side:
          description: Direction of the movement relative to the merchant account.
          type: string
          enum:
            - credit
            - debit
        status:
          description: Lifecycle state of the transaction.
          type: string
          enum:
            - pending
            - completed
            - failed
        amount:
          description: Absolute amount as a string decimal (e.g. "100.50").
          type: string
        currency:
          description: ISO 4217 fiat or crypto currency code of the amount.
          type: string
          enum:
            - EUR
            - GBP
            - USD
            - USDC
            - BTC
            - ETH
            - SOL
            - POL
        account_id:
          description: ID of the merchant account this transaction settled on.
          type: string
          format: uuid
        product:
          description: >-
            The product that caused this transaction, or null when no product is
            linked.
          type: object
          properties:
            type:
              description: Type of the product that caused this transaction.
              type: string
              enum:
                - deposit
                - deposit_return
                - refund
                - payout
            id:
              description: Identifier of the product resource that caused this transaction.
              type: string
          required:
            - type
            - id
          nullable: true
        counterparty:
          description: Bank account or wallet of the other party, or null when not known.
          oneOf:
            - type: object
              properties:
                type:
                  description: Discriminator for IBAN financial address.
                  type: string
                  enum:
                    - iban
                iban:
                  description: International Bank Account Number.
                  type: string
                account_holder_name:
                  description: Name of the account holder.
                  type: string
                bic:
                  description: Bank Identifier Code, or null if not provided.
                  type: string
                  nullable: true
              required:
                - type
                - iban
                - account_holder_name
                - bic
            - type: object
              properties:
                type:
                  description: Discriminator for UK sort code financial address.
                  type: string
                  enum:
                    - sort_code
                sort_code:
                  description: UK sort code (6 digits).
                  type: string
                account_number:
                  description: UK account number (8 digits).
                  type: string
                account_holder_name:
                  description: Name of the account holder.
                  type: string
              required:
                - type
                - sort_code
                - account_number
                - account_holder_name
            - type: object
              properties:
                type:
                  description: Discriminator for ABA wire financial address.
                  type: string
                  enum:
                    - aba
                routing_number:
                  description: ABA routing number (9 digits).
                  type: string
                account_number:
                  description: Bank account number.
                  type: string
                account_holder_name:
                  description: Name of the account holder.
                  type: string
              required:
                - type
                - routing_number
                - account_number
                - account_holder_name
            - type: object
              properties:
                type:
                  description: Discriminator for crypto wallet financial address.
                  type: string
                  enum:
                    - crypto_wallet
                address:
                  description: Wallet address on the specified blockchain.
                  type: string
                blockchain:
                  description: Blockchain network for the crypto wallet.
                  type: string
                  enum:
                    - bitcoin
                    - ethereum
                    - solana
                    - polygon
                    - bitcoin_testnet4
                    - ethereum_sepolia
                    - solana_devnet
                    - polygon_amoy
              required:
                - type
                - address
                - blockchain
          nullable: true
        bank_statement_reference:
          description: >-
            Reference visible on the bank statement, or null when not
            applicable.
          type: string
          nullable: true
        created_at:
          description: ISO 8601 UTC timestamp when the transaction was recorded.
          type: string
          format: date-time
      required:
        - id
        - type
        - side
        - status
        - amount
        - currency
        - account_id
        - product
        - counterparty
        - bank_statement_reference
        - created_at
  securitySchemes:
    BearerAuth:
      scheme: bearer
      bearerFormat: JWT
      type: http
      description: Bearer token for authentication with Augustus Banking API

````