Analytics
Get subscription analytics
Changed onRetrieve subscription metrics including active count, churn rate, new subscriptions, and status distribution.
get/api/analytics/subscriptions
Request
- Base URLhttps://api.novabilling.one
- AuthAPI key in header Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
dateFromstring
Example:2025-01-01
dateTostring
Example:2025-12-31
currencystring
groupBy'day' | 'week' | 'month'
Response
Subscription metrics and trends
Example response
{
"total": 100,
"active": 85,
"canceled": 5,
"trialing": 8,
"paused": 2,
"newSubscriptions": 12,
"churnRate": "5.00",
"retentionRate": "95.00"
}Changes
- info
added the media type
application/jsonfor the response with the status
- info