Retrieves subscription change history for all products and subscriptions modified within the last 90 days. The API provides an audit trail of subscription updates, including quantity changes, status changes, pricing updates, ownership information, and the user who initiated the change.
Endpoint
{{apiUrl}}/api/SubscriptionHistory/report
Endpoint Parameters
| Parameter | Required | Description |
|---|
{{apiUrl}} | Yes | C3 Portal API URL. |
Request Headers
| Header | Value |
|---|
| Authorization | Bearer <access_token> |
| Content-Type | application/json |
Request Body
No request body is required for this endpoint.
Successful Response
A successful request returns subscription change history for the previous 90 days. Each record represents a subscription modification event including quantity changes, status updates, pricing updates, and ownership information.
Sample Response
{
"OperationType": null,
"Status": "Success",
"RequestCorrelationID": "d4454846-d8c3-466d-817a-42f6d9398deb",
"ErrorMessage": null,
"ErrorDetail": null,
"Data": [
{
"CustomerID": "BFB67FA2-FA0A-4451-B3E5-2A905276DDFD",
"CustomerName": "Contoso",
"TenantID": "07c0adc5-48b1-4b92-9da4-0a603317de5d",
"SubscriptionID": "e0929157-458c-426e-9e4c-60148da29b37",
"EntityName": "Customer",
"LinkedTenantName": "Contoso",
"ProductName": "Microsoft 365 E1",
"OldQuantity": 1,
"NewQuantity": 6,
"DateofChange": "2024-10-16T11:40:15.353",
"OldStatus": "Active",
"NewStatus": "Active",
"OldPrice": 40.0000,
"NewPrice": 40.0000,
"CreatedBy": "user@contoso.com",
"OwnerName": "Contoso"
}
]
}
Response Properties
| Property | Description |
|---|
| OperationType | Reserved for internal use. Can be ignored. |
| Status | Indicates the result of the request. Possible values: Success or 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 subscription history records. |
Subscription History Attributes
| Attribute | Description |
|---|
| CustomerID | Unique identifier for the customer in C3. |
| CustomerName | Name of the customer. |
| TenantID | Microsoft tenant identifier associated with the subscription. |
| SubscriptionID | Unique identifier of the subscription. |
| EntityName | Owner type for the subscription. Possible values include Customer, Site, and Department. |
| LinkedTenantName | Name of the associated Microsoft tenant configured in C3. |
| ProductName | Name of the subscribed product. |
| OldQuantity | License quantity before the subscription update. |
| NewQuantity | License quantity after the subscription update. |
| DateofChange | Date and time when the subscription change occurred. |
| OldStatus | Status of the subscription before the update. Possible values: Active, Suspended, Deleted, Disabled. |
| NewStatus | Current status of the subscription after the update. Possible values: Active, Suspended, Deleted, Disabled. |
| OldPrice | Subscription price before the update. |
| NewPrice | Subscription price after the update. |
| CreatedBy | User who initiated the subscription modification. |
| OwnerName | Name of the owning entity. For Customer-owned subscriptions, this is the customer name. For Site/Departmenet - owned subscriptions, this is the site name. |
Error Response
If the request cannot be processed or authenticated, the API returns an error response containing details about the failure.
Error Response Properties
| Property | Description |
|---|
| OperationType | Reserved for internal use. Can be ignored. |
| Status | Indicates the result of the request. Possible values: Success or Error. |
| RequestCorrelationID | Unique identifier generated by C3 for troubleshooting purposes. |
| ErrorMessage | Summary of the error encountered. |
| ErrorDetail | Additional error details. |