Billing API, REST: BillingAccount.List
Retrieves the list of billing accounts available for current user.
HTTP request
GET https://billing.api.cloud.yandex.net/billing/v1/billingAccounts
Query parameters
Field |
Description |
pageSize |
string (int64) The maximum number of results per page to return. If the number of available |
pageToken |
string Page token. To get the next page of results, |
Response
HTTP Code: 200 - OK
{
"billingAccounts": [
{
"id": "string",
"name": "string",
"createdAt": "string",
"countryCode": "string",
"currency": "string",
"active": "boolean",
"balance": "string"
}
],
"nextPageToken": "string"
}
Field |
Description |
billingAccounts[] |
List of billing accounts. |
nextPageToken |
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. |
createdAt |
string (date-time) Creation timestamp. String in RFC3339 To work with values in this field, use the APIs described in the |
countryCode |
string ISO 3166-1 alpha-2 country code of the billing account. |
currency |
string Currency of the billing account.
|
active |
boolean Represents whether corresponding billable objects can be used or not. |
balance |
string Current balance of the billing account. |