Deffe Posted August 13, 2012 Share Posted August 13, 2012 Hi all. I need to be able to search the WHMCS database if a domain exist or not using API. The user is not logged in, a simple way would be to query the database myself to get the info I need but I like to use API instead so that it will be fairly safe upon upgrades of WHMCS. steps: 1. API Call to check if any customer owns given domain name 2. return at least customer ID or if possible all customer data 3. I know the rest howto fetch all extra data if I know the customer ID or at least that the domain exist in WHMCS. As I mentioned I would prefer not to use handwriten queries to prevent future problems. But if that is the only solution then so be it. 0 Quote Link to comment Share on other sites More sharing options...
jclarke Posted August 14, 2012 Share Posted August 14, 2012 You can use the Get Client Domains api function to search by domain and it will return an xml result containing the matching client id. http://docs.whmcs.com/API:Get_Clients_Domains 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.