---
updatedAt: 2025-11-28T22:30:14.000Z
agentTools:
  projectIndex: https://docs.bcb.group/llms.txt
---

# List Accounts

List all virtual accounts for the given segregated account

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Payments API",
    "description": "This is the api documentation for the BCB Group Payments API",
    "version": "1.0.0",
    "contact": {}
  },
  "servers": [
    {
      "url": "https://api.bcb.group",
      "description": "Production"
    },
    {
      "url": "https://api.uat.bcb.group",
      "description": "Sandbox"
    }
  ],
  "paths": {
    "/v1/accounts/{accountId}/virtual/all-account-data": {
      "get": {
        "summary": "List Accounts",
        "description": "List all virtual accounts for the given segregated account",
        "operationId": "VirtualAccounts_ListAccountsV1",
        "parameters": [
          {
            "name": "accountId",
            "required": true,
            "in": "path",
            "description": "The account id for the segregated account",
            "schema": {
              "example": 123,
              "type": "number"
            }
          },
          {
            "name": "pageIndex",
            "required": false,
            "in": "query",
            "description": "The page offset of results to return",
            "schema": {
              "minimum": 0,
              "maximum": 1.7976931348623157e+308,
              "default": 0,
              "type": "number"
            }
          },
          {
            "name": "pageSize",
            "required": false,
            "in": "query",
            "description": "The limit of number of results to return",
            "schema": {
              "minimum": 1,
              "maximum": 1000,
              "default": 1000,
              "type": "number"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The virtual accounts were retrieved successfully",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PagedVirtualAccountDataResponse"
                }
              }
            }
          },
          "404": {
            "description": "The accountId is unknown",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        },
        "tags": [
          "Virtual Accounts"
        ],
        "security": [
          {
            "bearer": []
          }
        ]
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearer": {
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "type": "http"
      }
    },
    "schemas": {
      "ErrorResponse": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string",
            "description": "The description of the error."
          },
          "statusCode": {
            "type": "integer",
            "description": "HTTP Status code representing the error."
          }
        },
        "required": [
          "message",
          "statusCode"
        ]
      },
      "GBPRequestVirtualAccountDataResponse": {
        "type": "object",
        "properties": {
          "correlationId": {
            "type": "string",
            "description": "The correlation ID provided on the account creation request. If you did not provide correlation ID, it will be generated"
          },
          "virtualAccountDetails": {
            "description": "The details of the virtual account",
            "oneOf": [
              {
                "$ref": "#/components/schemas/GBPVirtualAccountDetails"
              },
              {
                "$ref": "#/components/schemas/PendingVirtualAccountDetails"
              }
            ]
          },
          "ownerDetails": {
            "description": "The details of the virtual account owner",
            "oneOf": [
              {
                "$ref": "#/components/schemas/GBPVirtualAccountOwnerDetails"
              },
              {
                "$ref": "#/components/schemas/NoBankDetailsVirtualAccountOwnerDetails"
              }
            ]
          }
        },
        "required": [
          "correlationId",
          "virtualAccountDetails",
          "ownerDetails"
        ]
      },
      "GBPVirtualAccountDetails": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The ID of the virtual account",
            "example": "71c33ef0-4af9-4814-b81e-d5f4dfa96dec"
          },
          "status": {
            "type": "string",
            "description": "The status of the virtual account",
            "example": "ACTIVE"
          },
          "iban": {
            "type": "string",
            "description": "The IBAN of the virtual account",
            "example": "GB33BUKB20201555555555"
          },
          "accountNumber": {
            "type": "string",
            "description": "The account number of the virtual account",
            "example": "55555555"
          },
          "sortCode": {
            "type": "string",
            "description": "The sort code of the virtual account",
            "example": "202015"
          },
          "bic": {
            "type": "string",
            "description": "The bic of the virtual account owner",
            "example": "MONZGB2LXXX"
          }
        },
        "required": [
          "id",
          "status",
          "iban",
          "sortCode",
          "bic"
        ]
      },
      "GBPVirtualAccountOwnerDetails": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "The name of the virtual account owner"
          },
          "iban": {
            "type": "string",
            "description": "The IBAN of the virtual account owner",
            "example": "GB33BUKB20201555555555"
          },
          "accountNumber": {
            "type": "string",
            "description": "The account number of the virtual account owner",
            "example": "55555555"
          },
          "sortCode": {
            "type": "string",
            "description": "The sort code of the virtual account owner",
            "example": "202015"
          },
          "bic": {
            "type": "string",
            "description": "The bic of the virtual account owner",
            "example": "MONZGB2LXXX"
          }
        },
        "required": [
          "name",
          "iban"
        ]
      },
      "IbanRequestVirtualAccountDataResponse": {
        "type": "object",
        "properties": {
          "correlationId": {
            "type": "string",
            "description": "The correlation ID provided on the account creation request. If you did not provide correlation ID, it will be generated"
          },
          "virtualAccountDetails": {
            "description": "The details of the virtual account",
            "oneOf": [
              {
                "$ref": "#/components/schemas/IbanVirtualAccountDetails"
              },
              {
                "$ref": "#/components/schemas/PendingVirtualAccountDetails"
              }
            ]
          },
          "ownerDetails": {
            "description": "The details of the virtual account owner",
            "oneOf": [
              {
                "$ref": "#/components/schemas/IbanVirtualAccountOwnerDetails"
              },
              {
                "$ref": "#/components/schemas/NoBankDetailsVirtualAccountOwnerDetails"
              }
            ]
          }
        },
        "required": [
          "correlationId",
          "virtualAccountDetails",
          "ownerDetails"
        ]
      },
      "IbanVirtualAccountDetails": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The ID of the virtual account",
            "example": "71c33ef0-4af9-4814-b81e-d5f4dfa96dec"
          },
          "status": {
            "type": "string",
            "description": "The status of the virtual account",
            "example": "ACTIVE"
          },
          "iban": {
            "type": "string",
            "description": "The IBAN of the virtual account",
            "example": "DK5000400440116243"
          },
          "accountNumber": {
            "type": "string",
            "description": "The account number of the virtual account",
            "example": "0440116243"
          },
          "bic": {
            "type": "string",
            "description": "The bic of the virtual account",
            "example": "SXPYDKKK"
          }
        },
        "required": [
          "id",
          "status",
          "iban"
        ]
      },
      "IbanVirtualAccountOwnerDetails": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "The name of the virtual account owner"
          },
          "iban": {
            "type": "string",
            "description": "The IBAN of the virtual account owner",
            "example": "DK5000400440116243"
          },
          "bic": {
            "type": "string",
            "description": "The bic of the virtual account owner",
            "example": "SXPYDKKK"
          }
        },
        "required": [
          "name",
          "iban"
        ]
      },
      "NoBankDetailsVirtualAccountOwnerDetails": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "The name of the virtual account owner"
          }
        },
        "required": [
          "name"
        ]
      },
      "PagedVirtualAccountDataResponse": {
        "type": "object",
        "properties": {
          "count": {
            "type": "number",
            "description": "Count of virtual accounts",
            "example": 2
          },
          "results": {
            "type": "array",
            "description": "Virtual account data",
            "items": {
              "oneOf": [
                {
                  "$ref": "#/components/schemas/GBPRequestVirtualAccountDataResponse"
                },
                {
                  "$ref": "#/components/schemas/IbanRequestVirtualAccountDataResponse"
                }
              ]
            }
          }
        },
        "required": [
          "count",
          "results"
        ]
      },
      "PendingVirtualAccountDetails": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "The ID of the virtual account",
            "example": "71c33ef0-4af9-4814-b81e-d5f4dfa96dec"
          },
          "status": {
            "type": "string",
            "description": "The status of the virtual account",
            "example": "PENDING"
          }
        },
        "required": [
          "id",
          "status"
        ]
      }
    }
  }
}
```