At the moment of a new user registration via the website, a new vendor is created in the system.
The user registered on the site is the administrator.
Get a list of countries for the new user registration dialog
Authorization is not required. There are no input parameters.
GET /v1.0/countries
Returns an array of countries:
{
"countries": [
{
"_id": 84,
"fullnameeng": "",
"isocode": 276,
"phonecode": "49 ",
"priority": 10,
"shortnameeng": "GERMANY",
}
]
}
Check if your password is correct (insufficient strength, not enough characters, etc.)
Authorization is not required. RAW JSON input parameters:
{
"password": "value"
}
POST /v1.0/register/validatepassword
A new user registration (a new user in the system is an administrator)
Authorization is not required. RAW JSON input parameters:
{
"username": "value",
"password": "value",
"firstName": "value",
"lastName": "value ",
"companyName": "value",
"phone": "value",
"countryId": value
}
The username is an email address.
POST /v1.0/register
A confirmation email is sent to the user's email address to confirm registration.
Email registration token confirmation
Authorization is not required. This request is made by the user by clicking on the link in the confirm registration email.
GET /v1.0/register/mail/{token}
Redirects to the URL GET /emailconfirmed.html. The name of the html page is specified inside the service.
Registered user login to the system
Authorization is not required. RAW JSON input parameters:
{
"loginUsername": "email",
"loginPass": "value",
"loginRememberMe" : "true"
}
POST /v1.0/login
A user log out from the system
Authorization is required. There are no input parameters.
POST /v1.0/logout
Extend the life of an authorization token
Authorization is required. There are no input parameters.
POST /v1.0/refreshauthtoken
Check the old password (user password change service)
Authorization is required. RAW JSON input parameters:
{
"oldPassword" : "value"
}
POST /v1.0/changepassword/validateoldpassword
Check the new password (user password change service)
Authorization is required. RAW JSON input parameters:
{
"oldPassword" : "value",
"newPassword" : "value"
}
POST /v1.0/changepassword/validatenewpassword
Set a new password (user password change service)
Authorization is required. RAW JSON input parameters:
{
"oldPassword" : "value",
"newPassword" : "value"
}
POST /v1.0/changepassword
Password recovery mail (user password recovery service)
Authorization is not required. RAW JSON input parameters:
{
"email" : "value",
}
POST /v1.0/lostpassword
Password recovery token confirmation (user password recovery service)
Authorization is not required. This request is made by the user by clicking on the link in the password recovery email.
GET /v1.0/lostpassword/{token}
Redirects to the URL GET /restorepassword.html?token=tokenvalue. The name of the html page is specified inside the service.
User password recovery page (user password recovery service)
Authorization is not required. The server redirects to this URL when the client follows the link in the password recovery email (<some_host>/v1.0/lostpassword/{token}).
GET /auth/newpassword?token=tokenvalue
This displays a page with fields to enter and confirm the password.
Check a new password (user password recovery service)
Authorization is not required. RAW JSON input parameters:
{
"token" : "token_value",
"newPassword" : "value"
}
POST /v1.0/lostpassword/validatenewpassword
Set a new password (user password recovery service)
Authorization is not required. RAW JSON input parameters:
{
"token" : "token_value",
"newPassword" : "value"
}
POST /v1.0/lostpassword/setnewpassword