Generate Authorize Token

This is an API for registration of the new device.

Request Method

POST

Request URL

{{BASE_URL}}/api/Login/VerifyLogin

Replace the {{BASE_URL}} with the one mentioned here based on whether you are using sandbox or production.

Request Body

Parameter
Data Type
Validations and Example
Description

Username

string

3xxxxxxxxxxxxx3

Mandatory. VAT of the company

Password

string

acde2754BD

Mandatory. portal password

Sample Request

{
    "Username": "3xxxxxxxxxxxxx3",
    "Password": "acde2754BD"
}

Response Status Codes

HTTP Status Code
Description

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

Parameter
Data Type
Description

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

  1. The VAT for which the device is being registered needs to be already present in Evs Engine before making this API request.

API Constraints

  1. 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