Register a User
Register a new user in Autoshares Trader
Introduction
This POST endpoint enables you to register a new user. Before doing so, first learn which parameters are required during registration via the following endpoint:
Get Required FieldsThere are five required parameters that must be provided in the request:
Et-App-Key (header). This is the unique key of your app that identifies your app when communicating with our service. You can retrieve this key in the BO Companies widget on the WebApi tab of the company modification window.
Authorization (header). This is the authorization token from the very first token request.
origin (header). This is the URL of the domain from which the request is made. The value must be consistent with the value of the hostname in the environment settings (BO Companies - Edit - hostname).
API version (path). Unless necessary, leave it at "v1.0".
registrationRequest (body). This is JSON dictionary containing information about the new user.
Body Syntax
The body of the request represents a JSON dictionary with required parameters.
{
"Credentials": {
"Login": "roberttorro",
"Email": "[email protected]",
"Password": "123456789Ab"
},
"Name": {
"FirstName": "Robert",
"LastName": "Torro",
"MiddleName": "J.",
"Suffix": "NoSuffix"
}
}The request ought to be sent to the following URL:
Response
In response to this request, if the user was successfully added, you will receive a JSON dictionary containing information about the new user:
Common Mistakes
Here are some of the common mistakes that developers make when registering new users.
Failing to Specify the Et-App-Key Parameter
If you specify the wrong Et-App-Key parameter or fail to include it in the header altogether, you'll get the following error:
Failure to Specify All Of the Required Parameters
If you fail to specify all of the parameters required for registration of users in your company, you will receive the 409 status code as well as an error message explaining the reason for registration failure. For example, if we omit the email, we will get the following error:
Last updated