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

# Get a customer USD virtual account

> Returns one merchant-owned virtual account. Full deposit instructions are returned only while the account is ACTIVE and the response must not be cached.



## OpenAPI

````yaml /openapi.json get /v1/virtual-accounts/{virtual_account_id}
openapi: 3.0.3
info:
  contact:
    email: support@yara.cash
    name: Yara API Support
  description: >-
    Merchant-facing wallets/address-as-a-service API for creating merchant
    receive addresses, inspecting balances, quoting transfers, and initiating
    payouts to whitelisted recipients.

    Public endpoints are for external integrators. Dashboard endpoints are
    gateway-to-environment surfaces protected by the external API gateway.
    Internal endpoints are platform/system surfaces protected by an internal
    token.
  license:
    name: Proprietary
  title: Yara External API - Public API
  version: '1.0'
servers:
  - url: https://api.yara.cash
security: []
paths:
  /v1/virtual-accounts/{virtual_account_id}:
    get:
      tags:
        - public.virtual-accounts
      summary: Get a customer USD virtual account
      description: >-
        Returns one merchant-owned virtual account. Full deposit instructions
        are returned only while the account is ACTIVE and the response must not
        be cached.
      parameters:
        - description: Virtual account ID
          in: path
          name: virtual_account_id
          required: true
          schema:
            type: string
      responses:
        '200':
          description: OK
          headers:
            Cache-Control:
              description: no-store
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VirtualAccountDetailResponse'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Not Found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    VirtualAccountDetailResponse:
      properties:
        data:
          $ref: '#/components/schemas/VirtualAccountDetail'
      type: object
    ErrorResponse:
      properties:
        error:
          $ref: '#/components/schemas/ErrorBody'
      type: object
    VirtualAccountDetail:
      properties:
        created_at:
          type: string
        currency:
          $ref: '#/components/schemas/VirtualAccountCurrency'
        customer_id:
          type: string
        deposit_instructions:
          $ref: '#/components/schemas/VirtualAccountDepositInstructions'
        id:
          type: string
        status:
          $ref: '#/components/schemas/VirtualAccountStatus'
        supported_rails:
          items:
            type: string
          type: array
        updated_at:
          type: string
      type: object
    ErrorBody:
      properties:
        code:
          example: validation_error
          type: string
        message:
          example: invalid JSON body
          type: string
      type: object
    VirtualAccountCurrency:
      enum:
        - USD
      type: string
      x-enum-varnames:
        - CurrencyUSD
    VirtualAccountDepositInstructions:
      properties:
        account_type:
          type: string
        bank_account_number:
          type: string
        bank_address:
          type: string
        bank_beneficiary_address:
          type: string
        bank_beneficiary_name:
          type: string
        bank_name:
          type: string
        bank_routing_number:
          type: string
        bic:
          type: string
        deposit_message:
          type: string
        iban:
          type: string
        payment_rails:
          items:
            type: string
          type: array
      type: object
    VirtualAccountStatus:
      enum:
        - PROVISIONING
        - ACTIVE
        - INACTIVE
        - FAILED
        - REQUIRES_REVIEW
      type: string
      x-enum-varnames:
        - StatusProvisioning
        - StatusActive
        - StatusInactive
        - StatusFailed
        - StatusRequiresReview
  securitySchemes:
    ApiKeyAuth:
      description: 'Public merchant API key. You can also send Authorization: ApiKey <key>.'
      in: header
      name: X-Yara-API-Key
      type: apiKey

````