Metered Billing 

Overview 

Most businesses maintain a single, standard price for their products or services to charge their customers, while some businesses would want to charge customers based on usage or consumption of these products and services.

For example,

  • Telecommunication service providers charge based on user consumption. Apart from a base service charge, users pay for what they use.
  • Some SaaS businesses have overage charges when users exceed the base limit included in their subscription, for say the number of API calls. So a customer gets charged a flat fee for their plan plus for usage, or if they exceed the allocated amount.

With Chargebee's metered billing solution, you can flawlessly charge your customers based on their usage of your products and services. You can define plans and addons as metered components in Chargebee. The invoices for subscriptions created containing these metered components are generated in a pending state.

Kindly contact Chargebee support to avail this feature.

Invoices for subscriptions without metered components can also be generated in pending status, if required. You can add charges as required before closing and sending the invoice to the customer.

The usage for these subscriptions can be added to the subscription records. Based on the usage added (sum of all the usage data, the latest usage data, or the maximum usage data), Chargebee calculates and adds the price to the respective invoice for closing the invoice. You can automate closing these invoices that are in pending status and email them to the respective customers.

You can add, remove, or view the usage data for invoices and subscriptions whenever required.

Configuring Metered Billing 

To enable and configure metered billing in your Chargebee site, follow these steps:

  1. Click Settings > Configure Chargebee > Metered Billing > Enable Now.

  2. In the Metered billing page, configure the following settings that define your metered billing workflow:

    • Choose what happens to invoices at the end of every billing cycle: You can select from the following options:
      • Automatically close invoices: Chargebee processes the usage data that you share and automatically closes and sends the invoice to customers. The maximum time limit that you can select here is 50 days.

      • Manually close invoices: You can add/review the charges and manually close the invoices.

    • You can optionally allow overriding via the Chargebee User Interface (UI).

    When overriding is allowed, users can turn off auto-closing the invoices for specific customer or subscription records.

    • Choose how long Chargebee shoud wait before auto-closing invoices: You can specify how long Chargebee should wait before auto-closing the invoices, during when you can add or review the charges as required. By default, Chargebee displays two hours as waiting duration. You can click the drop down to select your preferred duration, or add a custom duration. You can specify 10 minutes at the minimum.

    • Choose the date that you want to display on your invoices: Select the Invoice date that you want to display on the invoice from the drop-down list. You can select which date gets displayed from the following options:

      • Date of closing invoice: The date when the invoice is auto-closed or closed by you to add all the metered charges.
      • Date of invoice generation: The date when the subscription is renewed and the invoice gets generated in pending status.
    • Choose how you would like Chargebee to process the usage data that you share: You can select from the following options:

      • Sum of all usage: You can add usage data throughout the billing period, and Chargebee sums them up to compute the price accordingly.
      • Most recent usage: Chargebee uses the most recent data that you share to compute the price. The usage's date and time is what is considered for identifying the recent usage, and not the time stamp of when the usage is being added in Chargebee. For example, when the usage is shared for june 15, june 12, and june 11 in the same order mentioned, Chargebee considers only whatever is added as part of june 15 usage. You can optionally allow overriding via Chargebee interface. When overriding is allowed, users can modify this site setting for specific metered plan or addon, as required.
      • Max Usage: Chargebee uses the largest usage data or the quantity added for the subscription, during that period to compute the price.
    • You can enable the setting to Include metered plans and addons in MRR calculations.

  3. Click Apply to save your configuration.

Defining Plans/Addons as Metered Components 

After enabling the Metered Billing feature, you can maintain both metered and non-metered plans and addons in your Chargebee site. Plans/addons for which you want to charge your customers on usage basis can be marked as metered components.

While creating a new plan/addon or updating an existing plan/addon, you can mark them as metered components. To define plans and addons as metered components, follow these steps:

  1. Click Product Catalog > Plans/Addons > Create Plan/Addon.

  2. In the Create a New Plan/Addon page, specify the plan/addon details.

  3. Select This plan/addon is metered. Invoices created for this plan/addon will be in draft state to add usage based charges before closing them.

    • You can additionally override the site settings that you have configured for how you would like Chargebee to process the usage data that you share for this plan/addon. You can select your preferred option to be the sum of all usage data, the most recent usage data, or the max usage data.
  4. Click Create.

The plan/addon is successfully created as a metered component. You can start defining price points for your plan/addon as required.

Note
  • Once a plan/addon is configured as a metered component, it cannot be modified as a non-metered component.
  • For metered plans/addons, you cannot set price points using the flat fee pricing model.

Tracking Usage for Metered Components 

After creating plans/addons as metered components in your Chargebee site, you can start adding and tracking the usage data for metered components in subscriptions. You can add usage via Chargebee interface from the subscription details page or by using bulk import/export options. You can also add usage for subscriptions via API. 

To add usage data to a subscription with metered components via Chargebee interface, follow these steps:

  1. Navigate to the subscription details page.

  2. Click Add Usage.

  3. Specify the date and time for when the usage is being added.

  4. Select the Plans/Addons for which you are adding the usage.

  5. Specify the usage units in Quantity field.

  6. You can optionally add a note while adding usage.

  7. Click Add.

The subscription details page displays the usage details for metered compontents as shown in the below screenshot.

Note
  • You can not add usage data for a future period.
  • By default, you can add upto 5000 usages for a subscription during it's entire life cycle. Contact [email protected] if you want to increase this limit for your site.

Click Usage details to view the complete list of usage data added for the respective metered plan/addon.

You can use the Duration and All sources filters to track usage added for particuar time period and via specific sources.

Click the ellipsis icon to Delete usage if required.

Chargebee considers the usage of your metered components added to the subscription(sum/most recent) based on your site setting, and calculates the invoice amount based on the pricing model.

