--- title: "Get License Consumption Report" slug: "get-license-consumption-report" updated: 2026-10-07T14:14:10Z published: 2026-10-07T14:14:10Z canonical: "docs.cspcontrolcenter.com/get-license-consumption-report" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.cspcontrolcenter.com/llms.txt > Use this file to discover all available pages before exploring further. # Get License Consumption Report Retrieves license consumption and utilization details for a specific customer tenant. The API returns purchased, assigned, available, and total license counts for each subscribed product, helping partners monitor license allocation and identify unused licenses across a customer's Microsoft tenant. ## Endpoint ```custom {{apiUrl}}/api/licenseConsumptionReport/customer/{{customerId}}/tenant/{{tenantId}} ``` ## Endpoint Parameters | Parameter | Required | Description | | --- | --- | --- | | `{{apiUrl}}` | Yes | C3 Portal API URL. | | `{{customerId}}` | Yes | Unique customer identifier generated by C3. | | `{{tenantId}}` | Yes | Microsoft Entra ID tenant identifier associated with the customer. | ### Example Workflow This API requires both the C3 Customer ID and Microsoft Tenant ID. These values can be obtained using the [**Get Active Customers Details**](/v1/docs/get-active-customers-details) API. ## Request Headers | Header | Value | | --- | --- | | Authorization | Bearer | | Content-Type | application/json | ## Request Body No request body is required for this endpoint. ## Successful Response A successful request returns license utilization details for all subscribed products within the specified tenant, including allocated, consumed, and available licenses. ### Sample Response ```json { "OperationType": null, "Status": "Success", "RequestCorrelationID": "da879f7a-732a-4045-84bb-b1777a1ffc3c", "ErrorMessage": null, "ErrorDetail": null, "Data": [ { "ActiveUnits": 65, "AvailableUnits": 5, "TotalUnits": 65, "ProductName": "Office 365 G1 GCC", "ProductSkuId": "3f4babde-90ec-47c6-995d-d223749065d1", "ConsumedUnits": 60, "SubscriptionNames": "Office 365 G1 GCC (Monthly)" } ] } ``` ### Response Properties | Property | Description | | --- | --- | | OperationType | Reserved for internal use. Can be ignored. | | Status | Indicates the status of the request. Possible values: Success, Error. | | RequestCorrelationID | Unique identifier generated by C3 for request tracking and troubleshooting. | | ErrorMessage | Error message returned if request processing fails. | | ErrorDetail | Additional error information. | | Data | Collection of license consumption records. | ### License Consumption Attributes | Attribute | Description | | --- | --- | | ActiveUnits | Total licenses purchased through the partner relationship. | | AvailableUnits | Unassigned licenses currently available for allocation. | | TotalUnits | Total licenses available within the customer tenant across all authorized CSP relationships. | | ProductName | Name of the subscribed product or service. | | ProductSkuId | Unique SKU identifier associated with the product. | | ConsumedUnits | Number of licenses currently assigned to users. | | SubscriptionNames | Subscription name including billing frequency information. | ## Error Response The API validates the supplied Customer ID and Tenant ID. If either value is invalid, the API returns a **400 Bad Request** response containing validation details. ### Sample Error Response ```json { "OperationType": null, "Status": "Error", "RequestCorrelationID": "e002cf54-bbaf-4838-8a66-f016c70c907a", "ErrorMessage": "ERROR_DESC_BAD_INPUT", "ErrorDetail": "ERROR_DESC_BAD_INPUT", "Data": [ { "Attribute": "CustomerId", "AttributeKey": "CUSTOMER_C3ID", "Message": "INVALID_C3_CUSTOMER_ID", "DefaultMessage": "Invalid C3 Customer ID", "Value": "9582D9F2-1234945-AB56-DADED948C1C4" }, { "Attribute": "TenantId", "AttributeKey": "TENANT_ID", "Message": "INVALID_TENANT_ID", "DefaultMessage": "Invalid Tenant ID", "Value": "0f96f6b1-fe7f-4322-567-152d0f2ff171" } ] } ``` ### Error Response Properties | Property | Description | | --- | --- | | OperationType | Reserved for internal use. Can be ignored. | | Status | Indicates the status of the request. Possible values: Success, Error. | | RequestCorrelationID | Unique identifier generated by C3 for troubleshooting purposes. | | ErrorMessage | High-level error message. | | ErrorDetail | Additional error details. | | Data | Collection of validation errors. | ### Validation Error Attributes | Attribute | Description | | --- | --- | | Attribute | Name of the invalid request parameter. | | AttributeKey | Internal system identifier for the parameter. | | Message | Error code describing the validation failure. | | DefaultMessage | User-friendly description of the validation error. | | Value | Value supplied in the request. |