How can we improve WHMCS?

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

Domain search/pricing/spinning APIs

  • aisonet shared this idea 3 years ago
  • Developers
  • 2 Comments


So similar to the register a domain call AJAX requests, I would like to be able to get the same data from the WHMCS API, so it can be used on a checkout page based on the API instead of a WHMCS order template. This would allow both suggestions/spinning and if the domain is available plus pricing at the same time.

/index.php?rp=/domain/check
token: {CSRFTOKEN}
a: checkDomain
domain: mydomain.com
type: spotlight

/index.php?rp=/domain/check
token: {CSRFTOKEN}
a: checkDomain
domain: mydomain.com
type: domain

/index.php?rp=/domain/check
token: {CSRFTOKEN}
a: checkDomain
domain: mydomain.com
type: suggestions

2 Comments

Login to post a comment.

Sure, but then you would have to build code for each possible API, where as if you just opened up those functions along with the pricing then it would be easier for the developer, since your already doing that within WHMCS itself already.
Hi there,
Thanks for submitting this suggestion.

WHMCS uses the registrar APIs to obtain the namespun results, premium domain availability and pricing. I would think it quicker to leverage those same APIs directly if needed, as surely proxying them via WHMCS would just add extra latency? EG:
https://cp.enom.com/api/API%20topics/api_NameSpinner.htm
https://resellerclub.webpropanel.com/kb/suggest-domain-names-api