What problem does it solve? Building prepaid or included-credit billing for AI tokens, API calls, or compute requires correctly wiring credit entitlements, balances, ledger entries, rollover, expiry, and overage rules—mistakes cause double-charging, lost audit trails, or race conditions in enforcement. ## Core Features & Use Cases - Credit Entitlement Setup: Create custom-unit or fiat credit entitlements with precision, expiry, rollover, and overage configuration using the Dodo Payments TypeScript SDK. - Balance & Ledger Operations: Read customer balances, grant or deduct credits with idempotency keys, and iterate the immutable ledger for audit trails. - Meter-to-Credit Automation: Link usage-based meters to credit pools with meter_units_per_credit conversion and FIFO deduction, plus handle credit webhooks like credit.balance_low. - Use Case: An AI SaaS includes 100,000 token credits per subscription cycle, deducts credits from metered model usage, notifies customers at low balance, and sells one-time top-up packs through checkout sessions. ## Quick Start Ask your agent to create a Dodo Payments credit entitlement for AI tokens with rollover and overage, then wire it to a subscription product and a usage meter.