Get Items
Retrieve Usage-Based Billable Items
Fetch a list of usage-based billable items, optionally filtered by a specific customer ID or external customer ID.
Overview
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.
Parameters
- customer_id (optional): The unique identifier of the customer to filter events by.
- external_customer_id (optional): The external identifier of the customer to filter events by.
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Response
The unique identifier for the customer.
The email address of the customer. Optional and can be used for communication.
The name of the customer. This field is optional and can be used for display purposes.
An external identifier for the customer mapped by external systems.
A list of events associated with the customer. Each event is represented by an event_id and event_name.