Customers - List By Billing Account
Lists the customers that are billed to a billing account. The operation is supported only for billing accounts with agreement type Microsoft Partner Agreement.
GET https://management.azure.com/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/customers?api-version=2020-05-01
GET https://management.azure.com/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/customers?api-version=2020-05-01&$search={$search}&$filter={$filter}
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
billing
|
path | True |
string |
The ID that uniquely identifies a billing account. |
api-version
|
query | True |
string |
The version of the API to be used with the client request. The current version is 2020-05-01. |
$filter
|
query |
string |
May be used to filter the list of customers. |
|
$search
|
query |
string |
Used for searching customers by their name. Any customer with name containing the search text will be included in the response |
Responses
Name | Type | Description |
---|---|---|
200 OK |
OK. The request has succeeded. |
|
Other Status Codes |
Error response describing why the operation failed. |
Security
azure_auth
Azure Active Directory OAuth2 Flow.
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
Name | Description |
---|---|
user_impersonation | impersonate your user account |
Examples
CustomersListByBillingAccount
Sample Request
GET https://management.azure.com/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/customers?api-version=2020-05-01
Sample Response
{
"value": [
{
"id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/customers/22000000-0000-0000-0000-000000000000",
"name": "22000000-0000-0000-0000-000000000000",
"type": "Microsoft.Billing/billingAccounts/customers",
"properties": {
"billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000",
"billingProfileDisplayName": "Contoso Operations Billing",
"displayName": "customer1"
}
},
{
"id": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/customers/22000000-0000-0000-0000-000000000011",
"name": "22000000-0000-0000-0000-000000000011",
"type": "Microsoft.Billing/billingAccounts/customers",
"properties": {
"billingProfileId": "/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/11000000-0000-0000-0000-000000000000",
"billingProfileDisplayName": "Contoso Operations Billing",
"displayName": "customer2"
}
}
]
}
Definitions
Name | Description |
---|---|
Azure |
Details of the Azure plan. |
Customer |
A partner's customer. |
Customer |
The list of customers. |
Error |
The details of the error. |
Error |
Error response indicates that the service is not able to process the incoming request. The reason is provided in the error message. |
Error |
|
Reseller |
Details of the reseller. |
AzurePlan
Details of the Azure plan.
Name | Type | Description |
---|---|---|
skuDescription |
string |
The sku description. |
skuId |
string |
The sku id. |
Customer
A partner's customer.
Name | Type | Description |
---|---|---|
id |
string |
Resource Id. |
name |
string |
Resource name. |
properties.billingProfileDisplayName |
string |
The name of the billing profile for the invoice section. |
properties.billingProfileId |
string |
The ID of the billing profile for the invoice section. |
properties.displayName |
string |
The name of the customer. |
properties.enabledAzurePlans |
Azure plans enabled for the customer. |
|
properties.resellers |
Reseller[] |
The list of resellers for which an Azure plan is enabled for the customer. |
type |
string |
Resource type. |
CustomerListResult
The list of customers.
Name | Type | Description |
---|---|---|
nextLink |
string |
The link (url) to the next page of results. |
totalCount |
number |
Total number of records. |
value |
Customer[] |
The list of customers. |
ErrorDetails
The details of the error.
Name | Type | Description |
---|---|---|
code |
string |
Error code. |
details |
The sub details of the error. |
|
message |
string |
Error message indicating why the operation failed. |
target |
string |
The target of the particular error. |
ErrorResponse
Error response indicates that the service is not able to process the incoming request. The reason is provided in the error message.
Name | Type | Description |
---|---|---|
error |
The details of the error. |
ErrorSubDetails
Name | Type | Description |
---|---|---|
code |
string |
Error code. |
message |
string |
Error message indicating why the operation failed. |
target |
string |
The target of the particular error. |
Reseller
Details of the reseller.
Name | Type | Description |
---|---|---|
description |
string |
The name of the reseller. |
resellerId |
string |
The MPN ID of the reseller. |