# Method: billingAccounts.subAccounts.list

- [HTTP request](https://docs.cloud.google.com/billing/docs/reference/rest/v1/billingAccounts.subAccounts/list#body.HTTP_TEMPLATE)
- [Path parameters](https://docs.cloud.google.com/billing/docs/reference/rest/v1/billingAccounts.subAccounts/list#body.PATH_PARAMETERS)
- [Query parameters](https://docs.cloud.google.com/billing/docs/reference/rest/v1/billingAccounts.subAccounts/list#body.QUERY_PARAMETERS)
- [Request body](https://docs.cloud.google.com/billing/docs/reference/rest/v1/billingAccounts.subAccounts/list#body.request_body)
- [Response body](https://docs.cloud.google.com/billing/docs/reference/rest/v1/billingAccounts.subAccounts/list#body.response_body)
- [Authorization scopes](https://docs.cloud.google.com/billing/docs/reference/rest/v1/billingAccounts.subAccounts/list#body.aspect)
- [Try it!](https://docs.cloud.google.com/billing/docs/reference/rest/v1/billingAccounts.subAccounts/list#try-it)

Lists the billing accounts that the current authenticated user has permission to [view](https://cloud.google.com/billing/docs/how-to/billing-access).

### HTTP request

`GET https://cloudbilling.googleapis.com/v1/{parent=billingAccounts/*}/subAccounts`

The URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.

### Path parameters

| Parameters ||
|---|---|
| `parent` | `string` Optional. The parent resource to list billing accounts from. Format: - `organizations/{organization_id}`, for example, `organizations/12345678` - `billingAccounts/{billing_account_id}`, for example, `billingAccounts/012345-567890-ABCDEF` |

### Query parameters

| Parameters ||
|---|---|
| `pageSize` | `integer` Requested page size. The maximum page size is 100; this is also the default. |
| `pageToken` | `string` A token identifying a page of results to return. This should be a `nextPageToken` value returned from a previous `subAccounts.list` call. If unspecified, the first page of results is returned. |
| `filter` | `string` Options for how to filter the returned billing accounts. This only supports filtering for [subaccounts](https://cloud.google.com/billing/docs/concepts) under a single provided parent billing account. (for example, `masterBillingAccount=billingAccounts/012345-678901-ABCDEF`). Boolean algebra and other fields are not currently supported. |

### Request body

The request body must be empty.

### Response body

If successful, the response body contains an instance of `https://docs.cloud.google.com/billing/docs/reference/rest/v1/ListBillingAccountsResponse`.

### Authorization scopes

Requires one of the following OAuth scopes:

- `https://www.googleapis.com/auth/cloud-platform`
- `https://www.googleapis.com/auth/cloud-billing`
- `https://www.googleapis.com/auth/cloud-billing.readonly`

For more information, see the [Authentication Overview](https://docs.cloud.google.com/docs/authentication#authorization-gcp).