API create a new customer with a selected group

@ultrasitios - the api is targeted to customers not to admins, thus you cannot assign customers in groups, if you could, then the customers themselves could move it what group they wanted.
If you need this functionality, you have to add it yourself.
I want to build a plugin for WHMCS, that can create customers , delete them and suspende them.
Do you have a php file or instructions to add a customer? I guess that it can be done adding a row on table mw_customer but I don´t know how to encode Password (seems not to be md5) and how to use confirmation_key