Control Web Panel

Developers => CWP API => Topic started by: Yahyaalkasem on March 22, 2023, 12:12:10 AM

Title: WHMCS - CWP api integration
Post by: Yahyaalkasem on March 22, 2023, 12:12:10 AM
Hello,

i have searched a lot and read a lot about the integration and connecting API with WHMCS.
Tried a lot, but still not succeeded in connecting the two.
I already allowed port 2304 and allowed the IP adress and used the % option.
Still no succes.
When i go check the WHMCS servers;
Remote Usage Stats   --> No stats.
So it is not connecting:
I tried Ihoscwp module, all the same.

anybody has an idea how to solve this?
Title: Re: WHMCS - CWP api integration
Post by: josemnunez on March 22, 2023, 09:58:58 AM
is the whmcs server on different ips? If so, you have to open port 2304 on both servers
Title: Re: WHMCS - CWP api integration
Post by: Yahyaalkasem on March 22, 2023, 10:16:43 AM
As i stated before,
Port 2304 is open, are on the same ip adress and ip adress is allowed on firewall.
And is whitelisted on whmcs..
I still get no info nor packages on my whmcs.
I even tried another server module (ioscwp), still the same.
Title: Re: WHMCS - CWP api integration
Post by: josemnunez on March 22, 2023, 10:28:15 AM
The current cwp-whmcs module only allows to create, change, suspend and delete accounts in the cwp. we are working on a new module to import cwp accounts to whmcs but this is not ready yet
Title: Re: WHMCS - CWP api integration
Post by: Yahyaalkasem on March 22, 2023, 11:22:23 AM
i cant create accounts nor select packages from my cwp-panel.
I have cronjobs updating every 5min, timezone is right.
Is there a way to solve this or maybe i am doing something wrong?
Title: Re: WHMCS - CWP api integration
Post by: josemnunez on March 22, 2023, 11:52:44 AM
check the permissions of the api,
Title: Re: WHMCS - CWP api integration
Post by: Yahyaalkasem on March 22, 2023, 12:10:43 PM
Peemissions are set according WHMCS api button, i suppose they are okey
Account : add, upd,del,list,susp,unsusp
Automatic login : list
Change password : upd
Packages : add , upd, del, list

Function cluster cwp non selected
Title: Re: WHMCS - CWP api integration
Post by: Yahyaalkasem on March 22, 2023, 12:29:59 PM
check the permissions of the api,

I was reading a bit and found out that
I am missng :

usr/local/cwp/.conf/api_key.conf
And
usr/local/cwp/.conf/api_allowed.conf

Could this be the cause?
Title: Re: WHMCS - CWP api integration
Post by: josemnunez on March 22, 2023, 01:00:46 PM
follow the instructions in the cwp module for whmcs or hire a support service to do this for you
Title: Re: WHMCS - CWP api integration
Post by: Starburst on March 22, 2023, 04:24:05 PM
Make sure the base IP & IP for you WHMCS is whitelisted in the CWP servers also.
Title: Re: WHMCS - CWP api integration
Post by: Yahyaalkasem on March 22, 2023, 05:47:42 PM
Whitelisted on both, cwppro and whmcs.
Support will handle this, will update soon