Feature Requests
Share ideas, discuss and vote on requests from other users in community

Number of Clients, Sites, etc for the License Addon

Michael Foland shared this idea 2 years ago
Already Possible


I'm making a website CMS and I'm of course using my licensing add on to sell licenses for that CMS I'm developing. I'd like to do something like you guys do with the different tiers that allow a certain number of clients.. in my case it's for radio stations, so I'd want to say a certain number of stations per cluster license. How would I implement that and then have them auto upgrade to the next plan once it's reached? It would be nice if even WHMCS would share some examples. For example for client limits, look at the WHMCS pricing page. I'd like to do something like this, and think it would be very beneficial for the WHMCS Licensing Add on.

I've already built a license status page much like the one you see in the admin panel of WHMCS

Comments (1)


Hi Michael,

Thanks for taking the time to provide this suggestion.

You could certainly implement a check in your software to count the number of clients in the CMS and check that users are on the appropriate productid or productname (from the licence check data) for that client number.

Your software could then be coded to behave however you desired when the limit was reached. In WHMCS we chose to make clients above the client limits inaccessible; you might prefer to display a licence error or something else entirely.

One option to automatically upgrade customers to the next tier when a certain threshold is reached, could be done using the UpgradeProduct API call: https://developers.whmcs.com/api-reference/upgradeproduct/

You have the serviceid in the licence check data, so can pass this to the call, along with the desired new productid for the higher tier.

Using the API Credentials feature it would be possible to create a credential pair with only the access to use the upgrade function, so there's no concern about opening full access to your installation's API from remote locations.

I welcome further discussion of this in our community: https://whmcs.community/forum/41-developer-corner/