usage-based-billing
OfficialCharge customers for what they actually use.
Finance & Accounting#subscription#events ingestion#usage-based billing#metering#pricing per unit#Dodo Payments
Authordodopayments
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Usage-based billing lets teams bill customers precisely for the actual usage of services, eliminating guesswork and disputes from flat-rate models.
Core Features & Use Cases
- Metered pricing: Define meters (counts, sums, max, or last) and attach them to products to bill per unit of usage.
- Event ingestion: Ingest usage events with event_name and metadata to drive billing, in real time or batched.
- Flexible pricing & subscriptions: Apply free thresholds, overages, and hybrid models that combine with subscriptions for predictable revenue.
Quick Start
- Create a meter named "API Requests" with Event Name "api.call", Aggregation Count, Unit "calls".
- Create a Usage-Based Product and connect the meter; set Price Per Unit and Free Threshold.
- Ingest events using the client library, for example: client.usageEvents.ingest({ events: [{ event_id: "evt_...", customer_id: "...", event_name: "...", timestamp: "2025-01-01T00:00:00Z", metadata: { ... } }] });
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: usage-based-billing Download link: https://github.com/dodopayments/skills/archive/main.zip#usage-based-billing Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.