---
title: "List Accounts"
method: GET
path: "/v1/accounts/{accountId}/virtual/all-account-data"
tags: ["Virtual Accounts"]
---

# List Accounts

`GET /v1/accounts/{accountId}/virtual/all-account-data`

List all virtual accounts for the given segregated account

## Path parameters

- `accountId` number, required

## Query parameters

- `pageIndex` number
- `pageSize` number

## Response `200`

The virtual accounts were retrieved successfully

- PagedVirtualAccountDataResponse
  - `count` number, required — Count of virtual accounts
  - `results` union[], required — Virtual account data
    - union
      - GBPRequestVirtualAccountDataResponse
        - `correlationId` string, required — The correlation ID provided on the account creation request. If you did not provide correlation ID, it will be generated
        - `virtualAccountDetails` union, required — The details of the virtual account
          - GBPVirtualAccountDetails
            - `id` string, required — The ID of the virtual account
            - `status` string, required — The status of the virtual account
            - `iban` string, required — The IBAN of the virtual account
            - `accountNumber` string — The account number of the virtual account
            - `sortCode` string, required — The sort code of the virtual account
            - `bic` string, required — The bic of the virtual account owner
          - PendingVirtualAccountDetails
            - `id` string, required — The ID of the virtual account
            - `status` string, required — The status of the virtual account
        - `ownerDetails` union, required — The details of the virtual account owner
          - GBPVirtualAccountOwnerDetails
            - `name` string, required — The name of the virtual account owner
            - `iban` string, required — The IBAN of the virtual account owner
            - `accountNumber` string — The account number of the virtual account owner
            - `sortCode` string — The sort code of the virtual account owner
            - `bic` string — The bic of the virtual account owner
          - NoBankDetailsVirtualAccountOwnerDetails
            - `name` string, required — The name of the virtual account owner
      - IbanRequestVirtualAccountDataResponse
        - `correlationId` string, required — The correlation ID provided on the account creation request. If you did not provide correlation ID, it will be generated
        - `virtualAccountDetails` union, required — The details of the virtual account
          - IbanVirtualAccountDetails
            - `id` string, required — The ID of the virtual account
            - `status` string, required — The status of the virtual account
            - `iban` string, required — The IBAN of the virtual account
            - `accountNumber` string — The account number of the virtual account
            - `bic` string — The bic of the virtual account
          - PendingVirtualAccountDetails
            - `id` string, required — The ID of the virtual account
            - `status` string, required — The status of the virtual account
        - `ownerDetails` union, required — The details of the virtual account owner
          - IbanVirtualAccountOwnerDetails
            - `name` string, required — The name of the virtual account owner
            - `iban` string, required — The IBAN of the virtual account owner
            - `bic` string — The bic of the virtual account owner
          - NoBankDetailsVirtualAccountOwnerDetails
            - `name` string, required — The name of the virtual account owner

## Other responses

- `404` — The accountId is unknown

---

[API](https://skmtc.net/bcb/apis/payments-api.md) · [All operations](https://skmtc.net/bcb/apis/payments-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/bcb/payments-api/revisions/7559660d5268/schema)
