Jump to content

API problems with modulecreate


infomike

Recommended Posts

Hi There,

 

I'm attempting to integrate WHMCS with my current order system mainly so that I dont have to manually put all the clients' address details.

 

I am just trying to setup a hosting account on a cpanel server - the system can:

 

1. Create a new client

2. Create order for that client.

 

I then try and run a modulecreate command with the following

 

$postfields["username"] = $username;

$postfields["password"] = md5($password);

$postfields["action"] = "modulecreate";

$postfields["accountid"] = $userID;

 

I unfortunately get an error:

 

The following error occured: Sorry, a group for that username already exists.

 

Alternatively when i go to the products/services screen in WHMCS it's created the client and order and has the domain name, I click create and it automagically creates a username/password and passes it to cpanel. From my script it does not seem to autogenerate a user/pass

 

Am I missing something obvious?

 

Thanks

 

Mike

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated