Billing Resellers Per Domain

In WHMCS version 7.9 and above, it is possible to vary the amount shared hosting resellers are billed based upon the number of cPanel user accounts they use. For example charging $1.00 extra for each cPanel user account that a reseller has.

This guide demonstrates how to configure a product in such a way.

We recommend using this Snapshot Metric Type on products with a monthly billing cycle.

Configuration

1. Navigate to Setup > Products/Services > Products/Services

Navigate to Setup > Products/Services > Products/Services

2. On this screen, choose Create a New Product from the options area, or Edit an existing product

If creating a new product, specify the product type Reseller Hosting, group and product name in the usual way.

3. Click the Module Settings tab

Click Module Settings tab

4. Choose the module that will be used with this product. In this example we will use cPanel.

5. Select the WHM Package Name to be used with this product

cPanel will prevent resellers from exceeding the maximum number of accounts setting. We suggest configuring the package limits higher, so resources can be consumed.

6. If the module supports Usage Billing, a Metric Billing section will appear:

The Metric Billing Section

7. Toggle On the metric to be billed. In this example that's Sub-Accounts:

Toggle the Metric On

The Metric Name "Sub-Accounts" is analogous to the the number of cPanel user accounts owned by a reseller within WHM

8. Next click the Configure Pricing link to set the pricing for the Sub-Accounts the reseller consumes

9. The Configure Pricing modal will appear. Use this screen to configure the price that the client should be charged for the sub-accounts they consume (ie. the number of cPanel user accounts the reseller creates)

There is a lot of flexibility in the pricing that can be configured. Below are two common examples:

i. The reseller will be charged $1.00 for every sub-account which exists on the service renewal date each month.

The Per Unit Scheme is selected as there is only one unit price; always $1.00 per sub-account:

Metric Pricing Example 1

ii. The reseller wil be charged $1.00 for every sub-account they create up to 50. Then $0.50 for every sub-account they consume above that. IE. A bulk discount.

The Total Volume Scheme is selected. This displays the Add Range button to create an additional range to specify the price for 50 sub-accounts and above:

Metric Pricing Example 2

iii. The reseller will be charged $1.00 for every sub-account they consume over 10. This is because of the Quantity Included value.

The Per Unit Scheme is selected as there is only one unit price; always $1.00 per sub-account:

Metric Pricing Example 3

10. When satisfied with the pricing configuration, click the Save button

11. The modal will now close and the rest of the product configuration can be completed.

12.  When product configuration is finished, click Save Changes.

Invoicing Overview

  • When a client orders this product, WHMCS will track the number of sub-accounts created by the reseller
  • On the service's Next Due Date, a snapshot of the current volume of sub-accounts created is recorded
  • The cost is then calculated based upon the current pricing schema
  • The cost will be added to the service's next renewal invoice as an individual line item

The usage snapshot is taken on the service's Next Due Date, therefore we suggest offering the product only on the monthly billing cycle so that usage is billed frequently.

Further Reading

Usage Billing is a powerful feature. More information on the terms used and possible configurations are explained in the Usage Billing Documentation.