ULIP FASTAG Integration Requirement
ULIP FASTAG Integration Requirement
Date: 09/07/2021
This document contains proprietary information of NLDSL. Unauthorized access, copying and
replication are prohibited. This document must not be copied in whole or part by any means, without
the written authorization of NLDSL, Noida, India.
ULIP Integration Document
Revision History
Doc Ref. No: ULIP Integration Doc Version No: 1.0 Page 2 of 9
ULIP Integration Document
Table of Contents
Introduction ................................................................................................................................................. 3
1.1 Purpose .................................................................................................................................... 3
The Overall Description .............................................................................................................................. 4
1.2 Data Integration between FASTAG System and ULIP application .......................................... 4
1.3 FASTAG/01 .............................................................................................................................. 4
1.3.1 Technical Approach ..................................................................................................... 5
1.4 Data Transmission & Authentication Mechanism .................................................................... 8
Introduction
1.1 Purpose
Doc Ref. No: ULIP Integration Doc Version No: 1.0 Page 3 of 9
ULIP Integration Document
The purpose of this document is to define and provide details for accessing API for
transaction details from NETC Fastag (National Electronic Toll Collection) system from
ULIP system.
This document details the following points:
1. Data Integration between FASTag and ULIP web service: Identification of operational
points where data integration between FASTAG and ULIP web service will be needed.
User will share the information such as vehicle registration number based on data send
by user ULIP system will call FASTag API for accessing information.
2. ULIP will expose API for getting data from FASTAG API.
3. FASTAG/01 API will take vehicle registration number from user and get data from
FASTAG API.
1.3 FASTAG/01
This API will take Vehicle registration number and connect with FASTAG API to get
data.
Doc Ref. No: ULIP Integration Doc Version No: 1.0 Page 4 of 9
ULIP Integration Document
NOTE: Data related to VRN will be available for the next 3 days.
Example: the first transaction happens on 1rd Jan (data will be available for 3rd Jan, on
4th Jan no data will be available regarding the previous transaction i.e. 1st Jan)
Example:
Request:
The request must be of the following format, where vehicle registration number is passed
within the URL body in JSON format.
https://www.ulip.dpiit.gov.in/ulip/v1.0.0/FASTAG/01
{
"vehiclenumber": "GA060000"
}
Curl URL
}'
Response
To acknowledge the above request, ULIP will send the below response -
{
"response": null,
"error": "true",
"code": "400",
"message": "Data format failed OR wrong value entered at: vehiclenumber. Format s
hould follow ^[A-Z0-9]{5,11}$"
}
{
"response": [
{
"response": {
"result": "FAILURE",
"respCode": "000",
"ts": "2022-02-15T11:34:31",
"vehicle": {
"errCode": "740"
}
},
"responseStatus": "SUCCESS"
}
],
"error": "false",
"code": "200",
"message": "Success"
}
Doc Ref. No: ULIP Integration Doc Version No: 1.0 Page 6 of 9
ULIP Integration Document
{
"response": [
{
"response": {
"result": "SUCCESS",
"respCode": "000",
"ts": "2021-11-01T19:20:47",
"vehicle": {
"errCode": "000",
"vehltxnList": {
"totalTagsInMsg": "2",
"msgNum": "1",
"totalTagsInresponse": "2",
"totalMsg": "1",
"txn": [
{
"readerReadTime": "2021-10-30 12:26:09.0",
"seqNo": "68d47e2d-c10f-4f57-b12a-2dfb547ce5c8",
"laneDirection": "N",
"tollPlazaGeocode": "11.0001,11.0001",
"tollPlazaName": "GMR Chillakallu Toll Plaza",
"vehicleType": "VC7",
"vehicleRegNo": "MH19JK3923"
},
{
"readerReadTime": "2021-10-30 12:41:23.0",
"seqNo": "6361cf5f-8ddd-46dd-9593-0aa0e1fd5780",
"laneDirection": "N",
"tollPlazaGeocode": "11.0001,11.0001",
"tollPlazaName": "GMR Chillakallu Toll Plaza",
"vehicleType": "VC7",
"vehicleRegNo": "MH19JK3923"
}
]
}
}
},
"responseStatus": "SUCCESS"
}
],
"error": "false",
"code": "200",
"message": "Success"
Doc Ref. No: ULIP Integration Doc Version No: 1.0 Page 7 of 9
ULIP Integration Document
https://www.ulip.dpiit.gov.in/ulip/v1.0.0/FASTAG/01
Body:
{
"vehiclenumber": "GA060000"
}
Access to above data exchange URL would be authorized by use of a security mechanism
implemented by the ULIP system. It is as follows:
• First time access: It would require a username and password [which would be shared with
user beforehand]. Once user hit with valid user id and password, ULIP system will return a
basic authorization token to user, using that token user will communicate with ULIP system
until token will not get expired.
First time when User will hit ULIP secured API through username and password for access token
as follow-
Doc Ref. No: ULIP Integration Doc Version No: 1.0 Page 8 of 9
ULIP Integration Document
Authorization:
Bearer
eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0MSIsImlhdCI6MTYyNTIzMDQyNywiYXBwcyI6I
mRhdGFwdXNoIn0.rhumwWJ8BWeeHe9CYmIV1UKyJk-kLHA_ovX5Zi2OwxEv-td-
KpxnfbKDI_8FZsOoggqx3Al-Du1y2qMoUD7uzA'
Upon successful authentication, the user would be logged into the ULIP system and get an access
token. Though this token user can communicate with ULIP. This token has expiry time which
represent user session. The session time out for the same to be fixed hour, generally it is for 30
minutes. If there is no request coming from user for 30 minutes, then session (token) will be
expired and user need to re authenticate.
Using The above token, user can request ULIP system for vehicle details as follow -
curl -X POST \
https://www.ulip.dpiit.gov.in/ulip/v1.0.0/FASTAG/01
\
-H 'accept: application/json' \
-H 'authorization: Bearer
eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ0ZXN0MSIsImlhdCI6MTYyNTIzMDQyNywiYXBwcyI6I
mRhdGFwdXNoIn0.rhumwWJ8BWeeHe9CYmIV1UKyJk-kLHA_ovX5Zi2OwxEv-td-
KpxnfbKDI_8FZsOoggqx3Al-Du1y2qMoUD7uzA' \
-H 'cache-control: no-cache' \
-H 'content-type: application/json' \
-H 'postman-token: 8e8a19a4-ea1e-6373-f616-e2e4af9a1338' \
-d '{ "vehiclenumber": "GA060000" }'
Doc Ref. No: ULIP Integration Doc Version No: 1.0 Page 9 of 9