How Credits Work
Three steps from configuration to settlement. No custom billing code.
Configure
Set up rate plans with cash credits, bonus units, and waterfall priority. Choose PREPAID, HYBRID, or POSTPAID billing mode per offering.
Auto-Provision
When a customer subscribes, their wallet is created automatically and topped up with initial credits from the plan. Zero manual work.
Waterfall Settle
At each billing cycle, the pipeline deducts from credits in priority order: promotional → bonus units → cash balance. Overages go to invoice.
Waterfall Deduction Architecture
Aforo Waterfall Settlement: Automatically prioritizing promo burn before cash depletion.
Everything You Need for Credits Billing
Nine capabilities. Three stakeholders. One platform.
Financial Control
Built for the CFOASC 606 & Deferred Revenue Tracking
Prepaid credits are liabilities, not revenue. Aforo's immutable ledger tracks every burn and breakage (expiration) with exact timestamps, giving your CFO journal-entry-ready data for audit season.
Real-Time Analytics
Track credit utilization, wallet balances, waterfall allocation breakdowns. Dashboard KPIs for your finance team.
Waterfall Deduction
Stop manually writing scripts to deduct free tokens before cash. Configure strict burn orders (Promo → Bonus → Cash) and let the settlement pipeline handle the math.
Product & Growth
Built for the CPOGTM Velocity (Promos & Free Trials)
Launch "10,000 free tokens expiring in 14 days" campaigns without filing a Jira ticket. Product teams can structure complex promotional mechanics entirely through configuration.
Hybrid Billing
PREPAID, POSTPAID, or HYBRID per offering. Wallet covers what it can, overage goes to invoice automatically.
6 Pricing Models
Per-unit, flat rate, tiered, graduated, included quota with block pricing, percentage. All work with credits.
Architecture & Scale
Built for the CTOZero Double-Spending (Escrow Holds)
When an AI agent makes 50 concurrent API calls, homegrown wallets break. Aforo uses pessimistic DB locking to reserve funds before processing, guaranteeing you never give away free compute.
curl -X POST https://api.aforo.ai/v1/wallets/debit \
-H "Authorization: Bearer sk_live_..." \
-d '{
"customer_id": "cust_8923",
"amount": 50,
"strategy": "WATERFALL",
"idempotency_key": "req_9982"
}'Prepaid Wallets
Per-customer wallets with real-time balance tracking. Auto-provisioned on subscription, manual top-up, auto-refill.
Multi-Product Quotas
Unit wallets track per-metric quotas (API calls, tokens, sessions). Each with independent balance, expiry, and rollover.
Built for Real Use Cases
From API metering to LLM token burn, every billing pattern, handled.
Ready to deprecate your homegrown billing monolith?
Get ASC 606 compliance, pessimistic locking, and real-time waterfall deduction out of the box. Start testing in your sandbox today.
Deepen Your Monetization Strategy
Credits billing is one piece. Explore the full platform.
API Monetization
Turn every API call into a revenue event. Gateway metering, rate limiting, and tiered pricing for developer platforms.
AI & Agent Billing
Meter LLM tokens, agent sessions, and tool invocations. Built for the scale and concurrency of AI-native products.
Pricing Engine
Six pricing models, rate plan versioning, M:N metric configs. The calculation layer behind every invoice.
Billing Pipeline
10-stage settlement pipeline, from quota check to tax routing. Handles prepaid, postpaid, and hybrid in one flow.