Fetch a list of usage-based billable items, optionally filtered by a specific customer ID or external customer ID.
This endpoint allows you to retrieve billable items along with associated customer details from the database. You can filter the results by either a customer ID or external customer ID. If no filter is provided, the endpoint returns billable items for all customers.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
A list of customers with their associated events
The unique identifier for the customer.
"9f8b47e4-1aad-4f08-b1e3-d9e4b4b85e8f"
An external identifier for the customer mapped by external systems.
"ext789"
The name of the customer. This field is optional and can be used for display purposes.
"John Doe"
The email address of the customer. Optional and can be used for communication.
A list of events associated with the customer. Each event is represented by an event_id and event_name.