> ## 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.

# List one customer's USD virtual accounts

> Lists virtual accounts for a customer owned by the authenticated merchant. A customer owned by another merchant is returned as not found.



## OpenAPI

````yaml /openapi.json get /v1/customers/{customer_id}/virtual-accounts
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/customers/{customer_id}/virtual-accounts:
    get:
      tags:
        - public.virtual-accounts
      summary: List one customer's USD virtual accounts
      description: >-
        Lists virtual accounts for a customer owned by the authenticated
        merchant. A customer owned by another merchant is returned as not found.
      parameters:
        - description: Customer ID
          in: path
          name: customer_id
          required: true
          schema:
            type: string
        - description: Currency
          in: query
          name: currency
          schema:
            type: string
            enum:
              - USD
        - description: Provisioning state
          in: query
          name: status
          schema:
            type: string
            enum:
              - PROVISIONING
              - ACTIVE
              - INACTIVE
              - FAILED
              - REQUIRES_REVIEW
        - description: 'Number of results per page (default: 50, max: 200)'
          in: query
          name: limit
          schema:
            type: integer
            minimum: 1
            maximum: 200
        - description: 'Page number (default: 1)'
          in: query
          name: page
          schema:
            type: integer
            minimum: 1
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VirtualAccountListResponse'
        '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:
    VirtualAccountListResponse:
      properties:
        data:
          items:
            $ref: '#/components/schemas/VirtualAccountSummary'
          type: array
        meta:
          $ref: '#/components/schemas/PaginationMeta'
      type: object
    ErrorResponse:
      properties:
        error:
          $ref: '#/components/schemas/ErrorBody'
      type: object
    VirtualAccountSummary:
      properties:
        created_at:
          type: string
        currency:
          $ref: '#/components/schemas/VirtualAccountCurrency'
        customer_id:
          type: string
        deposit_instructions:
          $ref: '#/components/schemas/MaskedVirtualAccountDepositInstructions'
        id:
          type: string
        status:
          $ref: '#/components/schemas/VirtualAccountStatus'
        supported_rails:
          items:
            type: string
          type: array
        updated_at:
          type: string
      type: object
    PaginationMeta:
      properties:
        limit:
          example: 50
          type: integer
        page:
          example: 1
          type: integer
        total:
          example: 42
          type: integer
        total_pages:
          example: 1
          type: integer
      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
    MaskedVirtualAccountDepositInstructions:
      properties:
        account_number:
          type: string
        account_type:
          type: string
        bank_name:
          type: string
      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

````