Docs
The Usage Based Billing feature is currently in early access. Contact Us to join the Early Adopter Program and enable this feature.
Let's consider a business "Acme Inc." that provides automation solutions for SaaS companies. Customers are charged based on the number of automation tasks executed every month. Acme targets customers with varying automation needs, wherein most users have a predictable number of requests each month and even customers with high-volume requests.
Let us look at how Chargebee's usage-based billing can be applied for Acme.
Acme adopts a hybrid pricing model combining:
Included Usage (customer is entitled to certain features/quotas via fixed platform fee)
On-demand Usage (customer pays for any excess usage via pay-as-you-go fee)
Let's look at how to automate usage-based billing for Acme using Chargebee:
Acme's product catalog must be set up with the following plans and addons:
Plans & Addons |
Name |
Configuration |
---|---|---|
Plan 1 (Fixed fee for included usage) | Professional Monthly | Priced at $49/month with 100K tasks as included usage. |
Plan 2 (Fixed fee for included usage) | Team Monthly | Priced at $99/month with 500K tasks as included usage. |
Addon 1 (Usage-based fee) | Tasks Monthly | Priced at $0.1 per task (per-unit pricing). |
Acme can send usage events to Chargebee Billing through two API endpoints, Ingest a Usage Event for individual events, and Ingest Usage Events in Batch for bulk submissions.
Alternatively, Acme can also import usage events in bulk using the Chargebee Billing application user interface. The following event details must be passed along with other usage event data.
The following metered feature needs to be created to track the number of the tasks that are automated.
Metered Feature (F1) - Tracks the SUM of tasks executed.
Once the metered feature is created, the next step is to link pricing for the metered feature and map it with relevant plans and addons price points.
Link Items: For Acme's pricing requirement, the following plans and addons need to be linked:
Plans
Add-On
Set included usage: This denotes specifying the included usage for the feature for the plan's billing period, in Acme's case specifying the number of tasks per month. Chargebee automatically tracks usage for the feature and when the included usage is exceeded, additional cost is calculated by multiplying the units purchased.
Specify the included usage as follows:
Plans
Add-on
Once Acme implements all the steps mentioned above, Chargebee Billing begins to track usage and bills Acme's subscribers appropriately.
Let's take a look into a subscription record to see the usage summary:
Sample Subscription
Assume a customer, John Doe subscribes to the Professional Monthly plan and purchases 100K tasks/month. The subscription details are as follows:
Line Item 1: Professional Monthly
Line Item 2: Tasks Monthly
Usage Tracking
Billing
This setup allows Acme to scale billing based on actual usage while offering predictable pricing for customers within their plan limits.