ULIP ACCS Integration Requirement
ULIP ACCS 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 13
ULIP Integration Document
Table of Contents
Introduction ................................................................................................................................................. 4
1.1 Purpose .................................................................................................................................... 4
The Overall Description .............................................................................................................................. 4
1.2 Data Integration between KALE System and ULIP application ............................................... 4
1.3 KALE/01 ................................................................................................................................... 4
1.3.1 Technical Approach ..................................................................................................... 5
1.4 KALE/02 ................................................................................................................................... 8
1.4.1 Technical Approach ..................................................................................................... 8
1.5 Data Transmission & Authentication Mechanism .................................................................. 12
Doc Ref. No: ULIP Integration Doc Version No: 1.0 Page 3 of 13
ULIP Integration Document
Introduction
1.1 Purpose
The purpose of this document is to define and provide details for accessing API for
KALE system from ULIP system.
This document details the following points:
1. Data Integration between KALE and ULIP web service: Identification of operational
points where data integration between KALE and ULIP web service will be needed.
User will share the information such as Airway bill number based on data send by user
ULIP system will call KALE API for accessing information.
2. ULIP will expose API for getting data from KALE API.
3. KALE/01 API will take MAWB number from user and get data from KALE API.
4. KALE/02 API will take AWB and HAWB from user and get data from KALE API.
User will share information to ULIP system based on data shared ULIP will provide data
to user.
1.3 KALE/01
This API will take MAWB number and connect with KALE API to get data.
Doc Ref. No: ULIP Integration Doc Version No: 1.0 Page 4 of 13
ULIP Integration Document
Example:
Request:
The request must be of the following format, where MAWB is passed within the URL body in
JSON format.
https://www.ulip.dpiit.gov.in/ulip/v1.0.0/KALE/01
{"mawb": "09898989833"}
Curl URL
Response
Doc Ref. No: ULIP Integration Doc Version No: 1.0 Page 5 of 13
ULIP Integration Document
To acknowledge the above request, ULIP will send the below response -
1. Invalid MAWB
{
"response": null,
"error": "true",
"code": "400",
"message": "Data format failed OR wrong value entered at: mawb. Format
should follow [0-9]{11}"
}
{
"response": [
{
"response": {
"Message": "An error has occurred."
},
"responseStatus": "ERROR"
}
],
"error": "false",
"code": "200",
"message": "Success"
}
{
"response": [
{
"response": {
"ARR": true,
"RCS": true,
"MANTimeStamp": "2013-09-30T02:05:00",
"FHL": false,
"NFD": true,
Doc Ref. No: ULIP Integration Doc Version No: 1.0 Page 6 of 13
ULIP Integration Document
"RCFTimeStamp": "2013-09-29T07:35:00",
"DLV": false,
"FWB": false,
"FOHTimeStamp": "0001-01-01T00:00:00",
"EGMTimeStamp": "2013-09-30T02:30:00",
"FWBTimeStamp": "0001-01-01T00:00:00",
"BKD": true,
"BKDTimeStamp": "2013-09-29T16:00:00",
"RCSTimeStamp": "2013-09-29T14:00:00",
"FOH": false,
"MAWBNo": "09898989833",
"Pkgs": 10,
"ChWt": 1100.0,
"FHLTimeStamp": "0001-01-01T00:00:00",
"GrWt": 1000.0,
"NFDTimeStamp": "2013-09-30T10:00:00",
"EGM": true,
"CustomsClearance": false,
"DEP": true,
"ARRTimeStamp": "2013-09-30T06:35:00",
"DLVTimeStamp": "0001-01-01T00:00:00",
"RCF": true,
"CustomsClearanceTimeStamp": "0001-01-01T00:00:00",
"DEPTimeStamp": "2013-09-29T14:30:00",
"MAN": true,
"HAWBNo": "",
"ExpAcceptanceTemperature": null,
"ImpRecvdTemperature": null,
"Origin": null,
"Destination": null,
"FlightNo": null,
"FlightDate": null,
"CustomsStatus": null,
"CustomsClearanceDate": null,
"CustomsClearDate": null,
"ChargeableWt": null
},
"responseStatus": "SUCCESS"
}
],
"error": "false",
"code": "200",
"message": "Success"
}
Doc Ref. No: ULIP Integration Doc Version No: 1.0 Page 7 of 13
ULIP Integration Document
1.4 KALE/02
This API will take AWB and HAWB number and connect with KALE API to get data.
Example:
AWB 02368696795 and HAWB 501811201324 is shared by ULIP system, then KALE-
integration will make a request to KALE API.
Request:
The request must be of the following format, where AWB and HAWB is passed within the URL
body in JSON format.
https://www.ulip.dpiit.gov.in/ulip/v1.0.0/KALE/02
{
"awb":"02368696795",
"hawb":"501811201324"
}
Curl URL
Doc Ref. No: ULIP Integration Doc Version No: 1.0 Page 8 of 13
ULIP Integration Document
Response
To acknowledge the above request, ULIP will send the below response -
1. Invalid AWB
{
"response": null,
"error": "true",
"code": "400",
"message": "Data format failed OR wrong value entered at: awb. Format
should follow [0-9]{11}"
}
2. Invalid hawb
{
"response": null,
"error": "true",
"code": "400",
"message": "Data format failed OR wrong value entered at: hawb. Format
should follow [0-9]{12}"
}
Doc Ref. No: ULIP Integration Doc Version No: 1.0 Page 9 of 13
ULIP Integration Document
{
"response": [
{
"response": {
"Message": "An error has occurred."
},
"responseStatus": "ERROR"
}
],
"error": "false",
"code": "200",
"message": "Success"
}
{
"response": [
{
"response": {
"Message": "An error has occurred."
},
"responseStatus": "ERROR"
}
],
"error": "false",
"code": "200",
"message": "Success"
}
{
"response": [
{
"response": {
"ARR": false,
"RCS": false,
"MANTimeStamp": "0001-01-01T00:00:00",
"FHL": false,
Doc Ref. No: ULIP Integration Doc Version No: 1.0 Page 10 of 13
ULIP Integration Document
"NFD": false,
"RCFTimeStamp": "0001-01-01T00:00:00",
"DLV": false,
"FWB": false,
"FOHTimeStamp": "0001-01-01T00:00:00",
"EGMTimeStamp": "0001-01-01T00:00:00",
"FWBTimeStamp": "0001-01-01T00:00:00",
"BKD": false,
"BKDTimeStamp": "0001-01-01T00:00:00",
"RCSTimeStamp": "0001-01-01T00:00:00",
"FOH": false,
"MAWBNo": "02368696795",
"Pkgs": 1,
"ChWt": 31.0,
"FHLTimeStamp": "0001-01-01T00:00:00",
"GrWt": 31.0,
"NFDTimeStamp": "0001-01-01T00:00:00",
"EGM": true,
"CustomsClearance": false,
"DEP": false,
"ARRTimeStamp": "0001-01-01T00:00:00",
"DLVTimeStamp": "0001-01-01T00:00:00",
"RCF": false,
"CustomsClearanceTimeStamp": "0001-01-01T00:00:00",
"DEPTimeStamp": "0001-01-01T00:00:00",
"MAN": false,
"HAWBNo": "501811201324",
"ExpAcceptanceTemperature": null,
"ImpRecvdTemperature": null,
"Origin": null,
"Destination": null,
"FlightNo": null,
"FlightDate": null,
"CustomsStatus": null,
"CustomsClearanceDate": null,
"CustomsClearDate": null,
"ChargeableWt": null
},
"responseStatus": "SUCCESS"
}
],
"error": "false",
"code": "200",
"message": "Success"
}
Doc Ref. No: ULIP Integration Doc Version No: 1.0 Page 11 of 13
ULIP Integration Document
https://www.ulip.dpiit.gov.in/ulip/v1.0.0/KALE/01
Body:
{"mawb": "09898989833"}
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
Doc Ref. No: ULIP Integration Doc Version No: 1.0 Page 12 of 13
ULIP Integration Document
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/KALE/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 ‘{"mawb": "09898989833"}'
Doc Ref. No: ULIP Integration Doc Version No: 1.0 Page 13 of 13