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/billingAccounts
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-05-15 UTC."],[[["This method allows the creation of billing subaccounts within the Google Cloud platform, which are further detailed in linked documentation."],["Google Cloud resellers should utilize Channel Services APIs for creating customer accounts and entitlements, instead of using this particular method."],["To create a subaccount, the authenticated user must possess the `billing.accounts.update` IAM permission on the parent account, often granted to billing account administrators."],["The HTTP request for creating a billing subaccount uses a POST method directed to a specific URL, which requires a `parent` parameter that identifies the parent account in the query."],["The request and response body both use the `BillingAccount` format."]]],[]]