Events
List events for a subscription
Changed onRetrieve usage events for a specific subscription with optional filtering.
get/api/events/subscription/{subscriptionId}
Request
- Base URLhttps://api.novabilling.one
- AuthAPI key in header Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
subscriptionIdstring required
Subscription ID
Query parameters
codestring
Filter by metric code
fromstring
Start date (ISO 8601)
tostring
End date (ISO 8601)
pagenumber
perPagenumber
Response
List of events for the subscription
Example response
{
"data": [
{
"id": "clx1234567890",
"transactionId": "txn_unique_123",
"subscriptionId": "clxsub123",
"code": "api_calls",
"properties": {
"region": "us-east",
"bytes": 1024
}
}
],
"meta": {
"total": 150,
"page": 1,
"limit": 20,
"totalPages": 8
}
}Changes
- info
endpoint added
- info