Methods
- TypeScript
- Python
- Rust
List billing plans
TypeScript
GET /v1/projects/{projectId}/billing/plansGet billing operationTypeScript
GET /v1/projects/{projectId}/billing/operations/{operationId}Get project billing overviewTypeScript
GET /v1/projects/{projectId}/billingModels
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: PendingBillingOperationnull
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
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
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.