How can we improve WHMCS?

Share, discuss and vote for what you would like to see added to WHMCS

Add quantity column / value to the GetClientsAddons API call

  • Mauritz Swanepoel shared this idea 1 year ago
  • Developers
  • 2 Comments


You have the ability to add quantities to addons in WHMCS. When quantity support is enabled, I can enter an amount of the addon, and within WHMCS the "name" in the product dashboard has a prefix of "quantity x addon" - Allowing one to see multiple quantities.

When calling the GetClientsAddons API, no quantity field is returned, nor does the returning text indicate there is a quantity, it simply shows the default addon name, leaving it impossible to determine if there is multiple quantities for the addon.

2 Comments

Login to post a comment.

You could develop a custom API or hook within WHMCS that extends the functionality of the GetClientsAddons API. This custom solution could pull the quantity data from the database and include it in the API response. WHMCS supports hooks, which are a way to execute your custom code during various events in the system.
pm: https://backroomsgame.io
It is a feature requested a year ago, it is something very simple to implement, it does not break backward compatibility and it facilitates the integration of other systems with WHMCS without having to reassemble the entire GetClientAddons endpoint from scratch for us to add just such an important field. in the response.