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
- info
added the new optional request property
- info
added the new optional request property
- info
- warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - warning
added the new
too_many_requestsenum value to theresponse property for the response status - warning
added the new
too_many_requestsenum value to theresponse property for the response status
- warning