ULIP EWAYBILL Integration Requirement
ULIP EWAYBILL Integration Requirement
Date: 01/10/2024
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, New Delhi, India.
ULIP Integration Requirement Document
Revision History
Doc Ref. No: ULIP Integration Doc Version No: 2.0 Page 2 of 10
ULIP Integration Requirement Document
Table of Contents
Introduction ................................................................................................................................................. 4
1.1 Purpose .................................................................................................................................... 4
The Overall Description .............................................................................................................................. 4
1.2 Data Integration between EWAYBILL System and ULIP application ...................................... 4
1.3 EWAYBILL/01 .......................................................................................................................... 4
1.3.1 Technical Approach .................................................................................................... 5
1.4 Data Transmission & Authentication Mechanism .................................................................... 7
Doc Ref. No: ULIP Integration Doc Version No: 2.0 Page 3 of 10
ULIP Integration Requirement Document
Introduction
1.1 Purpose
The purpose of this document is to define and provide details for accessing API for EWAY
BILL system information (information about ewbNo available in EWAY Bill system) from
ULIP system.
This document details the following points:
User will share the information such as EWB number based on data send by user ULIP
system will call respective EWAYBILL API for accessing information.
2. ULIP will expose API for getting data from EWAYBILL API.
3. EWAYBILL/01 API will take EWB number from user and get data from EWAYBILL API.
User will share information to ULIP system based on data shared ULIP will provide data
to user.
1.3 EWAYBILL/01
This API will take EWB (e-way bill) number and connect with EWAYBILL API to get
data.
Doc Ref. No: ULIP Integration Doc Version No: 2.0 Page 4 of 10
ULIP Integration Requirement Document
Example:
Request:
The request must be of the following format, where e-way bill (EWB) number is passed within
the URL body in JSON format.
For staging -
https://www.ulipstaging.dpiit.gov.in/ulip/v1.0.0/EWAYBILL/01
{
"ewbNo": "101000609218"
}
Curl URL
curl --location --
request POST 'https://www.ulipstaging.dpiit.gov.in/ulip/v1.0.0/EWAYBILL/01' \
--
header 'Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ1bGlwIiwiaWF0IjoxNjg3MjM
4MjU3LCJhcHBzIjoiZGF0YXB1c2gifQ.auwp_xfX_FBUJLB-7iNOyr5Wa1H2PeboAok-0uAADvNVADPK1C-
MEW9ne5FKttsuDjoOTdkbs_RC9xtMLrCF6g' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data-raw '{
"ewbNo": "101000609218"
}'
For production -
https://www.ulip.dpiit.gov.in/ulip/v1.0.0/EWAYBILL/01
Doc Ref. No: ULIP Integration Doc Version No: 2.0 Page 5 of 10
ULIP Integration Requirement Document
{
"ewbNo": "101000609218"
}
Curl URL
curl --location 'https://www.ulip.dpiit.gov.in/ulip/v1.0.0/EWAYBILL/01' \
--header 'Authorization: Bearer
eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ1bGlwIiwiaWF0IjoxNzI3NzYyNzcxLCJhcHBzIjoiZGF0YXB1c2gif
Q.9_kJwxuXfJYoMt0QeMgOSWi01EaxXQkZQ1JLevfNo-vJ5vjCY9oIemZ_B4hiiq2ZCog-yAbIUgL6YN-
TVie3cA' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data '{
"ewbNo": "871347047092"
}'
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: ewbNo. Format should fo
llow [0-9]{12}"
}
{
"response": [
{
"response": {
"fromPincode": 301404,
"hsnCode": "",
"ewayBillDate": "29/11/2017 04:30:00 PM",
"validUpto": " 11:59:00 PM",
"ewbNo": 101000609218,
"toPincode": 302014,
Doc Ref. No: ULIP Integration Doc Version No: 2.0 Page 6 of 10
ULIP Integration Requirement Document
"VehiclListDetails": [
{
"vehicleNo": "RJ14CG4508",
"enteredDate": "29/11/2017 04:30:00 PM",
"transMode": "1"
}
],
"status": "ACT"
},
"responseStatus": "SUCCESS"
}
],
"error": "false",
"code": "200",
"message": "Success"
}
{
"response": [
{
"response": {
"errorCodes": "404"
},
"responseStatus": "ERROR"
}
],
"error": "false",
"code": "200",
"message": "Success"
}
Doc Ref. No: ULIP Integration Doc Version No: 2.0 Page 7 of 10
ULIP Integration Requirement Document
For staging -
https://www.ulipstaging.dpiit.gov.in/ulip/v1.0.0/EWAYBILL/01
{
"ewbNo": "101000609218"
}
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-
Authorization:
Bearer
eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ1bGlwIiwiaWF0IjoxNjg3MjM4MjU3LCJhcHBzIjoiZGF0YXB1
c2gifQ.auwp_xfX_FBUJLB-7iNOyr5Wa1H2PeboAok-0uAADvNVADPK1C-
MEW9ne5FKttsuDjoOTdkbs_RC9xtMLrCF6g'
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 cargo details as follow -
curl --location --
request POST 'https://www.ulipstaging.dpiit.gov.in/ulip/v1.0.0/EWAYBILL/01' \
Doc Ref. No: ULIP Integration Doc Version No: 2.0 Page 8 of 10
ULIP Integration Requirement Document
--
header 'Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ1bGlwIiwiaWF0IjoxNjg3Mj
M4MjU3LCJhcHBzIjoiZGF0YXB1c2gifQ.auwp_xfX_FBUJLB-7iNOyr5Wa1H2PeboAok-
0uAADvNVADPK1C-MEW9ne5FKttsuDjoOTdkbs_RC9xtMLrCF6g' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--data-raw '{
"ewbNo": "101000609218"
}'
For production –
Authorization:
Bearer
eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ1bGlwIiwiaWF0IjoxNzI3MTYxMDgwLCJhcHBzIjoiZGF0
YXB1c2gifQ.XhVZm7NiCD05-
v9091WJQhYzdk1a0Shs_ley0T4R2MX63swRyxHbHxh6bVXtzqWvWiSLwwNGRQIcqGhr49hpGg
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 details as follow -
https://www.ulip.dpiit.gov.in/ulip/v1.0.0/EWAYBILL/01
Doc Ref. No: ULIP Integration Doc Version No: 2.0 Page 9 of 10
ULIP Integration Requirement Document
}'
Doc Ref. No: ULIP Integration Doc Version No: 2.0 Page 10 of 10