> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List Billing Accounts

List all the Billing Accounts.

<Note>
  External Documentation

  To learn more, visit the [Azure documentation](https://learn.microsoft.com/en-us/rest/api/billing/billing-accounts/list?view=rest-billing-2024-04-01\&tabs=HTTP).
</Note>

## Basic Parameters

<div className="integrations-table">
  | Parameter | Description                                                                                                                     |
  | --------- | ------------------------------------------------------------------------------------------------------------------------------- |
  | Expand    | used to expand the address, invoice sections and billing profiles. Expand is allowed for SoldTo and EnrollmentDetails/PONumber. |
  | Filter    | The filter query option allows clients to filter a collection of resources that are addressed by a request URL.                 |
</div>

## Advanced Parameters

<div className="integrations-table">
  | Parameter                            | Description                                                                                                                                                     |
  | ------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | Include All                          | When true, results will include Billing Accounts that the user does not have a direct role assignment on.                                                       |
  | Include All Without Billing Profiles | When true, results will include Billing Accounts that are not fully created.                                                                                    |
  | Include Deleted                      | When true, results will include any billing accounts in a deleted state.                                                                                        |
  | Include Pending Agreement            | Includes billing accounts with agreement pending signature that the user has access to.                                                                         |
  | Include Resellee                     | Includes the customer's billing account of Microsoft Partner Agreement that the user has access to.                                                             |
  | Legal Owner OID                      | Must be combined with legalOwnerTID, results will only include Billing Accounts for whom is legally responsible for the Billing Accounts.                       |
  | Legal Owner TID                      | Must be combined with legalOwnerOID, results will only include Billing Accounts for whom is legally responsible for the Billing Accounts.                       |
  | Search                               | 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                                 | This option requests the number of items in the queried collection that are to be skipped and not included in the result.                                       |
  | Top                                  | This option requests the number of items in the queried collection to be included in the result. The maximum supported value for top is 50.                     |
</div>

## Example Output

```json theme={"dark"}
{
	"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"
			}
		}
	]
}
```

## Workflow Library Example

[List Billing Accounts with Azure and Send Results Via Email](https://library.blinkops.com/workflows/list-billing-accounts-with-azure-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/list-billing-accounts-with-azure-and-send-results-via-email/canvas" />
</div>
