Credit usage date filters
We've added more granular date filters for retrieving credit usage data.
🆕 What's new?
You can now pass specific start and end dates when retrieving credit usage data. Before this change it was only possible to pass an enum value for the desired period (e.g. last week, month, year, etc.).
⭐️ Why it matters
This update empowers you to build granular, time-based customer usage charts, providing your users with deeper insights into how they consume their credits. By isolating usage data within specific windows, you can better visualize trends, identify peak usage periods, and help customers manage their balances more effectively.
⚒️ Get started
To start building your own usage charts, head over to our API reference to see the full schema. If you use our SDKs, simply pass the startDate and endDate parameters when retrieving credit usage.
📦 Availability
The new date filters are available in the Stigg app and across our entire developer ecosystem, including GraphQL, REST, and our associated SDKs:
REST-based SDKs
- TypeScript: v0.1.0-alpha.31
- Python: v0.1.0-alpha.31
- Go: v0.1.0-alpha.29
- Java: v0.1.0-alpha.52
- Ruby: v0.1.0-alpha.29
GraphQL-based SDKs
- Node.js: v4.40.0
- Python / Java / Go / .NET: v6.10.0
- Ruby: v6.8.0