Just wondering what happens if you try to add an invoice for a non-existant client via Invoice:add(). Does it automatically create a client account for them or should I always check if the user exists first and then if not create an account for them via Client::create() ?
...or should I use Client::add() or User:add() - what is the difference, do you need to call both? Ideally I would like them to use a client or user id that matches their user id in our main system.
You would use Clients::create() to do everything--create a client user, create a client, set client group custom fields, setup client settings, add a contact, setup contact settings, and send a registration email. Basically everything that you can do through the admin interface when creating a new client.
Clients::add() is simply to create a new client, and that's it. No contact, no settings, all of which are required for proper use in the system. You would need to add that additional inform