> ## 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 virtual accounts



## OpenAPI

````yaml GET /v1/virtual-accounts
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:
    get:
      tags:
        - Virtual Account
      summary: Get virtual accounts
      operationId: VirtualAccountController.getVirtualAccounts
      parameters:
        - in: query
          name: virtualAccountId
          schema:
            format: uuid
            type: string
        - in: query
          name: walletAddress
          schema:
            type: string
        - in: query
          name: externalCustomerId
          schema:
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/VirtualAccountResponse'
                type: array
          description: ''
      security:
        - ApiKeyInQueryParamsAuth: []
components:
  schemas:
    VirtualAccountResponse:
      properties:
        createdAt:
          pattern: \d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d.\d+Z?
          type: string
        customerId:
          type: string
        destination:
          type: object
        destinationCurrency:
          type: object
        destinations:
          items: {}
          type: array
        externalCustomerId:
          type: string
        id:
          type: string
        organizationId:
          type: string
        source: {}
        sourceCurrency:
          type: object
        sources:
          items: {}
          type: array
        status:
          enum:
            - pending
            - completed
            - failed
            - manual_review
          type: string
        type:
          enum:
            - auto_on_ramp
            - auto_off_ramp
          type: string
        updatedAt:
          pattern: \d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d.\d+Z?
          type: string
      required:
        - id
        - type
        - destination
        - sourceCurrency
        - destinationCurrency
        - customerId
        - organizationId
        - createdAt
        - updatedAt
        - status
      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

````