Method: billingAccounts.subAccounts.create

This method creates billing subaccounts.

Google Cloud resellers should use the Channel Services APIs, accounts.customers.create and accounts.customers.entitlements.create.

When creating a subaccount, the current authenticated user must have the billing.accounts.update IAM permission on the parent account, which is typically given to billing account administrators. This method will return an error if the parent account has not been provisioned for subaccounts.

HTTP request

POST https://cloudbilling.googleapis.com/v1/{parent=billingAccounts/*}/subAccounts

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
parent

string

Optional. The parent to create a billing account from. Format: - billingAccounts/{billing_account_id}, for example, billingAccounts/012345-567890-ABCDEF

Request body

The request body contains an instance of BillingAccount.

Response body

If successful, the response body contains a newly created instance of BillingAccount.

Authorization scopes

Requires one of the following OAuth scopes:

  • https://www.googleapis.com/auth/cloud-platform
  • https://www.googleapis.com/auth/cloud-billing

For more information, see the Authentication Overview.