Cloud Billing API

Allows developers to manage billing for their Google Cloud Platform projects programmatically.

Service: cloudbilling.googleapis.com

To call this service, we recommend that you use the Google-provided client libraries. If your application needs to use your own libraries to call this service, use the following information when you make the API requests.

Discovery document

A Discovery Document is a machine-readable specification for describing and consuming REST APIs. It is used to build client libraries, IDE plugins, and other tools that interact with Google APIs. One service may provide multiple discovery documents. This service provides the following discovery document:

Service endpoint

A service endpoint is a base URL that specifies the network address of an API service. One service might have multiple service endpoints. This service has the following service endpoint and all URIs below are relative to this service endpoint:

  • https://cloudbilling.googleapis.com

REST Resource: v1.billingAccounts

Methods
create POST /v1/billingAccounts
Creates a billing account.
get GET /v1/{name=billingAccounts/*}
Gets information about a billing account.
getIamPolicy GET /v1/{resource=billingAccounts/*}:getIamPolicy
Gets the access control policy for a billing account.
list GET /v1/billingAccounts
Lists the billing accounts that the current authenticated user has permission to view.
patch PATCH /v1/{name=billingAccounts/*}
Updates a billing account's fields.
setIamPolicy POST /v1/{resource=billingAccounts/*}:setIamPolicy
Sets the access control policy for a billing account.
testIamPermissions POST /v1/{resource=billingAccounts/*}:testIamPermissions
Tests the access control policy for a billing account.

REST Resource: v1.billingAccounts.projects

Methods
list GET /v1/{name=billingAccounts/*}/projects
Lists the projects associated with a billing account.

REST Resource: v1.projects

Methods
getBillingInfo GET /v1/{name=projects/*}/billingInfo
Gets the billing information for a project.
updateBillingInfo PUT /v1/{name=projects/*}/billingInfo
Sets or updates the billing account associated with a project.

REST Resource: v1.services

Methods
list GET /v1/services
Lists all public cloud services.

REST Resource: v1.services.skus

Methods
list GET /v1/{parent=services/*}/skus
Lists all publicly available SKUs for a given cloud service.