To create a new account, use the command account/create_account:
svc=account/create_account¶ms={"itemId":<long>, "plan":<text>}
| Name | Description |
|---|---|
| itemId | resource ID |
| plan | billing plan |
{} /* empty object if execution successful, if not - error code */
| Code | Value |
|---|---|
| 1 | invalid session |
| 2 | invalid service name |
| 3 | invalid result |
| 4 | - invalid format or value of parameters - resource doesn't belong to any account - current user hasn't got an account - current account has no subplans to assign |
| 6 | error activating billing plan |
| 7 | - access denied - current user has no rights to create accounts |
|