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

# List Virtual Accounts

> Returns a list of generated dynamic virtual bank accounts and their active/expired status.

Returns a list of generated dynamic virtual bank accounts and their active/expired status.

Includes `expiresAt`, `status` (ACTIVE / EXPIRED), `merchantCustomerId`, and `merchantReference` so you can map each virtual account back to the correct internal customer or order.


## OpenAPI

````yaml GET /virtual-account/history
openapi: 3.0.0
info:
  title: NexaPay Business API
  version: 1.0.0
  description: Server-to-server merchant integration API documentation.
servers:
  - url: https://api.nexapay.ng/api/v1/business
    description: Production Server
security: []
tags: []
paths:
  /virtual-account/history:
    get:
      tags:
        - Transfers
      summary: List dynamic virtual accounts
      description: >-
        Returns a list of generated dynamic virtual bank accounts and their
        active/expired status.
      parameters:
        - $ref: '#/components/parameters/BusinessEnvHeader'
      responses:
        '200':
          description: History of virtual accounts retrieved successfully.
      security:
        - ApiKeyAuth: []
components:
  parameters:
    BusinessEnvHeader:
      name: x-business-env
      in: header
      required: false
      schema:
        type: string
        enum:
          - prod
          - test
        default: prod
      description: Target environment selector (live production vs. simulated sandbox).
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: Merchant API Key (e.g., nexa-prod-... or nexa-test-...)

````