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

# Get transaction

> Retrieve the details of an transaction.



## OpenAPI

````yaml get /v1/transaction/{id}
openapi: 3.0.0
info:
  title: ibana public api
  description: Public API for ibana
  version: 1.0.0
  contact:
    name: ibana
    url: https://ibana.io
    email: dev@ibana.io
servers:
  - url: http://localhost:3001
security: []
tags: []
paths:
  /v1/transaction/{id}:
    get:
      tags:
        - Transaction
      summary: Get transaction
      description: Retrieve the details of an transaction.
      operationId: TransactionController_getTransactionDetail_v1
      parameters:
        - name: id
          required: true
          in: path
          description: Transaction ID
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TransactionResponseDto'
      security:
        - bearer: []
components:
  schemas:
    TransactionResponseDto:
      type: object
      properties:
        id:
          type: string
          description: The unique identifier of the entity.
        createdAt:
          format: date-time
          type: string
          description: The date and time the entity was created.
        updatedAt:
          format: date-time
          type: string
          description: The date and time the entity was last updated.
        amount:
          type: number
          description: The amount of the transaction.
        remittanceInformation:
          type: string
          description: The remittance information of the transaction.
        requestedExecutionDate:
          format: date-time
          type: string
          description: The requested execution date of the transaction.
        skontoAmount:
          type: number
          description: The amount of the skonto.
        skontoDate:
          format: date-time
          type: string
          description: The date of the skonto.
        ignoreSkontoDeadline:
          type: boolean
          description: Determines if the skonto deadline should be ignored.
        express:
          type: boolean
          description: >-
            Determines if the transaction should be processed as an instant or
            urgent payment.
        currency:
          type: string
          nullable: false
          enum:
            - EUR
            - USD
            - GBP
            - JPY
            - AUD
            - CAD
            - CHF
            - CNY
            - HKD
            - NZD
            - SEK
            - KRW
            - SGD
            - NOK
            - MXN
            - INR
            - BRL
            - RUB
            - ZAR
            - TRY
            - AED
            - THB
            - DKK
            - HUF
            - PLN
            - TWD
            - SAR
            - MYR
            - IDR
          description: The currency of the transaction.
        creditor:
          description: The creditor of the transaction.
          allOf:
            - $ref: '#/components/schemas/BankAccountResponseDto'
        debitor:
          description: The debitor of the transaction.
          allOf:
            - $ref: '#/components/schemas/BankAccountResponseDto'
        analysis:
          description: The analysis of the transaction.
          allOf:
            - $ref: '#/components/schemas/AnalysisResponseDto'
        archived:
          type: boolean
          description: Determines if the transaction has been archived.
        archivedDate:
          format: date-time
          type: string
          description: The date and time the transaction was archived.
        archivedByUser:
          description: The user that archived the transaction.
          allOf:
            - $ref: '#/components/schemas/UserResponseDto'
        paymentRun:
          description: The payment run the transaction is assigned to
          allOf:
            - $ref: '#/components/schemas/PaymentRunResponseDto'
        counterparty:
          description: The counterparty of the transaction.
          allOf:
            - $ref: '#/components/schemas/CounterpartyResponseDto'
        invoice:
          description: The invoice associated with the transaction.
          allOf:
            - $ref: '#/components/schemas/TransactionInvoiceInfoDto'
    BankAccountResponseDto:
      type: object
      properties:
        id:
          type: string
          description: The unique identifier of the entity.
        createdAt:
          format: date-time
          type: string
          description: The date and time the entity was created.
        updatedAt:
          format: date-time
          type: string
          description: The date and time the entity was last updated.
        name:
          type: string
          description: The name of the bank account holder.
        iban:
          type: string
          description: The IBAN of the bank account.
        bic:
          type: string
          description: The BIC of the bank account.
        countryCode:
          type: string
          description: The country code of the bank account.
        address:
          type: string
          description: The address of the bank account holder.
      required:
        - name
        - iban
        - bic
        - countryCode
        - address
    AnalysisResponseDto:
      type: object
      properties:
        id:
          type: string
          description: The unique identifier of the entity.
        createdAt:
          format: date-time
          type: string
          description: The date and time the entity was created.
        updatedAt:
          format: date-time
          type: string
          description: The date and time the entity was last updated.
        analysisRules:
          description: The analysis rules of the transaction.
          allOf:
            - $ref: '#/components/schemas/AnalysisRuleResponseDto'
      required:
        - analysisRules
    UserResponseDto:
      type: object
      properties:
        id:
          type: string
          description: The unique identifier of the entity.
        createdAt:
          format: date-time
          type: string
          description: The date and time the entity was created.
        updatedAt:
          format: date-time
          type: string
          description: The date and time the entity was last updated.
        email:
          type: string
          description: The email of the user.
        name:
          type: string
          description: The name of the user.
        authId:
          type: string
          description: The workOs authentication id of the user.
        role:
          type: string
          description: The role the user has in the organization.
        hasPushNotification:
          type: boolean
          description: >-
            A boolean that determines if the user has push notifications
            enabled.
        featureFlags:
          type: array
          description: The feature flags available to the user.
          items:
            type: string
            enum:
              - invoice
              - ar-invoice
              - transaction
              - candis
              - bank-transaction
              - webhook
              - procurement
              - ai-search
              - insights
              - payment-cards
              - in-case-of-law
        organization:
          description: The active organization the user is in.
          allOf:
            - $ref: '#/components/schemas/OrganizationResponseDto'
      required:
        - email
        - name
        - authId
        - role
        - hasPushNotification
        - organization
    PaymentRunResponseDto:
      type: object
      properties:
        id:
          type: string
          description: Id of the payment run
        createdAt:
          format: date-time
          type: string
          description: Creation date of the payment run
        createdById:
          type: string
          description: Id of the user who created the payment run
        createdByName:
          type: string
          description: Name of the user who created the payment run
        organizationId:
          type: string
          description: Id of the orgnaization
        sumAmount:
          type: number
          description: Total amount of all transactions in the payment run
        sumAmountWithSkonto:
          type: number
          description: Total amount of all transactions in the payment run with skonto
        sumBookedAmount:
          type: number
          description: >-
            Total amount of all transactions in the payment run at the time of
            booking
        transactionCount:
          type: number
          description: Count of transactions in the payment run
        batchBooking:
          type: boolean
          description: >-
            Override setting for whether this payment run should be exported as
            batch booking. If null, uses the organization default.
      required:
        - id
        - createdAt
        - createdById
        - createdByName
        - organizationId
        - sumAmount
        - sumAmountWithSkonto
        - sumBookedAmount
        - transactionCount
    CounterpartyResponseDto:
      type: object
      properties:
        id:
          type: string
          description: The unique identifier of the entity.
        createdAt:
          format: date-time
          type: string
          description: The date and time the entity was created.
        updatedAt:
          format: date-time
          type: string
          description: The date and time the entity was last updated.
        email:
          type: string
          description: The email of the counterparty.
        name:
          type: string
          description: The name of the counterparty.
        description:
          type: string
          description: The description of the counterparty.
        vat:
          type: string
          description: The EU VAT number of the counterparty.
        accountsPayableNumber:
          type: string
          example: 22 0391919
          description: Accounts payable number of the counterparty. Used in bookkeeping.
        accountsPayableMode:
          type: string
          enum:
            - AUTO
            - MANUAL
            - NONE
          description: How accounts payable number is managed for this counterparty.
        street:
          type: string
          description: Street name and number of the counterparty.
        city:
          type: string
          description: City of the counterparty.
        zip:
          type: string
          description: ZIP or postal code of the counterparty.
        country:
          type: string
          description: Country of the counterparty using ISO 3166-1 alpha-2 code.
        paymentTermsDays:
          type: number
          description: Payment term in days
        skontoPercentage:
          type: number
          description: Early payment discount percentage
        skontoDays:
          type: number
          description: Days for early payment discount
        organization:
          description: The organization of the counterparty.
          allOf:
            - $ref: '#/components/schemas/OrganizationResponseDto'
        bankAccount:
          description: The bank account of the counterparty.
          allOf:
            - $ref: '#/components/schemas/BankAccountResponseDto'
        transactions:
          description: The transactions of the counterparty.
          allOf:
            - $ref: '#/components/schemas/TransactionResponseDto'
        cardBookingPreference:
          type: string
          enum:
            - INVOICE_COUNTERPARTY
            - ORG_CARD_COMMON
          description: >-
            Default booking preference for card-paid invoices of this
            counterparty.
        apBalance:
          description: Derived AP balance for this counterparty.
          allOf:
            - $ref: '#/components/schemas/CounterpartyApBalanceResponseDto'
      required:
        - email
        - name
        - description
        - vat
        - accountsPayableNumber
        - accountsPayableMode
        - street
        - city
        - zip
        - country
        - paymentTermsDays
        - skontoPercentage
        - skontoDays
        - organization
        - bankAccount
        - transactions
        - cardBookingPreference
    TransactionInvoiceInfoDto:
      type: object
      properties:
        id:
          type: string
          description: The id of the invoice.
        invoiceNumber:
          type: string
          description: The invoice number.
        status:
          type: string
          description: The status of the invoice.
        totalAmount:
          type: number
          description: The total amount of the invoice.
        dueDate:
          format: date-time
          type: string
          description: The due date of the invoice.
        invoiceDate:
          format: date-time
          type: string
          description: The date of the invoice.
        currency:
          type: string
          description: The currency of the invoice.
      required:
        - id
        - invoiceNumber
        - status
        - totalAmount
        - dueDate
        - invoiceDate
        - currency
    AnalysisRuleResponseDto:
      type: object
      properties:
        id:
          type: string
          description: The unique identifier of the entity.
        createdAt:
          format: date-time
          type: string
          description: The date and time the entity was created.
        updatedAt:
          format: date-time
          type: string
          description: The date and time the entity was last updated.
        type:
          type: string
          enum:
            - AMOUNT_DEVIATION
            - AMOUNT_DEVIATION_SAME_IBAN
            - AMOUNT_DEVIATION_SAME_COUNTRY
            - SAME_IBAN_DIFFERENT_NAME
            - SAME_NAME_DIFFERENT_IBAN
            - NEW_BANK_ACCOUNT
            - DUPLICATE_INVOICE
            - PAYMENT_REMINDER
          description: The type of the analysis rule.
        severity:
          type: string
          enum:
            - NORMAL
            - INFO
            - WARNING
            - SUSPICIOUS
          description: The severity of the analysis rule.
        markedOk:
          type: boolean
          description: Determines if the transaction was marked as ok by a user.
        markedOkReason:
          type: string
          description: The reason why the transaction was marked as ok.
        markedOkDate:
          format: date-time
          type: string
          description: The date and time the transaction was marked as ok.
        value:
          type: string
          description: 'The value of the analysis rule. '
        markedOkUser:
          description: The user that marked the transaction as ok.
          allOf:
            - $ref: '#/components/schemas/UserResponseDto'
      required:
        - type
        - severity
        - markedOk
        - markedOkReason
        - markedOkDate
        - value
        - markedOkUser
    OrganizationResponseDto:
      type: object
      properties:
        id:
          type: string
          description: The unique identifier of the entity.
        createdAt:
          format: date-time
          type: string
          description: The date and time the entity was created.
        updatedAt:
          format: date-time
          type: string
          description: The date and time the entity was last updated.
        name:
          type: string
          description: The name of the organization.
        slug:
          type: string
          description: The slug of the organization.
        inCaseOfLawCustomerId:
          type: string
          description: >-
            The In case of law customer ID for this organization, if already
            connected.
          nullable: true
        logoFileName:
          type: string
          description: The logo file name.
        country:
          type: string
          description: The country of the organization using ISO 3166-1 alpha-2 code
        vatNumber:
          type: string
          description: The VAT number of the organization
        featureFlags:
          description: The feature flags associated with the organization.
          type: array
          items:
            $ref: '#/components/schemas/FeatureFlagResponseDto'
        baseCurrency:
          type: string
          description: The base currency of the organization
          enum:
            - EUR
            - USD
            - GBP
            - JPY
            - AUD
            - CAD
            - CHF
            - CNY
            - HKD
            - NZD
            - SEK
            - KRW
            - SGD
            - NOK
            - MXN
            - INR
            - BRL
            - RUB
            - ZAR
            - TRY
            - AED
            - THB
            - DKK
            - HUF
            - PLN
            - TWD
            - SAR
            - MYR
            - IDR
          default: EUR
        paymentRunBatchBooking:
          type: boolean
          description: >-
            Default setting for whether payment runs should be exported as batch
            booking or single bookings.
        paymentRunVerificationOfPayee:
          type: boolean
          description: >-
            Default setting for whether the bank should perform verification of
            payee (IBAN-Name check) for payment runs.
        invoiceExportIncludeForeignCurrencies:
          type: boolean
          description: >-
            When true, invoice exports include original currency/amounts; when
            false, exports use EUR only (foreign amounts converted).
        allowDirectInvoiceApproval:
          type: boolean
          description: >-
            Whether direct approval is allowed for invoice approval workflows in
            this organization.
        allowDirectPaymentRunApproval:
          type: boolean
          description: >-
            Whether direct approval is allowed for payment run approval
            workflows in this organization.
        cardCommonBookingTargetName:
          type: string
          description: >-
            Configured shared card booking target display name used for card
            bookkeeping export.
          nullable: true
        cardCommonBookingTargetAccountsPayableNumber:
          type: string
          description: >-
            Configured shared card booking target accounts payable number used
            for card bookkeeping export.
          nullable: true
        cardFxDifferenceLedgerAccount:
          type: string
          description: >-
            Configured ledger account used for FX difference lines in card
            bookkeeping export.
          nullable: true
        customExportFormats:
          description: Custom export formats enabled for this organization
          example:
            - custom_experta
          type: array
          items:
            type: string
        autoPopulateCustomerEmailFromMetadata:
          type: boolean
          description: >-
            Determines if the organization automatically populates customer
            email addresses from email metadata for AR invoices.
        autoPopulateSupplierEmailFromMetadata:
          type: boolean
          description: >-
            Determines if the organization automatically populates supplier
            email addresses from email metadata for AP invoices.
        excludedEmailDomains:
          type: string
          description: >-
            Comma-separated list of email domains that should be excluded from
            auto-population.
      required:
        - name
        - slug
        - logoFileName
        - country
        - vatNumber
        - featureFlags
        - baseCurrency
        - paymentRunBatchBooking
        - paymentRunVerificationOfPayee
        - invoiceExportIncludeForeignCurrencies
        - allowDirectInvoiceApproval
        - allowDirectPaymentRunApproval
        - customExportFormats
        - autoPopulateCustomerEmailFromMetadata
        - autoPopulateSupplierEmailFromMetadata
        - excludedEmailDomains
    CounterpartyApBalanceResponseDto:
      type: object
      properties:
        openInvoiceAmount:
          type: number
        approvedOpenCreditNoteAmount:
          type: number
        manualCreditAmount:
          type: number
        totalAvailableCredit:
          type: number
        netPayableAmount:
          type: number
        remainingCreditBalance:
          type: number
        scheduledBankTransferAmount:
          type: number
        remainingToScheduleAmount:
          type: number
        unapprovedCreditNoteAmount:
          type: number
        appliedInvoiceCreditAmount:
          type: number
        balancesByCurrency:
          type: array
          items:
            $ref: '#/components/schemas/CounterpartyApBalanceCurrencyResponseDto'
      required:
        - openInvoiceAmount
        - approvedOpenCreditNoteAmount
        - manualCreditAmount
        - totalAvailableCredit
        - netPayableAmount
        - remainingCreditBalance
        - scheduledBankTransferAmount
        - remainingToScheduleAmount
        - unapprovedCreditNoteAmount
        - appliedInvoiceCreditAmount
    FeatureFlagResponseDto:
      type: object
      properties:
        id:
          type: string
          description: The unique identifier of the entity.
        createdAt:
          format: date-time
          type: string
          description: The date and time the entity was created.
        updatedAt:
          format: date-time
          type: string
          description: The date and time the entity was last updated.
        featureName:
          type: string
          description: The name of the feature.
        isEnabled:
          type: boolean
          description: A boolean that indicates if the feature is enabled.
      required:
        - featureName
        - isEnabled
    CounterpartyApBalanceCurrencyResponseDto:
      type: object
      properties:
        currency:
          type: string
          enum:
            - EUR
            - USD
            - GBP
            - JPY
            - AUD
            - CAD
            - CHF
            - CNY
            - HKD
            - NZD
            - SEK
            - KRW
            - SGD
            - NOK
            - MXN
            - INR
            - BRL
            - RUB
            - ZAR
            - TRY
            - AED
            - THB
            - DKK
            - HUF
            - PLN
            - TWD
            - SAR
            - MYR
            - IDR
        approvedOpenCreditNoteAmount:
          type: number
        manualCreditAmount:
          type: number
        totalAvailableCredit:
          type: number
        appliedInvoiceCreditAmount:
          type: number
        remainingCreditBalance:
          type: number
      required:
        - currency
        - approvedOpenCreditNoteAmount
        - manualCreditAmount
        - totalAvailableCredit
        - appliedInvoiceCreditAmount
        - remainingCreditBalance
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      type: http

````