EndpointsList billing accounts

Billing accounts

List billing accounts

The accounts the caller may read, optionally of one Organization. From the catalog projection; a change shows up within seconds.

GET/billing_accounts
Authorizationstringheaderrequired

Bearer token for the authenticated caller.

Required string length: 3 - 54

cursorstring

Maximum string length: 512

stateenum<string>

Available options: PENDING, ACTIVE, CLOSED

Response

application/json

BillingAccountList

dataobject[]required

Maximum array length: 100 elements

child attributes
data.idstringrequired

Required string length: 3 - 54

data.namestringrequired

Pattern: ^billingAccounts\/bac_[A-Za-z0-9]+$

Example: "billingAccounts/bac_4kQ9mXr2Tz7Lw1"

data.organization_idstringrequired

Required string length: 3 - 54

data.display_namestringrequired

Required string length: 1 - 100

data.stateenum<string>required

Available options: PENDING, ACTIVE, CLOSED

data.payment_methodobjectrequired
data.payment_method.typeenum<string>required

Available options: card

data.payment_method.cardobject | nullrequired
child attributes

Maximum string length: 32

Example: "visa"

Pattern: ^[0-9]{4}$

Required range: 1 <= x <= 12

Required range: 2000 <= x <= 2199

Unix timestamp (seconds)

Required range: 0 <= x <= 9007199254740991

data.currency_codeenum<string>required

Available options: EUR

data.conditionsobject[]required

Problems and notable facts that hold now, beside state; empty when there are none. See each reason in the resource description.

Maximum array length: 32 elements

child attributes

Kebab-case reason; the resource documents the reasons it reports.

Maximum string length: 64

Pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*$

Example: "agent-offline"

data.conditions.severityenum<string>required

error: the resource failed; the condition says why. warning: it is limited or held until the person acts or it recovers. info: worth knowing, nothing to do.

Available options: error, warning, info

Safe to show the person as is.

Maximum string length: 512

data.conditions.remedyobject | nullrequired

What the person can do; null when nothing they do helps.

data.conditions.remedy.kindenum<string>required

Available options: free-capacity

data.conditions.remedy.metricenum<string>required

Available options: kaas/clusters, compute/machines, compute/cpu, compute/memory, compute/machines_concurrency, compute/managed_vm_trial, agents/turns_concurrency, agents/sandboxes, agents/sandboxes_running, agents/retained_filesystem_lifetime, codemode/executions, api/secrets_access, api/secrets_write, domain_routing/preview_hostnames, domain_routing/custom_domains, source_control/repositories

Maximum string length: 256

Unix timestamp (seconds) when this condition last changed.

Required range: x >= 0

data.created_atintegerrequired

Unix timestamp (seconds)

Required range: 0 <= x <= 9007199254740991

data.updated_atintegerrequired

Unix timestamp (seconds)

Required range: 0 <= x <= 9007199254740991

data.closed_atinteger | nullrequired

Unix timestamp (seconds)

Required range: 0 <= x <= 9007199254740991

data.etagstringrequired

Maximum string length: 64

has_morebooleanrequired
next_cursorstring | nullrequired

Maximum string length: 512