Generate Authorize Token
This is an API for registration of the new device.
Request Method
POST
Request URL
{{BASE_URL}}/api/Login/VerifyLogin
Request Body
Username
string
3xxxxxxxxxxxxx3
Mandatory. VAT of the company
Password
string
acde2754BD
Mandatory. portal password
Sample Request
{
"Username": "3xxxxxxxxxxxxx3",
"Password": "acde2754BD"
}
Response Status Codes
200
For a successful token generation.
400
For any kind of validation issues.
401
If the user is not authenticated for the operation.
403
If the user is not authorized for the operation.
Response Schema
tokenString
String
Mandatory. used to authorise other APIs (as a bearer token)
validTo
String
Mandatory. token validity date and time
Sample Response
Success - HTTP Status Code - 200
{
"tokenString": "eyJhbGciOiJI...",
"validTo": "2025-01-09T07:29:27Z"
}
Error - HTTP Status Code - 400
{
"response": "User Not Found"
}
API Validations
The VAT for which the device is being registered needs to be already present in Evs Engine before making this API request.
API Constraints
This API needs to be authenticated with a valid user name or vat number and password. If it is not present or is invalid, the API will return HTTP Status Code 400.
Last updated