Products - List By Billing Account
Lists the products for a billing account. These don't include products billed based on usage. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement or Microsoft Partner Agreement.
GET https://management.azure.com/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/products?api-version=2024-04-01
GET https://management.azure.com/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/products?api-version=2024-04-01&filter={filter}&orderBy={orderBy}&top={top}&skip={skip}&count={count}&search={search}
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
billing
|
path | True |
string pattern: ^([0-9]+|([Pp][Cc][Nn]\.[A-Za-z0-9]+)|[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}(:[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}_[0-9]{4}(-[0-9]{2}){2})?)$ |
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 2024-04-01. |
count
|
query |
boolean |
The count query option allows clients to request a count of the matching resources included with the resources in the response. |
|
filter
|
query |
string |
The filter query option allows clients to filter a collection of resources that are addressed by a request URL. |
|
order
|
query |
string |
The orderby query option allows clients to request resources in a particular order. |
|
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 products. It contains a list of available product summaries in reverse chronological order by purchase date. |
|
Other Status Codes |
Error response describing why the operation failed. |
Examples
ProductsListByBillingAccount
Sample request
Sample response
{
"value": [
{
"id": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31/products/90000000-0000-0000-0000-000000000000",
"name": "90000000-0000-0000-0000-000000000000",
"properties": {
"autoRenew": "On",
"billingProfileId": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31/billingProfiles/xxxx-xxxx-xxx-xxx",
"billingProfileDisplayName": "Billing Profile Display Name",
"displayName": "My product",
"invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31/billingProfiles/xxxx-xxxx-xxx-xxx/invoiceSections/yyyy-yyyy-yyy-yyy",
"invoiceSectionDisplayName": "Invoice Section Display Name",
"productType": "Seat-Based Product Type",
"productTypeId": "XYZ56789",
"skuId": "0001",
"skuDescription": "SKU Description",
"purchaseDate": "2023-01-04T22:39:34.2606750Z",
"quantity": 1,
"status": "Active"
},
"type": "Microsoft.Billing/billingAccounts/products"
},
{
"id": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31/products/90000000-0000-0000-0000-000000000001",
"name": "90000000-0000-0000-0000-000000000001",
"properties": {
"autoRenew": "On",
"billingProfileId": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31/billingProfiles/xxxx-xxxx-xxx-xxx",
"billingProfileDisplayName": "Billing Profile Display Name",
"displayName": "Test product",
"invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31/billingProfiles/xxxx-xxxx-xxx-xxx/invoiceSections/yyyy-yyyy-yyy-yyy",
"invoiceSectionDisplayName": "Invoice Section Display Name",
"productType": "Software Product Type",
"productTypeId": "EFG456",
"skuId": "0001",
"skuDescription": "SKU Description",
"purchaseDate": "2023-01-06T22:39:34.2606750Z",
"quantity": 1,
"status": "Active"
},
"type": "Microsoft.Billing/billingAccounts/products"
},
{
"id": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31/products/90000000-0000-0000-0000-000000000002",
"name": "90000000-0000-0000-0000-000000000002",
"properties": {
"autoRenew": "On",
"billingProfileId": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31/billingProfiles/xxxx-xxxx-xxx-xxx",
"billingProfileDisplayName": "Billing Profile Display Name",
"displayName": "Dev product",
"invoiceSectionId": "/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31/billingProfiles/xxxx-xxxx-xxx-xxx/invoiceSections/yyyy-yyyy-yyy-yyy",
"invoiceSectionDisplayName": "Invoice Section Display Name",
"productType": "Reservation Product Type",
"productTypeId": "JKL789",
"skuId": "0001",
"skuDescription": "SKU Description",
"purchaseDate": "2023-01-05T22:39:34.2606750Z",
"quantity": 1,
"status": "Suspended"
},
"type": "Microsoft.Billing/billingAccounts/products"
}
]
}
Definitions
Name | Description |
---|---|
Auto |
Indicates whether auto renewal is turned on or off for a product. |
created |
The type of identity that created the resource. |
Error |
The resource management error additional info. |
Error |
The error detail. |
Error |
Error response |
Last |
The last month charges. |
Product |
A product. |
Product |
A container for a list of resources |
Product |
A product. |
Product |
The status of the product. |
Reseller |
Details of the reseller. |
system |
Metadata pertaining to creation and last modification of the resource. |
AutoRenew
Indicates whether auto renewal is turned on or off for a product.
Value | Description |
---|---|
Off | |
On |
createdByType
The type of identity that created the resource.
Value | Description |
---|---|
User | |
Application | |
ManagedIdentity | |
Key |
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. |
LastCharge
The last month charges.
Name | Type | Description |
---|---|---|
currency |
string |
The currency for the amount value. |
value |
number |
The amount value. For example, if the currency is USD, then a value of 600 would be $600.00. |
Product
A product.
Name | Type | Description |
---|---|---|
id |
string (arm-id) |
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 product. |
|
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" |
ProductListResult
A container for a list of resources
Name | Type | Description |
---|---|---|
nextLink |
string |
The link (url) to the next page of results. |
value |
Product[] |
The list of resources. |
ProductProperties
A product.
Name | Type | Description |
---|---|---|
autoRenew |
Indicates whether auto renewal is turned on or off for a product. |
|
availabilityId |
string |
The availability of the product. |
billingFrequency |
string |
The frequency at which the product will be billed. |
billingProfileDisplayName |
string |
The name of the billing profile to which the product is billed. |
billingProfileId |
string |
The ID of the billing profile to which the product is billed. |
customerDisplayName |
string |
The name of the customer for whom the product was purchased. The field is applicable only for Microsoft Partner Agreement billing account. |
customerId |
string |
The ID of the customer for whom the product was purchased. The field is applicable only for Microsoft Partner Agreement billing account. |
displayName |
string |
The display name of the product. |
endDate |
string |
The date when the product will be renewed or canceled. |
invoiceSectionDisplayName |
string |
The name of the invoice section to which the product is billed. |
invoiceSectionId |
string |
The ID of the invoice section to which the product is billed. |
lastCharge |
The last month charges. |
|
lastChargeDate |
string |
The date of the last charge. |
productType |
string |
The description of the type of product. |
productTypeId |
string |
The ID of the type of product. |
purchaseDate |
string |
The date when the product was purchased. |
quantity |
integer (int64) |
The quantity purchased for the product. |
reseller |
Reseller for this product. The fields is not available for Microsoft Partner Agreement products. |
|
skuDescription |
string |
The sku description of the product. |
skuId |
string |
The sku ID of the product. |
status |
The status of the product. |
|
tenantId |
string |
The id of the tenant in which the product is used. |
ProductStatus
The status of the product.
Value | Description |
---|---|
Other | |
Active | |
Disabled | |
Deleted | |
PastDue | |
Expiring | |
Expired | |
AutoRenew | |
Canceled | |
Suspended |
Reseller
Details of the reseller.
Name | Type | Description |
---|---|---|
description |
string |
The name of the reseller. |
resellerId |
string |
The MPN ID of the reseller. |
systemData
Metadata pertaining to creation and last modification of the resource.
Name | Type | Description |
---|---|---|
createdAt |
string (date-time) |
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 (date-time) |
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. |