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.
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