For example, if you have created a metered plan that's priced on per unit model,

Price per GB - 10.45$

Usage added - 250 units. This usage can be arrived either by summing up all of the usage that is added to the subscription, or by using the most recent usage that is added to the subscription.

Invoice Amount = Plan Price X Usage added.

At any given point of time, Chargebee considers usage added only for the previous billing period of the subscription. For example, when the current billing period is June 15 to July 15, any usage added for the period of May 15 to June 15 is only considered for invoice amount computation. Usage added for outside this period will not be considered for the July 15 renewal cycle.

Note
  • Chargebee generates a report based on the usage records passed in the respective term. You can send the report to your customers via email along with invoice.
  • The usage reports are available for download in pdf format, on the self-serve portal as well.
  • You can also do a bulk import of multiple usage data for multiple subscription records using the Bulk Operations feature (for Subscriptions) in Chargebee.
  • You can not add usage to an invoice that's already closed.

Closing an Invoice in Pending status 

Invoices for subscription with metered components are automatically generated in pending state. You can add the usage data to the subscription and the invoices are closed automatically or manually, based on your site setting for metered billing.

When you have opted to manually close the invoices for metered components, invoices remain in pending status until you close them. After you have added all usage based charges to the subscription, follow these steps to close an invoice:

  1. Navigate to the Invoice details page.

  2. Click Refresh to update all usage based data.

  3. You can optionally click View Usage PDF to view itemized usage breakdown in a PDF format.

  4. Click Close this Invoice.

  5. The Close Invoice dialog displays all the Invoice notes present for this invoice. You can remove some of these notes and add a new note as required. This note is displayed first in the invoice under Invoice Notes. You can even add comments for internal reference.

  6. Click Confirm.

This initiates the payment process and the status of the invoice changes from Pending to Payment Due/Paid/Not Paid/Posted.

Note

While closing the pending invoice, the invoice number will be assigned based on the current invoice number sequence.

Subscriptions with Metered Components 

While creating a subscription in your Chargebee site, the Add Plan/Addon dialog displays all the existing plans/addons for selection.

Metered components can be easily differentiated using the metered icon as shown in the screenshot below:

Subscriptions with metered components: When the subscription contains metered components and you have configured to auto-close invoices with overriding enabled, you can override the setting by selecting Do not auto-close invoices. You can even enable Also generate first invoice in pending state. You can select this option when you want to add or import previous usage data to the first billing cycle of the subscription.

Subscriptions without metered components: If your business requires invoices to be renewed without the addition of metered components, you can do so by clicking Generate all renewal invoices in pending state. All renewal invoices, excluding the first invoice for the subscription gets generated in pending state. The invoices are closed automatically or manually, based on your site setting for metered billing. You can also enable Also generate first invoice in pending state to add or import previous usage data to the first billing cycle of the subscription.

Note

The Do not auto-close invoices setting in a subscription takes precedence over the same setting in a related customer record. The setting, if enabled, overrides the site setting for auto-closing invoices.

Upgrading and Downgrading Subscription with Metered Components 

For upgrades and downgrades of subscriptions that contain metered components, customer will receive an invoice with the usage based charges by the end of the respective billing cycle.

For upgrades and downgrades of subscriptions with both metered and non-metered components, customer will receive an invoice with prorated charge for the non-metered items immediately. The metered components(plan or addon) will not be invoiced during the mid period change and will be billed only by the end of the billing cycle.

Say a customer upgrades from Plan-A to Plan-B and the subscription cycle for both the plans starts on the 1st of the month and ends on 31st of the month.

At the time of the upgrade, the subscription contains a metered Plan-A with usage charges for $100 and non metered add-on charge as $50. On 15th, a mid-period upgrade happens to Plan-B, a non-metered plan $200, and the add-on is removed.

The invoice raised during this upgrade will consist of prorated charges for Plan-B ($100) + credits for the add-on downgrade ($25).

The usage charges of $100 for Plan-A will be billed only on 31st when the subscription renews.

Pausing Subscription with Metered Components 

Subscriptions with metered components can be paused. The pause and resume workflows for such subscriptions work as follows:

In-term Resumption: This is when a subscription is paused and resumed within the billing term of the subscription. When the subscription is on pause:

  • You can add usage for the period when the subscription was active before it was paused.
  • If usage was added to the subscription before it was paused, the usage details page displays the Add Usage option. However, any usage added for the paused period of the subscription is not considered for invoice amount computation.
  • When usage was not added to the subscription before it was paused, you cannot view usage details and you cannot add usage for the paused period of the subscription.

Out-of-term Resumption: When a paused subscription resumes after the renewal date/time, it is considered as an out-of-term resumption. When the subscription moves from current billing cycle to the next billing cycle and is still on pause:

  • Any usage added for the paused period of the subscription is not considered for invoice amount computation.
  • Any usage added for the period when subscription was in active, gets automatically added.

Cancelling Subscription with Metered Components 

Subscriptions with metered components can be cancelled. When a subscription with both metered and non-metered componenents is cancelled, customer receives an invoice with prorated charges for the non-metered items and usage charges for the usage added till cancellation for metered components.

When cancellation is scheduled for a subscription with both metered and non-metered componenents, you can still add usage when the subscription is in an active state. The customer receives an invoice with prorated charge for the non-metered items, and usage charges for the usage added till cancellation for metered components, at the time of cancellation.

FAQ 

1. How do I charge a base fee for a metered plan?

If you have a business case where you want to charge a base fee for a plan and also add usage-based charges, you can create a non-metered plan that carries the base fee and attach a metered addon to the plan. The metered addon gets automatically attached to all subscriptions created for this plan. Usage can be added to the subscriptions via the addon, based on which usage-based charges can be calculated along with the plan's base fee.

Was this article helpful?
Loading…