Methods
- TypeScript
- Python
- Rust
- Go
List billing plans
TypeScript
GET /v1/projects/{projectId}/billing/plansList project subscriptionsTypeScript
GET /v1/projects/{projectId}/billing/subscriptionsGet 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.
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: PendingBillingOperationnull
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
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
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.