Share via


Products - Get

Gets a product by ID. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.

GET https://management.azure.com/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/products/{productName}?api-version=2024-04-01

URI Parameters

Name In Required Type Description
billingAccountName
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.

productName
path True

string

pattern: ^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$

The ID that uniquely identifies a product.

api-version
query True

string

The version of the API to be used with the client request. The current version is 2024-04-01.

Responses

Name Type Description
200 OK

Product

A product.

Other Status Codes

ErrorResponse

Error response describing why the operation failed.

Examples

ProductsGet

Sample request

GET https://management.azure.com/providers/Microsoft.Billing/billingAccounts/00000000-0000-0000-0000-000000000000:00000000-0000-0000-0000-000000000000_2019-05-31/products/11111111-1111-1111-1111-111111111111?api-version=2024-04-01

Sample response

{
  "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"
}

Definitions

Name Description
AutoRenew

Indicates whether auto renewal is turned on or off for a product.

createdByType

The type of identity that created the resource.

ErrorAdditionalInfo

The resource management error additional info.

ErrorDetail

The error detail.

ErrorResponse

Error response

LastCharge

The last month charges.

Product

A product.

ProductProperties

A product.

ProductStatus

The status of the product.

Reseller

Details of the reseller.

systemData

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

ErrorAdditionalInfo[]

The error additional info.

code

string

The error code.

details

ErrorDetail[]

The error details.

message

string

The error message.

target

string

The error target.

ErrorResponse

Error response

Name Type Description
error

ErrorDetail

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

ProductProperties

A product.

systemData

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"

ProductProperties

A product.

Name Type Description
autoRenew

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

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

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

ProductStatus

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

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

createdByType

The type of identity that last modified the resource.