Billing API, gRPC: BillingAccountService.List
Retrieves the list of billing accounts available for current user.
gRPC request
rpc List (ListBillingAccountsRequest) returns (ListBillingAccountsResponse)
ListBillingAccountsRequest
{
"page_size": "int64",
"page_token": "string"
}
Field |
Description |
page_size |
int64 The maximum number of results per page to return. If the number of available |
page_token |
string Page token. To get the next page of results, |
ListBillingAccountsResponse
{
"billing_accounts": [
{
"id": "string",
"name": "string",
"created_at": "google.protobuf.Timestamp",
"country_code": "string",
"currency": "string",
"active": "bool",
"balance": "string"
}
],
"next_page_token": "string"
}
Field |
Description |
billing_accounts[] |
List of billing accounts. |
next_page_token |
string This token allows you to get the next page of results for list requests. If the number of results |
BillingAccount
A BillingAccount resource. For more information, see BillingAccount.
Field |
Description |
id |
string ID of the billing account. |
name |
string Name of the billing account. |
created_at |
Creation timestamp. |
country_code |
string ISO 3166-1 alpha-2 country code of the billing account. |
currency |
string Currency of the billing account.
|
active |
bool Represents whether corresponding billable objects can be used or not. |
balance |
string Current balance of the billing account. |