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

# Get on ramp transaction



## OpenAPI

````yaml GET /v1/virtual-accounts/transactions/onramp/{transactionId}
openapi: 3.1.0
info:
  title: Virtual Accounts
  version: '2.0'
servers:
  - description: Production Environment
    url: https://api.moonpay.com
  - description: Staging Environment
    url: https://api.moonpay-staging.com
security: []
paths:
  /v1/virtual-accounts/transactions/onramp/{transactionId}:
    get:
      tags:
        - Virtual Account Transactions
      summary: Get on ramp transaction
      operationId: VirtualAccountTransactionsController.getOnRampTransaction
      parameters:
        - in: path
          name: transactionId
          required: true
          schema:
            pattern: '[^\/#\?]+?'
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PublicOnRampVirtualAccountTransaction'
          description: ''
      security:
        - ApiKeyInQueryParamsAuth: []
components:
  schemas:
    PublicOnRampVirtualAccountTransaction:
      properties:
        createdAt:
          pattern: \d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d.\d+Z?
          type: string
        destination:
          $ref: '#/components/schemas/PublicVirtualAccountCryptoWallet'
        destinationAmount:
          maxLength: 255
          minLength: 0
          type: string
        destinationCurrency:
          $ref: '#/components/schemas/PublicCryptoCurrency'
        feeBreakdown:
          $ref: '#/components/schemas/PublicOnRampTransactionFeeBreakdown'
        id:
          format: uuid
          type: string
        payoutCryptoTransaction:
          $ref: '#/components/schemas/PublicPayoutCryptoTransaction'
        source:
          $ref: '#/components/schemas/PublicBankDepositInformation'
        sourceAmount:
          maxLength: 255
          minLength: 0
          type: string
        sourceCurrency:
          $ref: '#/components/schemas/PublicFiatCurrency'
        status:
          enum:
            - FundsReviewInProgress
            - ConversionInProgress
            - PayoutInProgress
            - Completed
            - Failed
            - RejectedAml
            - RejectedFraud
            - RejectedMinAmount
          type: string
      required:
        - sourceCurrency
        - destinationCurrency
        - source
        - destination
        - feeBreakdown
        - id
        - status
        - sourceAmount
        - destinationAmount
        - createdAt
      type: object
    PublicVirtualAccountCryptoWallet:
      properties:
        network:
          $ref: '#/components/schemas/PublicVirtualAccountWalletNetwork'
        wallet:
          $ref: '#/components/schemas/PublicVirtualAccountCryptoWalletDetails'
      required:
        - wallet
      type: object
    PublicCryptoCurrency:
      properties:
        network:
          $ref: '#/components/schemas/PublicCryptoCurrencyNetwork'
        notAllowedCountries:
          items: {}
          type: array
        notAllowedUSStates:
          items: {}
          type: array
      required:
        - notAllowedUSStates
        - notAllowedCountries
        - network
      type: object
    PublicOnRampTransactionFeeBreakdown:
      properties:
        deductedFee:
          $ref: '#/components/schemas/PublicFiatAmount'
        networkFees:
          items:
            $ref: '#/components/schemas/PublicOnRampTransactionNetworkFee'
          type: array
        partnerFees:
          items:
            $ref: '#/components/schemas/PublicOnRampFeeWithSettlement'
          type: array
      required:
        - networkFees
        - partnerFees
      type: object
    PublicPayoutCryptoTransaction:
      properties:
        transactionHash:
          maxLength: 255
          minLength: 0
          type: string
      required:
        - transactionHash
      type: object
    PublicBankDepositInformation:
      properties:
        accountAddress:
          maxLength: 255
          minLength: 0
          type: string
        accountName:
          maxLength: 255
          minLength: 0
          type: string
        accountNumber:
          maxLength: 255
          minLength: 0
          type: string
        bankAddress:
          maxLength: 255
          minLength: 0
          type: string
        bankName:
          maxLength: 255
          minLength: 0
          type: string
        bic:
          maxLength: 11
          minLength: 0
          type: string
        iban:
          maxLength: 34
          minLength: 0
          type: string
        routingNumber: {}
        sortCode: {}
        type:
          enum:
            - ACH
            - Wire
            - SEPA
            - RTP
            - SWIFT
          type: string
      required:
        - accountAddress
        - accountName
        - type
      type: object
    PublicFiatCurrency:
      properties:
        code:
          minLength: 3
          type: string
        name:
          maxLength: 20
          minLength: 0
          type: string
        type:
          maxLength: 10
          minLength: 0
          type: string
      required:
        - code
        - name
        - type
      type: object
    PublicVirtualAccountWalletNetwork:
      properties:
        code:
          enum:
            - akash
            - algorand
            - aptos
            - arbitrum
            - avalanche_c_chain
            - base
            - berachain
            - binance
            - binance_smart_chain
            - bitcoin
            - bitcoin_cash
            - bitcoin_testnet
            - bnb_chain
            - cardano
            - celo
            - celestia
            - core
            - cosmos
            - chiliz
            - cronos
            - dash
            - deversifi
            - digibyte
            - dogecoin
            - dydx
            - elrond
            - eosio
            - ethereum
            - ethereum_classic
            - fantom
            - filecoin
            - flow
            - flow_evm
            - gala
            - goerli
            - hedera
            - hive
            - hypercore
            - icp
            - immutable
            - injective
            - iota
            - kava
            - klaytn
            - kovan
            - lbry
            - linea
            - lisk
            - litecoin
            - litecoin_testnet
            - loopring
            - mantle
            - mina
            - mobilecoin
            - moca
            - monad
            - multiversx
            - mumbai
            - nano
            - near
            - nem
            - neo
            - nimiq
            - noble
            - oasis
            - okc
            - ontology
            - optimism
            - osmosis
            - palm
            - plasma
            - polkadot
            - polygon
            - qtum
            - ravencoin
            - rinkeby
            - ripple
            - ronin
            - sei
            - sepolia
            - simple_ledger_protocol
            - solana
            - sonic
            - sorare
            - starknet
            - stacks
            - stellar
            - sui
            - rune
            - terra
            - tezos
            - theta
            - tomochain
            - ton
            - tron
            - unichain
            - vechain
            - venom
            - waves
            - wax
            - worldchain
            - xrpl
            - zcash
            - zilliqa
            - zksync
          type: string
        icon:
          maxLength: 255
          minLength: 0
          type: string
        name:
          maxLength: 255
          minLength: 0
          type: string
      type: object
    PublicVirtualAccountCryptoWalletDetails:
      properties:
        walletAddress:
          maxLength: 255
          minLength: 0
          type: string
        walletAddressTag:
          maxLength: 255
          minLength: 0
          type: string
      required:
        - walletAddress
      type: object
    PublicCryptoCurrencyNetwork:
      properties:
        code:
          maxLength: 20
          minLength: 0
          type: string
        icon:
          maxLength: 20
          minLength: 0
          type: string
        name:
          maxLength: 20
          minLength: 0
          type: string
      required:
        - code
        - name
        - icon
      type: object
    PublicFiatAmount:
      properties:
        amount:
          minLength: 1
          type: string
        currency:
          $ref: '#/components/schemas/PublicFiatCurrency'
          minLength: 1
          type: string
      required:
        - currency
        - amount
      type: object
    PublicOnRampTransactionNetworkFee:
      properties:
        amount:
          minLength: 1
          type: string
        currency:
          $ref: '#/components/schemas/PublicFiatCurrency'
          minLength: 1
          type: string
        settlement:
          enum:
            - deductedImmediately
            - settledLater
          type: string
        type:
          enum:
            - SepaIn
            - SepaOut
            - EthereumGas
            - SolanaTransactionFee
            - RailFee
            - AchIn
            - AchOut
            - WireIn
            - WireOut
            - SwiftIn
            - SwiftOut
            - FpsIn
            - FpsOut
            - ChapsIn
            - ChapsOut
            - StellarTransactionFee
          type: string
      required:
        - type
        - amount
        - currency
        - settlement
      type: object
    PublicOnRampFeeWithSettlement:
      properties:
        amount:
          minLength: 1
          type: string
        currency:
          $ref: '#/components/schemas/PublicFiatCurrency'
          minLength: 1
          type: string
        settlement:
          enum:
            - deductedImmediately
            - settledLater
          type: string
      required:
        - settlement
        - amount
        - currency
      type: object
  securitySchemes:
    ApiKeyInQueryParamsAuth:
      description: |-
        API Key authentication using a publishable API key in the query string.
        The key is passed as the `apiKey` query parameter.
        Publishable keys are safe to expose in client-side code.
      in: query
      name: apiKey
      type: apiKey

````