Skip to main content

Methods

List billing plans
TypeScript
GET /v1/projects/{projectId}/billing/plansList project subscriptions
TypeScript
GET /v1/projects/{projectId}/billing/subscriptionsGet 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.

ListProjectSubscriptionsResponse

array of ProjectHeldPlan
required
One entry per category that currently holds a subscription. Empty means none do — cancelled, or never opened.

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.
BillingPaymentAction | null
required
Set while a payment the operation waits for needs the customer’s authentication. Completing it within the payment window completes the operation.
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.
null
required
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.
null
required
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.