Skip to main content

Methods

List billing plans
TypeScript
GET /v1/projects/{projectId}/billing/plansGet billing operation
TypeScript
GET /v1/projects/{projectId}/billing/operations/{operationId}Get project billing overview
TypeScript
GET /v1/projects/{projectId}/billing

Models

ListBillingPlansResponse

object
required
Plans grouped by valid metadata type and explicitly published with visible=“true”. Each group is in display order: by tier, plans without one last, then by planCode.

BillingOperation

Authoritative provisioning state. Poll the operation route while pending. One of: PendingBillingOperation
null
required
BillingOperationKind
required
string
required
Stable handle for this provisioning action.
null
required
null
required
"pending"
required
Accepted and still executing. Poll the operation route.
string | null
required
One of: SucceededBillingOperation
null
required
BillingOperationKind
required
string
required
Stable handle for this provisioning action.
string | null
required
BillingOperationResult
required
"succeeded"
required
Terminal. The result is authoritative.
string | null
required
One of: FailedBillingOperation
BillingOperationFailure
required
BillingOperationKind
required
string
required
Stable handle for this provisioning action.
string | null
required
null
required
"failed"
required
Terminal. Failure contains a stable code and retryability.
string | null
required

GetBillingOverviewResponse

integer
required
Bumps on every entitlement change in any category.
array of ProjectSubscription
required
One entry per category that currently holds a subscription. Empty means none do — cancelled, or never opened.
array of MeteredUsage
required
Current-period metered usage, priced.