Get Product History

Prev Next

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

ParameterRequiredDescription
{{apiUrl}}YesC3 Portal API URL.

Request Headers

HeaderValue
AuthorizationBearer <access_token>
Content-Typeapplication/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

PropertyDescription
OperationTypeReserved for internal use. Can be ignored.
StatusIndicates the result of the request. Possible values: Success or Error.
RequestCorrelationIDUnique identifier generated by C3 for request tracking and troubleshooting.
ErrorMessageError message returned if request processing fails.
ErrorDetailAdditional error information.
DataCollection of subscription history records.

Subscription History Attributes

AttributeDescription
CustomerIDUnique identifier for the customer in C3.
CustomerNameName of the customer.
TenantIDMicrosoft tenant identifier associated with the subscription.
SubscriptionIDUnique identifier of the subscription.
EntityNameOwner type for the subscription. Possible values include Customer, Site, and Department.
LinkedTenantNameName of the associated Microsoft tenant configured in C3.
ProductNameName of the subscribed product.
OldQuantityLicense quantity before the subscription update.
NewQuantityLicense quantity after the subscription update.
DateofChangeDate and time when the subscription change occurred.
OldStatusStatus of the subscription before the update. Possible values: Active, Suspended, Deleted, Disabled.
NewStatusCurrent status of the subscription after the update. Possible values: Active, Suspended, Deleted, Disabled.
OldPriceSubscription price before the update.
NewPriceSubscription price after the update.
CreatedByUser who initiated the subscription modification.
OwnerNameName 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

PropertyDescription
OperationTypeReserved for internal use. Can be ignored.
StatusIndicates the result of the request. Possible values: Success or Error.
RequestCorrelationIDUnique identifier generated by C3 for troubleshooting purposes.
ErrorMessageSummary of the error encountered.
ErrorDetailAdditional error details.