Usage
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.
GET
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Response
200 - application/json
A list of customers with their associated events
The response is of type object[]
.