Skip to main content
API resource reference for BillingAccount, part of the Billing service. To create or change one, see Changing resources; to inspect, see Reading resources.
This resource is part of the v1alpha1 API and is subject to change. Fields and behavior may change in future releases.

Identity

Groupbilling.miloapis.com
Versionv1alpha1
KindBillingAccount
ScopeProject

Overview

A BillingAccount represents the paying entity within an organization that is charged for service consumption. Use it to record who is billed, the currency invoices are issued in, the postal contact and address printed on invoices, the default payment method used to process charges, the invoicing schedule, and any tax registrations that apply to the account.

Spec fields

FieldTypeRequiredDescription
spec.currencyCodestringYesISO 4217 currency code for this billing account. Immutable once the account transitions past the Provisioning phase.
spec.contactInfoObjectNoBilling contact and the postal address invoices are issued to.
spec.contactInfo.emailstringYes*Primary billing contact email. Receives billing notifications and, when invoiceEmails is unset, also receives invoices and receipts. (*Required when contactInfo is set.)
spec.contactInfo.namestringNoDisplay name of the individual billing contact. Appears as the “ATTN:” line on invoices when businessName is also set.
spec.contactInfo.businessNamestringNoLegal entity that pays. Populate for B2B accounts so invoices print the company name; maps onto the provider Customer.name.
spec.contactInfo.invoiceEmails[]stringNoRecipients for invoices and receipts. First entry is primary, the rest are CC’d. Duplicates rejected; maximum 10 entries.
spec.contactInfo.addressObjectNoPostal billing address. Appears on invoices and is surfaced to the provider controller for tax determination and address verification.
spec.contactInfo.address.countrystringYes*ISO 3166-1 alpha-2 country code (e.g. GB, US). (*Required when address is set — tax and currency restrictions depend on it.)
spec.contactInfo.address.line1stringNoFirst line of the street address (typically number + street).
spec.contactInfo.address.line2stringNoSecond line of the street address (apartment / suite / building).
spec.contactInfo.address.citystringNoLocality.
spec.contactInfo.address.regionstringNoState, province, or county (free-form).
spec.contactInfo.address.postalCodestringNoPost / zip code.
spec.defaultPaymentMethodRefObjectNoReferences the PaymentMethod used by default for charge processing. Must reside in the same Project and be in the Active phase.
spec.defaultPaymentMethodRef.namestringYes*Name of the referenced PaymentMethod. (*Required when the reference is set.)
spec.paymentTermsObjectNoInvoicing schedule for this billing account.
spec.paymentTerms.invoiceFrequencystringNoHow often invoices are generated. One of Monthly, Quarterly, Annual.
spec.paymentTerms.invoiceDayOfMonthintegerNoDay of the month invoices are generated.
spec.paymentTerms.netDaysintegerNoNumber of days after the invoice date that payment is due.
spec.taxIds[]ObjectNoTax registrations attached to this account. An account can carry multiple entries.
spec.taxIds[].typestringYes*Tax registration scheme, following a <jurisdiction>_<scheme> convention (e.g. gb_vat, eu_vat, us_ein). (*Required per entry.)
spec.taxIds[].valuestringYes*Registration number / identifier (e.g. GB123456789). (*Required per entry.)

Status fields (read-only)

FieldTypeDescription
status.phasestringCurrent lifecycle phase. One of Provisioning, Ready, Suspended, Archived.
status.linkedProjectsCountintegerNumber of projects currently bound to this billing account.
status.conditions[]ObjectLatest available observations of the billing account’s state.
status.observedGenerationintegerMost recent generation observed by the controller.

Usage

apiVersion: billing.miloapis.com/v1alpha1
kind: BillingAccount
metadata:
  name: acme-billing
spec:
  currencyCode: GBP
  contactInfo:
    email: billing@acme.example
    name: Jane Doe
    businessName: Acme Ltd
    address:
      country: GB
      line1: 1 High Street
      city: London
      postalCode: SW1A 1AA
  paymentTerms:
    invoiceFrequency: Monthly
    invoiceDayOfMonth: 1
    netDays: 30
  taxIds:
    - type: gb_vat
      value: GB123456789
datumctl apply -f billingaccount.yaml --project my-project
datumctl get billingaccounts --project my-project
datumctl describe billingaccount acme-billing --project my-project
Run datumctl explain billingaccounts --recursive to see the full, live field tree for this resource.
Last modified on July 2, 2026