API:addClient - Add new client

Creates new client, params described are minimum set of params, each HostBill can use different registration fields, codes(keys) of which can be used here to fill customer details

Required parameters

firstname
Client firstname
lastname
Client lastname
email
Client email address
password
client password
password2
password confirmation (same as password)

Optional parameters

notify
Set to 1 if you wish to send customer his login details
phonenumber
Client phone number
type
Client type - Private or Company values allowed here
address1
Address line 1
address2
Address line 2
city
City
state
State
postcode
ZIP / Postal code
country
Country ISO code - i.e: GB, US etc.
language
Customer default language, value has to be one of enabled languages
companyname
Customer's company name (if any)

Request

GET http://url_to_your_hostbill.com/admin/api.php?api_id=API_ID&api_key=API_KEY&call=addClient&firstname=FIRSTNAME&lastname=LASTNAME&email=EMAIL&password=PASSWORD&password2=PASSWORD2

Response

   {
      "success": true,
      "client_id": "14",
      "call": "addClient",
      "server_time": 1323785423,
      "info": [
         "New client account created"
      ]
   }