Analytics
Get payment analytics
Changed onRetrieve payment metrics including success rate, failure rate, total volume, and breakdown by payment provider.
get/api/analytics/payments
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'
providerstring
Filter by payment provider name
Response
Payment metrics and provider breakdown
Example response
{
"totalPayments": 200,
"succeeded": 180,
"failed": 15,
"pending": 5,
"successRate": "90.00"
}Changes
- info
added the media type
application/jsonfor the response with the status
- info