License API #
GET /analytics/licenses #
Returns license portfolio analytics including utilization rates, lifecycle data, and renewal forecast.
URL: GET /wp-json/dmsilm/v1/analytics/licenses
Parameters:
| Parameter | Type | Default | Description |
|---|---|---|---|
date_from | string | 30 days ago | Start date |
date_to | string | Today | End date |
product_id | integer | null | Filter to specific product |
Response:
{
"success": true,
"data": {
"active_licenses": 1248,
"expired_licenses": 312,
"utilization_rate": 67.4,
"avg_activations_per_license": 2.3,
"renewal_forecast": {
"next_30_days": { "licenses": 87, "revenue_at_stake": 8700.00 },
"next_60_days": { "licenses": 156, "revenue_at_stake": 15600.00 },
"next_90_days": { "licenses": 224, "revenue_at_stake": 22400.00 }
},
"by_status": {
"active": 1248,
"expired": 312,
"suspended": 24,
"cancelled": 89
}
}
}
