Policy API Manual v2.1 - Asego
Policy API Manual v2.1 - Asego
Version: 2.1
Revision: 01/Apr/2013
Page 1 of 22
Policy API – Manual
Version: 2.1
Revision: 01/Apr/2013
Revision History
Date Paragraph Description of the revision
09-Jan-2012 2.1 Request Parameter
15-Feb-2012 2.1 Request Parameter
The datatypes for the PlanCode, RiderCode, Category code is
17-Feb-2012 2.1 Change in response
changed to String.
18-Feb-2012 Annexure #1 Annexure added for data strutures
27-Mar-2012 2.1 Response Parameter New fields for Reference No & Claim Code added
28-Mar-2012 2.1 API Call Updated the URL call & added webservice call details
3-Apr-2012 2.1 API Call Added new field “policycomment” in the “otherdetails” tag.
3-Apr-2012 2.1 API Call Use Ref as IV for the encryption
1-Apr-2013 New url for the modified API calls
Added new field Passengerreference in Create Policy &
1-Apr-2013
Endorse Policy Calls
Page 2 of 22
Policy API – Manual
Version: 2.1
Revision: 01/Apr/2013
1. Variable conventions
String
X: number of integer digits. Y:
number of decimal digits.
Numeric(X.Y)
Decimal separator: DOT No
thousand separator.
0 : False
Boolean 1 : True
Date DDMMYYYY
Time HHMMSS
Page 3 of 22
Policy API – Manual
Version: 2.1
Revision: 01/Apr/2013
2. API call
2.1. Create Policy
Descriptio n This call will be made to create a policy. Use “POST” method to send data to the api call.
Page 4 of 22
Policy API – Manual
Version: 2.1
Revision: 01/Apr/2013
Example:
Data=YTM0NZomIzI2OTsmIzM0NTueYQ==&Ref=c976b23c-646e-4765-9357-
38a28f7bac42
<policy>
<identity>
<sign>String</sign>
<branchsign>String</branchsign>
<username>String</username>
<reference>String</reference>
</identity>
<plan>
<categorycode>String</categorycode>
Page 5 of 22
Policy API – Manual
Version: 2.1
Revision: 01/Apr/2013
<plancode>String</plancode>
<basecharges>Numeric(18,2)</basecharges>
<riders>
<ridercodepercent="Numeric(18,2)">String</ridercode>
<ridercodepercent="Numeric(18,2)">String</ridercode>
<ridercodepercent="Numeric(18,2)">String</ridercode>
</riders>
<totalbasecharges>Numeric(18,2)</totalbasecharges>
<servicetax>Numeric(18,2)</servicetax>
<totalcharges>Numeric(18,2)</totalcharges>
</plan>
<traveldetails>
<departuredate>Date</departuredate>
<days>Numeric(18,0)</days>
<arrivaldate>Date</arrivaldate>
</traveldetails>
<passengerreference>varchar(300)</ passengerreference>
<insured>
<passport>String</passport>
<contactdetails>
<address1>String</address1>
<address2>String</address2>
<city>String</city>
<district>String</district>
<state>String</state>
<pincode>String</pincode>
<country>String</country>
<phoneno>String</phoneno>
<mobileno>String</mobileno>
<emailaddress>String</emailaddress>
</contactdetails>
<name>String</name>
<dateofbirth>Date(dd-mmm-yyyy)</dateofbirth>
<age>Numeric(18,0)</age>
<trawelltagnumber>Numeric(18,0)</trawelltagnumber>
<nominee>String</nominee>
<relation>String</relation>
<pastillness>String</pastillness>
</insured>
<otherdetails>
<policycomment>String</policycomment>
<universityname>String</universityname>
<universityaddress>String</universityaddress>
<documents>
<documentcodeavailable="boolean">Numeric(18,0)</documentcode>
<documentcodeavailable="boolean">Numeric(18,0)</documentcode>
<documentcodeavailable="boolean">Numeric(18,0)</documentcode>
</documents>
</otherdetails>
</policy>
DataTyp Require
Element e Size d Remark
Sign String 100 Yes Agent Signature,
this will be shared
by Asego as part of
the test credentials
api kit
Page 6 of 22
Policy API – Manual
Version: 2.1
Revision: 01/Apr/2013
BranchSign String 100 Yes Branch Signature,
this will be shared
by Asego as part of
the test credentials
api kit
User Name of the Agent
UserName String 100 Yes Employee, this will be shared
by Asego as part of the test
credentials api kit
Page 7 of 22
Policy API – Manual
Version: 2.1
Revision: 01/Apr/2013
Page 8 of 22
Policy API – Manual
Version: 2.1
Revision: 01/Apr/2013
100
UniversityAddress String 0 No University Address
Name String 50 Yes Insured Name
Datetim
DateofBirth e Yes Insured Date of Birth
Age Numeric Yes Insured Age
TrawellTagNumber Numeric No Trawell Tag Number
Nominee String 50 Yes Nominee Name, if not
captured “LEGAL HEIR” will
be set by the local system
Relation String 50 Yes Nominee Relation, if not
captured “LEGAL HEIR” will
be set by the local system
100
PastIllness String 0 No Past Illness
EmailAddress String 50 Yes Insured Email Address
Base Charges Numeric Yes Base Charges
Total Base Charges
Total Base Charges Numeric Yes including Riders
Service Tax Numeric Yes Service Tax
TotalCharges Numeric Yes Total / Net Charges
RiderCode String 50 No Rider Code
DocumentCode Numeric No Document Code
Available Boolean Yes If Document Code is
available and set then
this variable will identify
whether the document is
available? The value will be
set as “True” else “False”.
Page 9 of 22
Policy API – Manual
Version: 2.1
Revision: 01/Apr/2013
<data>
<status>String</status>
<policy>String</policy>
<document>String</document>
<reference>String</reference>
<claimcode>String</claimcode>
<errorcode>String</errorcode>
<message>String</message>
</data>
Where:
Page 10 of
22
Policy API – Manual
Version: 2.1
Revision: 01/Apr/2013
2.2. EndorsePolicy
This call will be made to start the endorsement. The call to this API call will return the
Description
policy details.
URL https://travel.asego.in/API/v2/EndorsePolicy.aspx
URL https://travel.asego.in/API/v2/AgentAPIV2.asmx?WSDL
WebService Web EndorsePolicy
Method
Method POST
Parameter Data type Remarks
This will be a Base64 encoded string.
The steps for generating this will be as
follows:
➢ Create XML as per the below
template.
➢ The “signature” / “sign” shared
with you should be used as
public key.
➢ Encrypt the XML using the
Data String
public key assigned to you.
Use Rijndael Encryption
Algorithm with 256 Keybits
for encrypting XML. The
public key shared with you
should be used as “key” for
encrypting the XML.
➢ Encode the encrypted data
into Base64 string
This will be the reference id of the API
caller. The Reference ID will be provided
Ref String by Asego Group. This has
to be used as an Initialization Vector for
Request the Encryption / Decryption.
parameters
Example:
Data=YTM0NZomIzI2OTsmIzM0NTueYQ==&Ref=c976b23c-646e-4765- 9357-
38a28f7bac42
<policy>
<identity>
<sign>String</sign>
<branchsign>String</branchsign>
<username>String</username>
<policynumber>String</policynumber>
</identity>
</policy>
Page 11 of
22
Policy API – Manual
Version: 2.1
Revision: 01/Apr/2013
User Name of the
UserName String 100 Yes Agent Employee
Page 12 of
22
Policy API – Manual
Version: 2.1
Revision: 01/Apr/2013
Page 13 of
22
Policy API – Manual
Version: 2.1
Revision: 01/Apr/2013
Where:
Page 14 of 22
Policy API – Manual
Version: 2.1
Revision: 01/Apr/2013
Page 16 of 22
Policy API – Manual
Version: 2.1
Revision: 01/Apr/2013
2.3. EndorsePolicyDetails
This call will be made to start the endorsement. The call to this API call will return the
Description
policy details.
https://travel.asego.in/API/v2/EndorsePolicyDetails.asp x
URL
URL https://travel.asego.in/API/v2/AgentAPIV2.asmx?WSDL
WebServic e
Web EndorsePolicyDetails
Method
Method POST
Parameter Data type Remarks
This will be a Base64 encoded string.
The steps for generating this will be as
follows:
➢ Create XML as per the below
template.
➢ The “signature” / “sign” shared
with you should be used as
public key.
➢ Encrypt the XML using the
Data String
public key assigned to you.
Use Rijndael Encryption
Algorithm with 256 Keybits
for encrypting XML. The
public key shared with you
should be used as “key” for
encrypting the XML.
➢ Encode the encrypted data
into Base64 string
This will be the reference id of the API
caller. The Reference ID will be provided
Ref String by Asego Group. This has
Request to be used as an Initialization Vector for
parameters the Encryption / Decryption.
Example:
Data=YTM0NZomIzI2OTsmIzM0NTueYQ==&Ref=c976b23c-646e-4765-9357-
38a28f7bac42
Page 17 of 22
Policy API – Manual
Version: 2.1
Revision: 01/Apr/2013
<ridercode percent="Numeric(18,2)">String</ridercode>
Page 18 of 22
Policy API – Manual
Version: 2.1
Revision: 01/Apr/2013
<ridercode percent="Numeric(18,2)">String</ridercode>
</riders>
<restricted>Boolean</restricted>
</plan>
<traveldetails>
<departuredate>Date</departuredate>
<days>Numeric(18,0)</days>
<arrivaldate>Date</arrivaldate>
</traveldetails>
<insured>
<passport>String</passport>
<contactdetails>
<address1>String</address1>
<address2>String</address2>
<city>String</city>
<district>String</district>
<state>String</state>
<pincode>String</pincode>
<country>String</country>
<phoneno>String</phoneno>
<mobileno>String</mobileno>
<emailaddress>String</emailaddress>
</contactdetails>
<name>String</name>
<dateofbirth>Date(dd-mmm-yyyy)</dateofbirth>
<age>Numeric(18,0)</age>
<trawelltagnumber>Numeric(18,0)</trawelltagnumber>
<nominee>String</nominee>
<relation>String</relation>
<pastillness>String</pastillness>
<passengerreference>varchar</passengerreference>
</insured>
<otherdetails>
<policycomment>String</policycomment>
<universityname>String</universityname>
<universityaddress>String</universityaddress>
<documents>
<documentcode>Numeric(18,0)</documentcode>
<documentcode>Numeric(18,0)</documentcode>
<documentcode>Numeric(18,0)</documentcode>
</documents>
</otherdetails>
</policy>
DataTyp
Element e Size Required Remark
Sign String 100 Yes Agent Signature
BranchSign String 100 Yes Branch Signature
User Name of the
UserName String 100 Yes Agent Employee
Reference String 100 Yes Your reference no.
Key that was sent in
the response XML for
the EndorsePolicy API
Key String 100 Yes call
PolicyNumber String 100 Yes Policy Number
Page 19 of 22
Policy API – Manual
Version: 2.1
Revision: 01/Apr/2013
Page 20 of 22
Policy API – Manual
Version: 2.1
Revision: 01/Apr/2013
<data>
<status>String</status>
<policy>String</policy>
<document>String</document>
<reference>String</reference>
<requestnumber>String</requestnumber>
<errorcode>String</errorcode>
<message>String</message>
</data>
Where:
Annexure # 1
Following data structures shall be sent as part of the test credentials:
Page 22 of 22