Best answer

Zap with WHMCS

  • 28 March 2020
  • 6 replies
  • 533 views

It’s been about 2 years that I am trying to make a zap with WHMCS but it’s unimagenibly hard for me to connect my WHMCS with Zapier. There is nothing on the internet and a single tutorial on YouTube on connecting WHMCS with Zapier.

Following is what it is asking for:

  1. Allow Zapier to access your WHMCS Account

Host 

The host where your whmcs installation is installed. Include the fully qualified name and http(s) prefix, with no ending slash (e.g. https://whmcs.example.com).

 

I get this one but the rest of the steps aren’t helpful nor there is anything on WHMCS documentation.

 

  1. API Key 

    Some installations may opt to use an API key rather than IP whitelisting for access. See https://developers.whmcs.com/api/access-control/ for further details.

  2.  

    Username or Identifier 

    Can be either Admin Login Credentials Username or (since 7.2) Admin API Credentials Identifier. See the WHMCS Develop Documentation for details.

  3. dielast

    Password or Secret 

    Either Admin Login Credentials Password or Admin API Credentials Secret, depending on if you used a Username or Identifier.

these are required in order to connect with WHMCS but it’s confuisng as to where is the API key? I did follow the instruction but that didn’t help.

 

icon

Best answer by ForYourIT 8 May 2020, 17:39

View original

This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

6 replies

Userlevel 7
Badge +8

Hi there @zoannon

It’s been a while but we wanted to check back on this issue. That's great that you were able to get in touch with Cameron from Zapier Support. We think the solution mentioned would be worth sharing to the rest of the community so we marked the best answer by @ForYourIT since that was the same advice that Cameron gave you. Please write back to us if you need additional help.

Userlevel 7
Badge +7

Hi @zoannon ,

 

We use WHMCS for some of our clients as well and to create the API key you would have to edit a file within your hosting directory. As they explain in https://developers.whmcs.com/api/access-control/ normally the access is controller per IP. But since Zapier probably uses multiple IPs which probably change over time, this will be difficult. 

Therefor you can create a static API key in the file configuration.php within your root directory. It would look like this:

 

 

You might need to restart your webserver (Apache / NginX) afterwards. If you don’t know how to do this, let me know or ask your webhosting provider. Hope this helps you!

 

~Bjorn

Userlevel 7
Badge +8

Hi @zoannon ,

Thanks for reaching out! I have escalated this to our Support team who can dig in and troubleshoot your specific configuration.

They will be in touch just as soon as they can! 

Userlevel 7
Badge +10

@zoannon 

I'm going to flag this post for the Zapier Community Team. They should have more insight on this and can escalate to the support team if needed.

Sit tight, and someone will contact you soon.

Hi

I am also finding this zap unusable.

I have created the API role, attached and then I received the API Identifier and the API Secret Code.

Issue is what is the API key ?

 

Step 1 of the Connect WHMCS instructions is a required field

API Key 

Some installations may opt to use an API key rather than IP whitelisting for access. See https://developers.whmcs.com/api/access-control/ for further details.

 

WHMCS only gives me the API Identifier and the API secret which are taken care of in step 2 and three. I have tried the Identifier in Step one and also the admin username in step 1 but nothing works.

 

Any help would be good. Maybe the step 1 does not need to be required so we can save and move on ?

 

Glenn

 

Userlevel 7
Badge +11

Hey there!

Sorry for the confusion regarding WHMCS! I do see that our documentation is not super robust when it comes to that integration.

I did find that our help docs have a link to this page: https://docs.whmcs.com/API_Authentication_Credentials#Creating_Admin_API_Authentication_Credentials. That explains how to create admin API authentication credentials.

Would you mind taking a look at that to see if it helps you get through that part of the connection process?