CLIENTI / Client.Create
Comandi per la gestione dei clienti finali
Crea un nuovo account cliente sulla console
Esempio:
SessionID=yourSessionID &Command=Client.Update &ResponseFormat=JSON& Access=yourValue& ClientUsername=yourValue& ClientPassword=yourValue& ClientEmailAddress=yourValue& ClientName=yourValue& ClientAccountStatus=yourValue
PARAMETRI RICHIESTA
Parametro | Tipo di dato | Richiesto | Definizione |
---|---|---|---|
SessionID | string | Session ID which is needed to authenticate the access. It's optional and required for desktop applications only | |
Command | string | The API Command sended to the console | |
ResponseFormat | JSON | XML | Response format | |
JSONPCallBack | bool | Send this parameter for cross-domain. More info about JSONP can be found here: http: //en.wikipedia.org/wiki/JSON#JSONP | |
Access | string | {user | client} - Determines the user type of api command. Default is user. | |
ClientUsername | string | Username of the client account | |
ClientPassword | string | Password of the client account | |
ClientEmailAddress | string | Email address of the client account | |
ClientName | string | Name of the client account | |
ClientAccountStatus | string | {Enabled | Disabled} - Account status of the client |
PARAMETRI DI RISPOSTA
Parametro | Tipo di dato | Definizione |
---|---|---|
ClientID | integer | ID number of the created client account |
Success | bool | States if an error has been generated during last command execution or not |
ErrorCode | integer | The ErrorCode number, if an error has occurred. ErrorCode = 0 means no error has occurred. |
ErrorText | string | Error description |
CODICI DI ERRORE
Codice | Definizione |
---|---|
1 | Client name missing |
2 | Client username missing |
3 | Client password missing |
4 | Client email address missing |
5 | Email address format is invalid |
6 | Username already registered to another client |
7 | Email address already registered to another client |
99998 | Authentication failure or session expired |
99999 | Not enough privileges |