Retrieve a list of virtual accounts under an account. The virtual accounts are returned in an array, with each item representing a virtual account under that account.

The primary account will also be returned as a virtual account, with an account type of 'primary' while actual subaccounts under the primary account will have an account type of 'default'.

get/virtual-account

Query parameters

cursorstring

A cursor string to fetch the next page of results

filter:accountIdstring

Pass in an account ID to filter virtual accounts by account ID. This will return all virtual accounts that match the account ID passed in.

filter:includeClosedAccountsstring

Include virtual accounts that have been closed in the query results. By default, they will not be returned.

Response

OK

Changes

Changed in 1 of the 2 revisions of this API.22

    • removed the enum value false from the query request parameter filter:includeClosedAccounts

      request-parameter-enum-value-removed

    • removed the enum value true from the query request parameter filter:includeClosedAccounts

      request-parameter-enum-value-removed

    • added the new enum value false to the query request parameter filter:includeClosedAccounts

      request-parameter-enum-value-added

    • added the new enum value true to the query request parameter filter:includeClosedAccounts

      request-parameter-enum-value-added