Jump to content

localAPI addclient.

Recommended Posts

I'm trying the localAPI and I get the weirdest error message when I try to add a client. Mind you listing clients works fine.


$command = "addclient";

$adminuser = "Programmer";


$postfields["firstname"] = "Test";

$postfields["lastname"] = "User";

$postfields["companyname"] = "WHMCS";

$postfields["email"] = "demo@whmcs.com";

$postfields["address1"] = "123 Demo Street";

$postfields["city"] = "Demo";

$postfields["state"] = "Florida";

$postfields["postcode"] = "AB123";

$postfields["country"] = "US";

$postfields["phonenumber"] = "123456789";

$postfields["password2"] = "demo";

$postfields["currency"] = "1";


$results = localAPI($command,$postfields,$adminuser);



Array ( [result] => error [message] => You did not enter your first name )


Why is this not working. firstname is obviously set.




using 5.2

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.

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