Creating accounts

Method creates user's account. Both main and sub-account can be created.

Recall:

POST /rest/account/create

 

Data in POST:

  login Required  New user's login (email address)
  password Required User's password
  firstname Required User's name
  lastname Required User's surname
  company Optional Company name
  phone Required Telephone number
  activation_mail Optional Send confirmation email? (default: true))
  activation Optional Should account require activation? (default: true)
  child_account Optional Should account be a sub-account? (default: true)

 

Returned data:

  hash Hash of the new account
  api_key Api key of the new account
  api_secret Secret of the new account

 

Error codes:

  1501 No login (e-mail address)
  1502 Incorrect login
  1503 Login already exists in the system
  1504 No password
  1505 Password is too weak - it must contain at least 8 characters - including one letter and one special character
  1506 No name.
  1507 No surname.
  1509 No telephone.
  1510 Error occurred during creation of the account.
  1511 Account was not created.
  1512 Account cannot be assigned to application.
  1513 1513 No rights for creating accounts.