Events
Get usage statistics
Changed onUse when building usage reports or dashboards across events. Supports filters and grouping; defaults to last 7 days if no range provided.
post/events/usage
Request
- Base URLhttps://us.api.flexprice.io/v1
- URLhttps://us.api.flexprice.io/v1/events/usage
- AuthAPI key in header x-api-key
Request body
Example request
{
"billing_anchor": "2024-03-05T14:30:45.123456789Z",
"customer_id": "customer456",
"end_time": "2024-03-20T00:00:00Z",
"event_name": "api_request",
"external_customer_id": "customer456",
"property_name": "request_size",
"start_time": "2024-03-13T00:00:00Z"
}Response
OK
Changes
- warning
added the new
not_implementedenum value to theresponse property for the response status - warning
added the new
not_implementedenum value to theresponse property for the response status
- warning
- breaking
the
request property format changed from no format todate-time - breaking
the
request property format changed from no format todate-time - breaking
the
request property format changed from no format todate-time
- breaking