Real-Time Credit Ingestion: Instant Balance Updates and Synchronous Deductions
We've enhanced credit ingestion to support real-time balance updates. Applications can now deduct credits synchronously and receive an updated balance immediately in the response, enabling real-time usage experiences without waiting for ingestion to complete.
🆕 What's New
Previously, credits were consumed through reportEvent, which processes usage asynchronously. As a result, credit balances were only updated after ingestion, introducing a delay of several seconds before the latest balance was available.
With this release, reportUsage now supports synchronous credit deductions.
When usage is reported:
- Credits are deducted immediately
- The updated balance is returned in the
reportUsageresponse - Applications can display current credit balances without waiting for ingestion pipelines to complete
⭐️ Why It Matters
Many usage-based products rely on real-time credit visibility and enforcement.
With synchronous deductions, you can:
- Show customers accurate credit balances immediately after usage occurs
- Enforce credit limits in real time
- Build AI, API, and consumption-based products without balance update delays
- Deliver a more responsive usage experience
Whether you're charging credits per API call, AI request, or other metered action, customers can now see the impact of their usage instantly.
⚒️ Getting Started
Use reportUsage to report and consume credits synchronously.
The updated balance is returned directly in the API response and is supported by the latest Stigg SDKs.
📦 Availability
To consume credits synchronously and receive updated balances in the reportUsage response, upgrade to one of the following SDK versions:
REST-based SDKs
- Python: v0.1.0-beta.29
- Go: v0.1.0-beta.30
- Java: v0.1.0-beta.28
- Ruby: v0.1.0-beta.32
GraphQL-based SDKs
- Node.js: v4.46.0
- Python / Go / .NET: v6.14.0
- Java: v6.15.0
- Ruby: v6.12.0