JazaLedger.
What gets recorded
When you call
consume with a featureCode, the ledger entry stores that code in metadata — even if you also pass credits to override the debit amount. That keeps analytics and activity attributable to the right feature.
Each consume should carry an idempotency key from your backend so retries do not double-charge.
Why it matters
- Trace a balance back to purchases and feature usage.
- Safe retries with idempotency.
- Dashboard analytics and credit activity stay consistent with what the SDKs report.