Cloud Billing API

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


We recommend that you call this service using Google-provided client libraries. If your application needs to call this service using your own libraries, you should use the following information when making 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 may have multiple service endpoints. This service has the following service endpoint and all URIs below are relative to this service endpoint:


REST Resource: v1.billingAccounts

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

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

REST Resource: v1.projects

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:

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

REST Resource:

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