Billing Accounts - List
Lists the billing accounts that a user has access to.
GET https://management.azure.com/providers/Microsoft.Billing/billingAccounts?api-version=2024-04-01
GET https://management.azure.com/providers/Microsoft.Billing/billingAccounts?includeAll={includeAll}&includeAllWithoutBillingProfiles={includeAllWithoutBillingProfiles}&includeDeleted={includeDeleted}&includePendingAgreement={includePendingAgreement}&includeResellee={includeResellee}&legalOwnerTID={legalOwnerTID}&legalOwnerOID={legalOwnerOID}&api-version=2024-04-01&filter={filter}&expand={expand}&top={top}&skip={skip}&search={search}
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
api-version
|
query | True |
string |
The version of the API to be used with the client request. The current version is 2024-04-01. |
expand
|
query |
string |
Expand is allowed for SoldTo and EnrollmentDetails/PONumber. |
|
filter
|
query |
string |
The filter query option allows clients to filter a collection of resources that are addressed by a request URL. |
|
include
|
query |
boolean |
When true, results will include Billing Accounts that the user does not have a direct role assignment on if the user has one of the following AAD roles: Global Administrator, Global Reader, Billing Administrator. |
|
include
|
query |
boolean |
When true, results will include Billing Accounts that are not fully created if the user has one of the following AAD roles: Global Administrator, Global Reader, Billing Administrator. |
|
include
|
query |
boolean |
When true, results will include any billing accounts in a deleted state. |
|
include
|
query |
boolean |
Includes billing accounts with agreement pending signature that the user has access to. |
|
include
|
query |
boolean |
Includes the customer's billing account of Microsoft Partner Agreement that the user has access to. |
|
legal
|
query |
string |
Must be combined with legalOwnerTID, results will only include Billing Accounts for whom is legally responsible for the Billing Accounts. Optional. |
|
legal
|
query |
string |
Must be combined with legalOwnerOID, results will only include Billing Accounts for whom is legally responsible for the Billing Accounts. Optional. |
|
search
|
query |
string |
The search query option allows clients to request items within a collection matching a free-text search expression. search is only supported for string fields. |
|
skip
|
query |
integer int64 |
The skip query option requests the number of items in the queried collection that are to be skipped and not included in the result. |
|
top
|
query |
integer int64 |
The top query option requests the number of items in the queried collection to be included in the result. The maximum supported value for top is 50. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
The list of billing accounts. |
|
Other Status Codes |
Error response describing why the operation failed. |
Examples
Billing |
Billing |
Billing |
BillingAccountForLegacyAccountDetails
Sample request
Sample response
{
"value": [
{
"id": "/providers/Microsoft.Billing/billingAccounts/20000000-0000-0000-0000-000000000001",
"name": "20000000-0000-0000-0000-000000000001",
"properties": {
"accountStatus": "Active",
"accountType": "Individual",
"agreementType": "MicrosoftOnlineServicesProgram",
"displayName": "Individual Account 2",
"hasReadAccess": true,
"notificationEmailAddress": "individual@domain.com"
},
"type": "Microsoft.Billing/billingAccounts"
}
]
}
BillingAccountsList
Sample request
Sample response
{
"value": [
{
"id": "/providers/Microsoft.Billing/billingAccounts/10000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31",
"name": "10000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31",
"properties": {
"accountStatus": "Active",
"accountType": "Business",
"accountSubType": "Enterprise",
"agreementType": "MicrosoftCustomerAgreement",
"displayName": "Premier Business Account",
"hasReadAccess": true,
"primaryBillingTenantId": "20000000-0000-0000-0000-000000000001"
},
"type": "Microsoft.Billing/billingAccounts",
"systemData": {
"createdAt": "2023-01-04T22:39:34.2606750Z",
"lastModifiedAt": "2023-01-05T22:39:34.2606750Z"
}
},
{
"id": "/providers/Microsoft.Billing/billingAccounts/20000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31",
"name": "20000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31",
"properties": {
"accountStatus": "Active",
"accountType": "Business",
"accountSubType": "Professional",
"agreementType": "MicrosoftCustomerAgreement",
"displayName": "Standard Business Account",
"hasReadAccess": true,
"primaryBillingTenantId": "20000000-0000-0000-0000-000000000001"
},
"type": "Microsoft.Billing/billingAccounts",
"systemData": {
"createdAt": "2023-01-04T22:39:34.2606750Z",
"lastModifiedAt": "2023-01-05T22:39:34.2606750Z"
}
},
{
"id": "/providers/Microsoft.Billing/billingAccounts/30000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31",
"name": "30000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31",
"properties": {
"accountStatus": "Active",
"accountType": "Individual",
"accountSubType": "Individual",
"agreementType": "MicrosoftCustomerAgreement",
"displayName": "Individual Account",
"hasReadAccess": true,
"primaryBillingTenantId": "20000000-0000-0000-0000-000000000001"
},
"type": "Microsoft.Billing/billingAccounts",
"systemData": {
"createdAt": "2023-01-04T22:39:34.2606750Z",
"lastModifiedAt": "2023-01-05T22:39:34.2606750Z"
}
},
{
"id": "/providers/Microsoft.Billing/billingAccounts/40000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31",
"name": "40000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31",
"properties": {
"accountStatus": "Active",
"accountType": "Business",
"accountSubType": "Enterprise",
"agreementType": "MicrosoftPartnerAgreement",
"displayName": "Premier Business Account",
"hasReadAccess": true,
"primaryBillingTenantId": "20000000-0000-0000-0000-000000000001"
},
"type": "Microsoft.Billing/billingAccounts",
"systemData": {
"createdAt": "2023-01-04T22:39:34.2606750Z",
"lastModifiedAt": "2023-01-05T22:39:34.2606750Z"
}
}
]
}
BillingAccountsListWithExpandForPONumber
Sample request
Sample response
{
"value": [
{
"id": "/providers/Microsoft.Billing/billingAccounts/6564892",
"name": "6564892",
"properties": {
"accountStatus": "Active",
"accountType": "Enterprise",
"accountSubType": "None",
"agreementType": "EnterpriseAgreement",
"displayName": "Enterprise Account",
"enrollmentDetails": {
"startDate": "2018-05-01T17:32:28Z",
"endDate": "2019-05-31T17:32:28Z",
"currency": "USD",
"channel": "EaDirect",
"language": "en",
"countryCode": "US",
"billingCycle": "Monthly",
"extendedTermOption": "Opted-Out",
"supportLevel": "Standard",
"supportCoverage": "1/26/2021 - 6/30/2021",
"cloud": "Azure Commercial",
"poNumber": "poNumber123"
},
"hasReadAccess": true,
"soldTo": {
"addressLine1": "Test Address",
"city": "City",
"companyName": "Enterprise Company",
"country": "US",
"postalCode": "00000-1111",
"region": "WA"
}
},
"type": "Microsoft.Billing/billingAccounts",
"systemData": {
"createdAt": "2023-01-04T22:39:34.2606750Z",
"lastModifiedAt": "2023-01-05T22:39:34.2606750Z"
}
}
]
}
Definitions
Name | Description |
---|---|
Account |
The current status of the billing account. |
Account |
The tier of the account. |
Account |
The type of customer. |
Agreement |
The type of agreement. |
Billing |
A billing account. |
Billing |
A container for a list of resources |
Billing |
A billing account. |
Billing |
Reason for the specified billing account status. |
Billing |
Identifies the billing relationships represented by a billing account. The billing relationship may be between Microsoft, the customer, and/or a third-party. |
created |
The type of identity that created the resource. |
Enrollment |
The properties of an enrollment. |
Error |
The resource management error additional info. |
Error |
The error detail. |
Error |
Error response |
Extended |
The billing account extension opted by the company. |
Indirect |
Identifies the billing profile that is linked to another billing profile in indirect purchase motion. |
Markup |
Markup status of enrollment, applicable only for indirect enrollments. |
Provisioning |
The provisioning state of the resource during a long-running operation. |
Registration |
Describes the registration number of the organization linked with the billing account. |
Sold |
The address of the individual or organization that is responsible for the billing account. |
Support |
The support level offer associated with an enrollment. |
system |
Metadata pertaining to creation and last modification of the resource. |
Tax |
A tax identifier for the billing account. |
Tax |
The status of the tax identifier. |
Tax |
The type of the tax identifier. |
AccountStatus
The current status of the billing account.
Name | Type | Description |
---|---|---|
Active |
string |
|
Deleted |
string |
|
Disabled |
string |
|
Expired |
string |
|
Extended |
string |
|
New |
string |
|
Other |
string |
|
Pending |
string |
|
Terminated |
string |
|
Transferred |
string |
|
UnderReview |
string |
AccountSubType
The tier of the account.
Name | Type | Description |
---|---|---|
Enterprise |
string |
|
Individual |
string |
|
None |
string |
|
Other |
string |
|
Professional |
string |
AccountType
The type of customer.
Name | Type | Description |
---|---|---|
Business |
string |
|
ClassicPartner |
string |
|
Enterprise |
string |
|
Individual |
string |
|
Internal |
string |
|
Other |
string |
|
Partner |
string |
|
Reseller |
string |
|
Tenant |
string |
AgreementType
The type of agreement.
Name | Type | Description |
---|---|---|
EnterpriseAgreement |
string |
|
MicrosoftCustomerAgreement |
string |
|
MicrosoftOnlineServicesProgram |
string |
|
MicrosoftPartnerAgreement |
string |
|
Other |
string |
BillingAccount
A billing account.
Name | Type | Description |
---|---|---|
id |
string |
Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" |
name |
string |
The name of the resource |
properties |
A billing account. |
|
systemData |
Azure Resource Manager metadata containing createdBy and modifiedBy information. |
|
tags |
object |
Dictionary of metadata associated with the resource. It may not be populated for all resource types. Maximum key/value length supported of 256 characters. Keys/value should not empty value nor null. Keys can not contain < > % & \ ? / |
type |
string |
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" |
BillingAccountListResult
A container for a list of resources
Name | Type | Description |
---|---|---|
nextLink |
string |
The link (url) to the next page of results. |
value |
The list of resources. |
BillingAccountProperties
A billing account.
Name | Type | Description |
---|---|---|
accountStatus |
The current status of the billing account. |
|
accountStatusReasonCode |
Reason for the specified billing account status. |
|
accountSubType |
The tier of the account. |
|
accountType |
The type of customer. |
|
agreementType |
The type of agreement. |
|
billingRelationshipTypes |
Identifies the billing relationships represented by a billing account. The billing relationship may be between Microsoft, the customer, and/or a third-party. |
|
displayName |
string |
The billing account name. |
enrollmentDetails |
The properties of an enrollment. |
|
hasNoBillingProfiles |
boolean |
Indicates whether or not the billing account has any billing profiles. |
hasReadAccess |
boolean |
Indicates whether user has read access to the billing account. |
notificationEmailAddress |
string |
Notification email address for legacy account. Available for agreement type Microsoft Online Services Program. |
primaryBillingTenantId |
string |
The tenant that was used to set up the billing account. By default, only users from this tenant can get role assignments on the billing account and all purchases are provisioned in this tenant. |
provisioningState |
The provisioning state of the resource during a long-running operation. |
|
qualifications |
string[] |
Qualifications for pricing on a billing account. Values may be Commercial, Education, Charity or Government. |
registrationNumber |
Describes the registration number of the organization linked with the billing account. |
|
soldTo |
The address of the individual or organization that is responsible for the billing account. |
|
taxIds |
A list of tax identifiers for the billing account. |
BillingAccountStatusReasonCode
Reason for the specified billing account status.
Name | Type | Description |
---|---|---|
Expired |
string |
|
ManuallyTerminated |
string |
|
Other |
string |
|
TerminateProcessing |
string |
|
Transferred |
string |
|
UnusualActivity |
string |
BillingRelationshipType
Identifies the billing relationships represented by a billing account. The billing relationship may be between Microsoft, the customer, and/or a third-party.
Name | Type | Description |
---|---|---|
CSPCustomer |
string |
|
CSPPartner |
string |
|
Direct |
string |
|
IndirectCustomer |
string |
|
IndirectPartner |
string |
|
Other |
string |
createdByType
The type of identity that created the resource.
Name | Type | Description |
---|---|---|
Application |
string |
|
Key |
string |
|
ManagedIdentity |
string |
|
User |
string |
EnrollmentDetails
The properties of an enrollment.
Name | Type | Description |
---|---|---|
billingCycle |
string |
The billing cycle for the enrollment. |
channel |
string |
The channel type of the enrollment. |
cloud |
string |
The cloud of the enrollment. |
countryCode |
string |
The country code of the enrollment. |
currency |
string |
The billing currency for the enrollment. |
endDate |
string |
The end date of the enrollment. |
extendedTermOption |
The billing account extension opted by the company. |
|
indirectRelationshipInfo |
The properties of an enrollment which are applicable only for indirect enrollments. |
|
invoiceRecipient |
string |
The contact who receives invoices of the enrollment. |
language |
string |
The language for the enrollment. |
markupStatus |
Markup status of enrollment, applicable only for indirect enrollments. |
|
poNumber |
string |
The purchase order number of the enrollment. |
startDate |
string |
The start date of the enrollment. |
supportCoverage |
string |
The support coverage period for the enrollment. |
supportLevel |
The support level offer associated with an enrollment. |
ErrorAdditionalInfo
The resource management error additional info.
Name | Type | Description |
---|---|---|
info |
object |
The additional info. |
type |
string |
The additional info type. |
ErrorDetail
The error detail.
Name | Type | Description |
---|---|---|
additionalInfo |
The error additional info. |
|
code |
string |
The error code. |
details |
The error details. |
|
message |
string |
The error message. |
target |
string |
The error target. |
ErrorResponse
Error response
Name | Type | Description |
---|---|---|
error |
The error object. |
ExtendedTermOption
The billing account extension opted by the company.
Name | Type | Description |
---|---|---|
Opted-In |
string |
|
Opted-Out |
string |
|
Other |
string |
IndirectRelationshipInfo
Identifies the billing profile that is linked to another billing profile in indirect purchase motion.
Name | Type | Description |
---|---|---|
billingAccountName |
string |
The billing account name of the partner or the customer for an indirect motion. |
billingProfileName |
string |
The billing profile name of the partner or the customer for an indirect motion. |
displayName |
string |
The display name of the partner or customer for an indirect motion. |
MarkupStatus
Markup status of enrollment, applicable only for indirect enrollments.
Name | Type | Description |
---|---|---|
Disabled |
string |
|
Locked |
string |
|
Other |
string |
|
Preview |
string |
|
Published |
string |
ProvisioningState
The provisioning state of the resource during a long-running operation.
Name | Type | Description |
---|---|---|
Canceled |
string |
|
Failed |
string |
|
New |
string |
|
Pending |
string |
|
Provisioning |
string |
|
Succeeded |
string |
RegistrationNumber
Describes the registration number of the organization linked with the billing account.
Name | Type | Description |
---|---|---|
id |
string |
The unique identification number of the organization linked with the billing account. |
required |
boolean |
Identifies if the registration number is required for the billing account. |
type |
string[] |
The types of registration number allowed based on the country of the billing account. |
SoldTo
The address of the individual or organization that is responsible for the billing account.
Name | Type | Description |
---|---|---|
addressLine1 |
string |
Address line 1. |
addressLine2 |
string |
Address line 2. |
addressLine3 |
string |
Address line 3. |
city |
string |
Address city. |
companyName |
string |
Company name. Optional for MCA Individual (Pay-as-you-go). |
country |
string |
Country code uses ISO 3166-1 Alpha-2 format. |
district |
string |
Address district. |
string |
Email address. |
|
firstName |
string |
First name. Optional for MCA Enterprise. |
isValidAddress |
boolean |
Indicates if the address is incomplete. |
lastName |
string |
Last name. Optional for MCA Enterprise. |
middleName |
string |
Middle name. |
phoneNumber |
string |
Phone number. |
postalCode |
string |
Postal code. |
region |
string |
Address region. |
SupportLevel
The support level offer associated with an enrollment.
Name | Type | Description |
---|---|---|
Developer |
string |
|
Other |
string |
|
Pro-Direct |
string |
|
Standard |
string |
systemData
Metadata pertaining to creation and last modification of the resource.
Name | Type | Description |
---|---|---|
createdAt |
string |
The timestamp of resource creation (UTC). |
createdBy |
string |
The identity that created the resource. |
createdByType |
The type of identity that created the resource. |
|
lastModifiedAt |
string |
The timestamp of resource last modification (UTC) |
lastModifiedBy |
string |
The identity that last modified the resource. |
lastModifiedByType |
The type of identity that last modified the resource. |
TaxIdentifier
A tax identifier for the billing account.
Name | Type | Description |
---|---|---|
country |
string |
The country of the tax identifier. |
id |
string |
The id of the tax identifier. |
scope |
string |
The scope of the tax identifier. |
status |
The status of the tax identifier. |
|
type |
The type of the tax identifier. |
TaxIdentifierStatus
The status of the tax identifier.
Name | Type | Description |
---|---|---|
Invalid |
string |
|
Other |
string |
|
Valid |
string |
TaxIdentifierType
The type of the tax identifier.
Name | Type | Description |
---|---|---|
BrazilCcmId |
string |
|
BrazilCnpjId |
string |
|
BrazilCpfId |
string |
|
CanadianFederalExempt |
string |
|
CanadianProvinceExempt |
string |
|
ExternalTaxation |
string |
|
IndiaFederalServiceTaxId |
string |
|
IndiaFederalTanId |
string |
|
IndiaPanId |
string |
|
IndiaStateCstId |
string |
|
IndiaStateGstINId |
string |
|
IndiaStateVatId |
string |
|
IntlExempt |
string |
|
LoveCode |
string |
|
MobileBarCode |
string |
|
NationalIdentificationNumber |
string |
|
Other |
string |
|
PublicSectorId |
string |
|
USExempt |
string |
|
VatId |
string |