wtools Posted May 22, 2019 Share Posted May 22, 2019 Hi, I was using the API https://developers.whmcs.com/api-reference/addclient/ to create a client . I wrote a code in a module and it's calling as ajax request. It's creating a user, but not returning success status with the client id. When I checked it from the admin area, can see login as a client link is not present too. If I reset password, then the link appears too. If I use the same API code and open directly from a link(not using ajax) then user is created and success status and user id is returned as expected. What might be issue here? 0 Quote Link to comment Share on other sites More sharing options...
steven99 Posted May 22, 2019 Share Posted May 22, 2019 What exactly is the return you're getting if not a success? What type of module: server or addon? Since the code works without the ajax call, how are you doing the ajax call and handling it different from the non-ajax call? 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.