Optional. The currency in which the billing account is billed and charged,
represented as an ISO 4217 code such as USD.
Billing account currency is determined at the time of billing account
creation and cannot be updated subsequently, so this field should not be
set on update requests. In addition, a subaccount always matches the
currency of its parent billing account, so this field should not be set on
subaccount creation requests. Clients can read this field to determine the
currency of an existing billing account.
If this account is a
subaccount, then this
will be the resource name of the parent billing account that it is being
resold through.
Otherwise this will be empty.
Output only. The resource name of the billing account. The resource name
has the form billingAccounts/{billing_account_id}. For example,
billingAccounts/012345-567890-ABCDEF would be the resource name for
billing account 012345-567890-ABCDEF.
Output only. True if the billing account is open, and will therefore be
charged for any usage on associated projects. False if the billing account
is closed, and therefore projects associated with it are unable to use paid
services.
Output only. The billing account's parent resource identifier.
Use the MoveBillingAccount method to update the account's parent resource
if it is a organization.
Format:
organizations/{organization_id}, for example,
organizations/12345678
billingAccounts/{billing_account_id}, for example,
billingAccounts/012345-567890-ABCDEF
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis document provides reference documentation for the \u003ccode\u003eBillingAccount\u003c/code\u003e class within the Google Cloud Billing v1 API, which represents a billing account in the Google Cloud Console that can be assigned to projects.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the \u003ccode\u003eBillingAccount\u003c/code\u003e class is 3.9.0, with documentation available for versions ranging from 3.9.0 down to 2.2.0, all available in the listed links.\u003c/p\u003e\n"],["\u003cp\u003eA \u003ccode\u003eBillingAccount\u003c/code\u003e can be identified by its resource name, which follows the format \u003ccode\u003ebillingAccounts/{billing_account_id}\u003c/code\u003e, such as \u003ccode\u003ebillingAccounts/012345-567890-ABCDEF\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eBillingAccount\u003c/code\u003e class has properties like \u003ccode\u003eCurrencyCode\u003c/code\u003e, \u003ccode\u003eDisplayName\u003c/code\u003e, \u003ccode\u003eMasterBillingAccount\u003c/code\u003e, \u003ccode\u003eName\u003c/code\u003e, \u003ccode\u003eOpen\u003c/code\u003e, and \u003ccode\u003eParent\u003c/code\u003e, which describe its attributes, such as currency, display name, parent account, resource name, open/closed status, and parent resource.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eBillingAccount\u003c/code\u003e implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, with details on inherited members and constructors included.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Billing v1 API - Class BillingAccount (3.9.0)\n\nVersion latestkeyboard_arrow_down\n\n- [3.9.0 (latest)](/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.BillingAccount)\n- [3.8.0](/dotnet/docs/reference/Google.Cloud.Billing.V1/3.8.0/Google.Cloud.Billing.V1.BillingAccount)\n- [3.7.0](/dotnet/docs/reference/Google.Cloud.Billing.V1/3.7.0/Google.Cloud.Billing.V1.BillingAccount)\n- [3.6.0](/dotnet/docs/reference/Google.Cloud.Billing.V1/3.6.0/Google.Cloud.Billing.V1.BillingAccount)\n- [3.5.0](/dotnet/docs/reference/Google.Cloud.Billing.V1/3.5.0/Google.Cloud.Billing.V1.BillingAccount)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.Billing.V1/3.4.0/Google.Cloud.Billing.V1.BillingAccount)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.Billing.V1/3.3.0/Google.Cloud.Billing.V1.BillingAccount)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Billing.V1/3.2.0/Google.Cloud.Billing.V1.BillingAccount)\n- [3.1.0](/dotnet/docs/reference/Google.Cloud.Billing.V1/3.1.0/Google.Cloud.Billing.V1.BillingAccount)\n- [3.0.0](/dotnet/docs/reference/Google.Cloud.Billing.V1/3.0.0/Google.Cloud.Billing.V1.BillingAccount)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Billing.V1/2.3.0/Google.Cloud.Billing.V1.BillingAccount)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.Billing.V1/2.2.0/Google.Cloud.Billing.V1.BillingAccount) \n\n public sealed class BillingAccount : IMessage\u003cBillingAccount\u003e, IEquatable\u003cBillingAccount\u003e, IDeepCloneable\u003cBillingAccount\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Billing v1 API class BillingAccount.\n\nA billing account in the\n[Google Cloud Console](https://console.cloud.google.com/). You can assign a\nbilling account to one or more projects. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e BillingAccount \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[BillingAccount](/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.BillingAccount), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[BillingAccount](/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.BillingAccount), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[BillingAccount](/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.BillingAccount), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Billing.V1](/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Billing.V1.dll\n\nConstructors\n------------\n\n### BillingAccount()\n\n public BillingAccount()\n\n### BillingAccount(BillingAccount)\n\n public BillingAccount(BillingAccount other)\n\nProperties\n----------\n\n### BillingAccountName\n\n public BillingAccountName BillingAccountName { get; set; }\n\n[BillingAccountName](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.BillingAccountName.html)-typed view over the [Name](/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.BillingAccount#Google_Cloud_Billing_V1_BillingAccount_Name) resource name property.\n\n### CurrencyCode\n\n public string CurrencyCode { get; set; }\n\nOptional. The currency in which the billing account is billed and charged,\nrepresented as an ISO 4217 code such as `USD`.\n\nBilling account currency is determined at the time of billing account\ncreation and cannot be updated subsequently, so this field should not be\nset on update requests. In addition, a subaccount always matches the\ncurrency of its parent billing account, so this field should not be set on\nsubaccount creation requests. Clients can read this field to determine the\ncurrency of an existing billing account.\n\n### DisplayName\n\n public string DisplayName { get; set; }\n\nThe display name given to the billing account, such as `My Billing\nAccount`. This name is displayed in the Google Cloud Console.\n\n### MasterBillingAccount\n\n public string MasterBillingAccount { get; set; }\n\nIf this account is a\n[subaccount](https://cloud.google.com/billing/docs/concepts), then this\nwill be the resource name of the parent billing account that it is being\nresold through.\nOtherwise this will be empty.\n\n### Name\n\n public string Name { get; set; }\n\nOutput only. The resource name of the billing account. The resource name\nhas the form `billingAccounts/{billing_account_id}`. For example,\n`billingAccounts/012345-567890-ABCDEF` would be the resource name for\nbilling account `012345-567890-ABCDEF`.\n\n### Open\n\n public bool Open { get; set; }\n\nOutput only. True if the billing account is open, and will therefore be\ncharged for any usage on associated projects. False if the billing account\nis closed, and therefore projects associated with it are unable to use paid\nservices.\n\n### Parent\n\n public string Parent { get; set; }\n\nOutput only. The billing account's parent resource identifier.\nUse the `MoveBillingAccount` method to update the account's parent resource\nif it is a organization.\nFormat:\n\n- `organizations/{organization_id}`, for example, `organizations/12345678`\n- `billingAccounts/{billing_account_id}`, for example, `billingAccounts/012345-567890-ABCDEF`"]]