Direct-to-Consumer Products
Introduction
Welcome to the brief Tune Protect API integration guide, designed to help you set up the offering our products on your platform.
You may self-signup to our UAT environment via apiportaluat.tuneprotect.com. Once you have signed up, reach out to us so that we can approve your account. You may then create an Application and correcponding API Key from the self-service developer portal.
Our integrations team are at hand to support you along the way.
Postman collection
No | Product | Postman Collection Link |
---|---|---|
1 | Motor Easy | https://www.getpostman.com/collections/edfcb8f19b542396bfa3 |
2 | Home Easy | https://www.getpostman.com/collections/f653e41a5a13b3040de1 |
3 | Pro-Health Medical | https://www.getpostman.com/collections/7edb5848d91fc157f10a |
4 | PA Easy | https://www.getpostman.com/collections/0a98d92921f0e97c7bb1 |
5 | DENTAL Easy | https://www.getpostman.com/collections/a7fba87b3ae21298bf3a |
6 | TRAVEL Easy | https://www.getpostman.com/collections/b42b4f585f85c8141564 |
7 | TRAVEL Inbound | https://www.getpostman.com/collections/ae1533fab21614ce98c4 |
8 | Home Shield | https://www.getpostman.com/collections/d520fe9c4ea83c40c9b4 |
9 | Critical Illness | https://www.getpostman.com/collections/250b64e06ec55e723d6f |
10 | Bike Easy | https://www.getpostman.com/collections/67b6534e9646dfd05035 |
About the API
We use a REST SERVICE with UTF-8 encoding. We have produced a Postman collection to allow you to view examples of the requests and to act as a template, you can view the collections in the sections below.
Suggested Development Process
- Create UAT Application and API Key from our developer portal.
- Using the Signature Header and Data Structure as found in this guide, write your code and test using the UAT Endpoint. Here are a couple of hints:
- You can use the json data from this guide as a content starting point and send transactions from within Postman.
- Using Postman you can input your data to create content and validate
- Each API call requires a unique vendor reference ID
- Once the integration work is tested and approved, you will need to swap the UAT Endpoint and UAT App ID / API Key with the Live Production Platform Endpoint and App ID / API Key. Please Note: UAT and production credentials are NOT the same and production credentials are provided by the Protect Group team once tests have been validated.
- Remember that transactions sent through UAT will be not be officially protected and are not billed for, therefore you can send through as many as are needed for testing. We recommend a minimum of 10 test transactions before proceeding to the Live Production Platform.
Project Details
Scope
Scope of this document covers the necessary technical details for the integration of the D2C APIs for channel partners
The integration involves the components provisioned by D2C as below:
Fetch Access Token for API calls
- API to get access token using the shared credentials
Renew Token
- API to refresh token if token got expired
Retrieve Product Details by Product Code
- An API to enable channel partner to pull the Product Details by using product code.
Retrieve policies by email id
- An API to fetch all the policies customer purchased for a email id
API to fetch product benefit details, product icons and validation rules for different product
- API to allow channel partner to retrieve product benefits, icons and validations.
Get All Product Details
- API to retrieve all product details for the channel partner
Retrieve Quote Options
- API to allow channel partner to get plan options
Retrieve Quote for the selected plan
- API to allow channel partner to get quotations based on the plan code
API to update the quote
- API to allow channel partner to pass the insured details, purchaser details if any and additional information.
Retrieve transaction ID for a quotation.
- API to get unique transaction ID for payment initiation
API to update final transaction status
- API to allow channel partner to confirm the payment confirmation status
Deliverables
Upon completion of the integration, Channel Partner will be able to enable purchase for TPM B2C products and submit claim for those policies.
Functional and Non-functional Requirements
Payload Structure Syntax :
{"url":"https://tpmrsuat.tuneprotect.com/rocketship/v1/products/quote/
options","payload":"{\"quoteId\":\"\",\"customerId\":\"\",
\"productCode\":\"MOTOREASY\",\"parameters\":[{\"name\":\"nric\",
\"value\":\"930610146420\"},{\"name\":\"vehicleNumber\",\"value\":\"WC5142H\"},
{\"name\":\"location\",\"value\":\"Johor\"}]}","token":"Bearer
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.
eyJhcHBsaWNhdGlvblZlcnNpb24iOm51bGwsImNsaWVudElkIjoic2I0UWhObUFnUU09IiwicGFydG5lck
5hbWUiOiJKck5Ud2x5QmNXWEdZWmxCbjU5RHV5MjY4TGlKVFJCVGVKdm9kcmdWUHlzPSIsImxhdGl0dWRl
IjpudWxsLCJjaGFubmVsIjoidmNaN2tkVmMyQkNhWm4vUXFPYnVZUT09IiwicHVzaHRva2VuIjpudWxsLC
J1c2VyTmFtZSI6InBTUFYwaEtlSCs3VzdIRU9HVHlIcVE9PSIsImRldmljZUlkIjpudWxsLCJ1c2VySWQi
OiItMSIsImF1dGhvcml0aWVzIjpbIlNBVkVfQ1VTVE9NRVIiLCJVUERBVEVfVFJBTlNBQ1RJT05fU1RBVF
VTIiwiVE9LRU5fQ0hFQ0siLCJHRVRfQ0VfUFJPRklMRSIsIlZFUklGWV9QSU4iLCJVTkxPQ0tfQllfUkVG
TElOSyIsIkdFVF9VU0VSSU5GT1JNQVRJT04iLCJHRVRfQ0VfUFJPRklMRVRIRU1FIiwiQ0hBTkdFX1BJTi
IsIkdFVF9TUEVDSUZJQ19RVU9URSIsIkdFVF9QUk9EVUNUIiwiR0VUX0JBU0lDUVVPVEUiLCJHRVRfU0VD
VVJJVFlRVUVTVElPTiIsIkdFVF9DRV9QUk9GSUxFREFUQU1FU1NBR0UiLCJNU19TRU5EX0ZPUkdPVF9QQV
NTV09SRF9FTUFJTCIsIlNFVF9QSU4iLCJHRVRfQ0VfU0VUVElOR1MiLCJWRVJJRllfVEFDIiwiUkVTRVRQ
SU5fUkVRVUVTVCIsIk1TX1VTRVJfTE9HSU4iLCJHRVRfU0VUVElOR1MiLCJHRVRfU1VSVkVZX1FVRVNUSU
9OUyIsIkdFVF9DRV9QQUdFIiwiR0VUX1FVT1RFIiwiQ1JFQVRFX0NVU1RPTUVSIiwiR0VUX0NFX1NUWUxF
IiwiVVBEQVRFX1BJTiIsIlVQREFURV9RVU9URSIsIkdFVF9DRV9BU1NFVCIsIlNFTkRfVEFDIiwiTVNfVk
VSSUZZX1VTRVIiLCJSRVNFVF9QQVNTV09SRCIsIkNSRUFURV9QQVNTV09SRCIsIkVBUk5fTE9ZQUxUWSIs
IlNVQk1JVF9QVVJDSEFTRV9TVVJWRVkiLCJNU19SRVNFVF9QQVNTV09SRCIsIklOSVRJQVRFX1RSQU5TQU
NUSU9OIiwiR0VUX0NFX0FQUExJQ0FUSU9OIiwiR0VUX0NFX1FVT1RFIiwiRkVUQ0hfTE9ZQUxUWSIsIkNS
RUFURV9FTlFVSVJZIiwiR0VUX0NFX0FSVElDTEUiLCJWRVJJRllfU0VDVVJJVFlRVUVTVElPTiIsIkdFVF
9QQVNTV09SRF9DUklURVJJQSIsIlZFUklGWV9TV0lUQ0hDVVNUT01FUiJdLCJwbGF0Zm9ybSI6bnVsbCwi
Y2xpZW50X2lkIjoic2I0UWhObUFnUU09Iiwic2NvcGUiOlsiY3VzdG9tZXIiXSwicGxhdGZvcm1WZXJzaW
9uIjpudWxsLCJwYXJ0bmVySWQiOiJQWVM0N0J2dHhTbCtpZWphSDUxUnJRPT0iLCJleHAiOjE2MDAwNzM1
NjAsImp0aSI6ImZjMTUwNTQ2LWU4YjUtNDIyNC04Nzc2LWQ1YmQ1OGExODU2MCIsImxvbmdpdHVkZSI6bn
VsbH0.fJbqwaFTwfkajlO87NQX48waxyMeurfDahKa7VlUXiA"}
Secret Key : Secret Key will be shared Later Offline
Hash Function : SHA-256
Output Text Format : Base64
- Fetch Access Token using the credentials
- Use the token for subsequent calls.
For the execution of authentication token call, channel partner need to provide username and password. Username is APP ID & password need to be created using AES 256 GCM algorithm. In AES 256 GCM , encrypting text should be Client Secret & Key used for encryption should be Signing Key.
IV Parameter for encryption : kcFJajVYw6vFOQ==
Tune team will share APP ID, Client secret & Signing Key via email during the project initiation phase.
For the execution of post methods calls, Channel Partner need to provide signature in header. Signature is created using HMAC-SHA256.
You can refer below example to create signature.
API Integration Workflow
Purchase Workflow
Motor - API Request And Response Details
Get Basic Quote API:
NVIC Available Vehicles
Request:
{
"quoteId": "",
"customerId": "",
"productCode": "MOTOREASY",
"parameters": [
{
"name": "nric",
"value": "930610146420"
},
{
"name": "vehicleNumber",
"value": "WC5142H"
},
{
"name": "location",
"value": "Johor"
}
]
}
Response:
{
"productCode": "MOTOREASY",
"quoteId": "1610000351989912",
"affiliatePartnerURL": "https://tpmrsuat.tuneprotect.com/quote/RS_Quote_Motor?sourceid=src12345&productcode=MOTOREASY&data=fGxvY2F0aW9uOkpvaG9yfG5yaWM6NjExMTE5MTI1MTQ2fG5hdGlvbmFsaXR5Q2hlY2s6MXx2ZWhpY2xlTnVtYmVyOlNZODE0NHw="
"plans": [
{
"planCode": "Basic",
"currency": "MYR",
"displayName": "Option 1",
"quotedAmount": "335.74",
"sumInsured": "16020.00",
"basePremium": "307.30"
},
{
"planCode": "Choice",
"currency": "MYR",
"displayName": "Option 2",
"quotedAmount": "348.02",
"sumInsured": "17800.00",
"basePremium": "318.89"
},
{
"planCode": "Plus",
"currency": "MYR",
"displayName": "Option 3",
"quotedAmount": "360.30",
"sumInsured": "18690.00",
"basePremium": "330.47"
}
],
"userInformationDTO": {
"parameters": [
{
"name": "category",
"value": "PAS"
},
{
"name": "chassisNo",
"value": "PM2B200S003131969"
},
{
"name": "coverType",
"value": "3"
},
{
"name": "curNCD",
"value": "0.45"
},
{
"name": "engineCapacity",
"value": "998"
},
{
"name": "engineNo",
"value": "H09B52K"
},
{
"name": "make",
"value": "PERODUA"
},
{
"name": "makeCode",
"value": "33"
},
{
"name": "marketValue",
"value": "17800.0"
},
{
"name": "model",
"value": "AXIA"
},
{
"name": "modelCode",
"value": "10"
},
{
"name": "ncdEffDate",
"value": "17122019"
},
{
"name": "ncdExpDate",
"value": "16122020"
},
{
"name": "nextNCD",
"value": "0.55"
},
{
"name": "nextNcdEffDate",
"value": "07012021"
},
{
"name": "nvic",
"value": "IYU15A"
},
{
"name": "polExpDate",
"value": "16122020"
},
{
"name": "preInsCode",
"value": "247"
},
{
"name": "seatingCapacity",
"value": "5"
},
{
"name": "vehicleVariant",
"value": "SE MY14 5 SP MANUAL"
},
{
"name": "vehClass",
"value": "02"
},
{
"name": "vehRegNo",
"value": "WC5142H"
},
{
"name": "vehUse",
"value": "1"
},
{
"name": "yearMake",
"value": "2015"
}
]
}
}
This API is used to fetch basic quote details for product. We will get following details from basic quote API:
- Quote ID – In product purchase flow, Quote ID is used as unique number.
- Plans and minimal plan details
- Vehicle details
Request URL:
https://apiuat.tuneprotect.com/d2c/1.0/products/quote/options?locale=en_us
Method : POST
Query and body parameters in request:
PARAMETER | TYPE |
---|---|
locale | String |
productCode | String |
nric | String |
vehicleNumber | String |
location | String |
NVIC Not Available Vehicles
Request Payload
{
"quoteId": "",
"customerId": "",
"productCode": "MOTOREASY",
"parameters": [
{
"name": "nric",
"value": "750808105044"
},
{
"name": "vehicleNumber",
"value": "BEH9388"
},
{
"name": "location",
"value": "Johor"
}
]
}
Response
Status Code : 300
{
"parameterName": "vehicleVariant",
"options": [
"SX 5 SP MANUAL",
"EZ 4 SP AUTOMATIC",
"SXi 5 SP MANUAL",
"EZi 4 SP AUTOMATIC",
"GHP ADVANCED 5 SP MANUAL",
"ZHP ADVANCED 4 SP AUTOMATIC",
"M2 EDITION 4 SP AUTOMATIC"
]
}
NVIC Available Vehicles with vehicleVariant
{
"quoteId": "",
"customerId": "",
"productCode": "MOTOREASY",
"parameters": [
{
"name": "nric",
"value": "750808105044"
},
{
"name": "vehicleNumber",
"value": "BEH9388"
},
{
"name": "location",
"value": "Johor"
},
{
"name": "vehicleVariant",
"value": "SXi 5 SP MANUAL"
}
]
}
Response
{
"productCode": "MOTOREASY",
"quoteId": "1610001035158191",
"affiliatePartnerURL": "https://tpmrsuat.tuneprotect.com/quote/RS_Quote_Motor?sourceid=src12345&productcode=MOTOREASY&data=fGxvY2F0aW9uOkpvaG9yfG5yaWM6NjExMTE5MTI1MTQ2fG5hdGlvbmFsaXR5Q2hlY2s6MXx2ZWhpY2xlTnVtYmVyOlNZODE0NHw="
"plans": [
{
"planCode": "Basic",
"currency": "MYR",
"displayName": "Option 1",
"quotedAmount": "387.54",
"sumInsured": "19080.00",
"basePremium": "356.17"
},
{
"planCode": "Choice",
"currency": "MYR",
"displayName": "Option 2",
"quotedAmount": "412.10",
"sumInsured": "21200.00",
"basePremium": "379.34"
},
{
"planCode": "Plus",
"currency": "MYR",
"displayName": "Option 3",
"quotedAmount": "424.38",
"sumInsured": "22260.00",
"basePremium": "390.92"
}
],
"userInformationDTO": {
"parameters": [
{
"name": "category",
"value": "PAS"
},
{
"name": "chassisNo",
"value": "PM2M502G002081070"
},
{
"name": "coverType",
"value": "3"
},
{
"name": "curNCD",
"value": "0.55"
},
{
"name": "engineCapacity",
"value": "1495"
},
{
"name": "engineNo",
"value": "G15A20J"
},
{
"name": "make",
"value": "PERODUA"
},
{
"name": "makeCode",
"value": "33"
},
{
"name": "marketValue",
"value": "21200.0"
},
{
"name": "model",
"value": "ALZA"
},
{
"name": "modelCode",
"value": "09"
},
{
"name": "ncdEffDate",
"value": "14122019"
},
{
"name": "ncdExpDate",
"value": "13122020"
},
{
"name": "nextNCD",
"value": "0.55"
},
{
"name": "nextNcdEffDate",
"value": "07012021"
},
{
"name": "nvic",
"value": "HL311A"
},
{
"name": "polExpDate",
"value": "13122020"
},
{
"name": "preInsCode",
"value": "247"
},
{
"name": "seatingCapacity",
"value": "7"
},
{
"name": "vehicleVariant",
"value": "SXi 5 SP MANUAL"
},
{
"name": "vehClass",
"value": "02"
},
{
"name": "vehRegNo",
"value": "BEH9388"
},
{
"name": "vehUse",
"value": "1"
},
{
"name": "yearMake",
"value": "2011"
}
]
}
}
Request URL:
https://apiuat.tuneprotect.com/d2c/1.0/products/quote/options?locale=en_us
Method : POST
Query and body parameters with vehicleVariant in request:
PARAMETER | TYPE |
---|---|
locale | String |
productCode | String |
nric | String |
vehicleNumber | String |
location | String |
vehicleVariant | String |
{
"quoteId": "",
"customerId": "",
"productCode": "MOTOREASY",
"parameters": [
{
"name": "nric",
"value": "750808105043"
},
{
"name": "vehicleNumber",
"value": "BEH9388"
},
{
"name": "location",
"value": "Johor"
},
{
"name": true,
"value": "M2 EDITION 4 SP AUTOMATIC"
}
]
}
Response
Status Code : 417
{
"summary": "Please re-enter your NRIC number or contact us for further assistance.",
"description": "Please re-enter your NRIC number or contact us for further assistance.",
"errorCode": "TAOS_ERROR_VIX_13",
"statusCode": "412",
"paramErrors": [
{
"paramName": "responseDetails",
"error": "TAOS_ERROR_VIX_13"
}
],
"params": null,
"title": "Invalid NRIC",
"validityInSeconds": 0
}
Get Quote Details API:
Response:
{
"success": true,
"messages": "Requested Quote is : ",
"data": {
"productCode": "MOTOREASY",
"quoteId": "1610000351989912",
"selectedPlanCode": "Basic",
"selectedPlanDisplayName": "Option 1",
"quotedAmount": "399.83",
"totalNumberOfPersons": 0,
"totalNumberOfAdditionalDrivers": 0,
"userInformationDTO": {
"parameters": [
{
"name": "category",
"value": "PAS"
},
{
"name": "chassisNo",
"value": "PM2M502G002081070"
},
{
"name": "coverType",
"value": "3"
},
{
"name": "curNCD",
"value": "0.55"
},
{
"name": "engineCapacity",
"value": "1495"
},
{
"name": "engineNo",
"value": "G15A20J"
},
{
"name": "make",
"value": "PERODUA"
},
{
"name": "makeCode",
"value": "33"
},
{
"name": "marketValue",
"value": "22300.0"
},
{
"name": "model",
"value": "ALZA"
},
{
"name": "modelCode",
"value": "09"
},
{
"name": "ncdEffDate",
"value": "14122019"
},
{
"name": "ncdExpDate",
"value": "13122020"
},
{
"name": "nextNCD",
"value": "0.55"
},
{
"name": "nextNcdEffDate",
"value": "16062021"
},
{
"name": "nvic",
"value": "HL411A"
},
{
"name": "polExpDate",
"value": "13122020"
},
{
"name": "preInsCode",
"value": "247"
},
{
"name": "seatingCapacity",
"value": "7"
},
{
"name": "vehicleVariant",
"value": "EZi 4 SP AUTOMATIC"
},
{
"name": "vehClass",
"value": "02"
},
{
"name": "vehRegNo",
"value": "BEH9388"
},
{
"name": "vehUse",
"value": "1"
},
{
"name": "yearMake",
"value": "2011"
}
]
},
"detailedQuotation": [
{
"rateName": "CoverPremium",
"quotedAmount": "0"
},
{
"rateName": "AllRiderPremium",
"quotedAmount": "0"
},
{
"rateName": "BAPA",
"quotedAmount": "908.05"
},
{
"rateName": "NCD",
"quotedAmount": "499.43"
},
{
"rateName": "ExtendPremium",
"quotedAmount": "0"
},
{
"rateName": "EXTRABFTS",
"quotedAmount": "0"
},
{
"rateName": "EXTRACOVER",
"quotedAmount": "0"
},
{
"rateName": "Premium",
"quotedAmount": "0"
},
{
"rateName": "GSTDiscountAmount",
"quotedAmount": "0"
},
{
"rateName": "GSTPerc",
"quotedAmount": "0"
},
{
"rateName": "GSTAmount",
"quotedAmount": "0"
},
{
"rateName": "SD_ME",
"quotedAmount": "10"
},
{
"rateName": "TOTAL",
"quotedAmount": "399.83"
},
{
"rateName": "TotalAmountPayable",
"quotedAmount": "399.83"
},
{
"rateName": "SchedulePremium",
"quotedAmount": "0"
},
{
"rateName": "ONLINEDISCPERC",
"quotedAmount": "10.0"
},
{
"rateName": "ONLINEDISC",
"quotedAmount": "40.86"
},
{
"rateName": "PremiumAfterDiscount",
"quotedAmount": "367.76"
},
{
"rateName": "TrailerPremium",
"quotedAmount": "0"
},
{
"rateName": "TotalExtraCoverPremium",
"quotedAmount": "0"
},
{
"rateName": "NoClaimDiscount",
"quotedAmount": "0"
},
{
"rateName": "GROSS",
"quotedAmount": "408.62"
},
{
"rateName": "LOAD",
"quotedAmount": "0"
},
{
"rateName": "SST",
"quotedAmount": "22.07"
},
{
"rateName": "SSTPerc",
"quotedAmount": "6.0"
},
{
"rateName": "EXCESS",
"quotedAmount": "200.7"
},
{
"rateName": "NCDPerc",
"quotedAmount": "55.0"
},
{
"rateName": "TOTALEXTRAS",
"quotedAmount": "0"
},
{
"rateName": "driver",
"quotedAmount": "0"
}
],
"optionalBenefits": [],
"customerInformation": [],
"purchaserInformation": null,
"additionalInformation": [],
"eligibleForPayd": false,
"loyaltyEnabled": false,
"loyalty": null
},
"code": 200
}
Quote details API is used to fetch complete details for a specific (selected) product plan. We will get following details from get quote API.
- Quote ID
- Quoted amount
- Vehicle details
- Detailed quoation – This section have the quotation details like basic premium, GST details, discount amounts, total amount to pay, etc.
Method:GET
Query parameters:
PARAMETER | TYPE |
---|---|
productCode | String |
planCode | String |
quoteId | String |
locale | String |
Update Quote (with Customer details) API:
Request:
{
"productCode": "MOTOREASY",
"quoteId": "1623840867137818",
"selectedPlanCode": "Basic",
"quotedAmount": "399.83",
"optionalBenefits": [],
"customerInformation": [
{
"name": "nationality",
"value": "MYS"
},
{
"name": "documentID",
"value": "750808-10-5044"
},
{
"name": "mobileNumber",
"value": "919496711129"
},
{
"name": "dob",
"value": "1975/08/08"
},
{
"name": "emailAddress",
"value": "[email protected]"
},
{
"name": "gender",
"value": "Female"
},
{
"name": "documentType",
"value": "nric"
},
{
"name": "fullName",
"value": "TEST"
}
],
"purchaserInformation": [],
"additionalInformation": [],
"quoteItems1": [],
"quoteItems2": []
}
Response:
{
"success": true,
"messages": " Update success. ",
"data": {
"productCode": "MOTOREASY",
"quoteId": "1623840867137818",
"selectedPlanCode": "Basic",
"selectedPlanDisplayName": "Option 1",
"quotedAmount": "399.83",
"totalNumberOfPersons": 0,
"totalNumberOfAdditionalDrivers": 0,
"userInformationDTO": {
"parameters": [
{
"name": "category",
"value": "PAS"
},
{
"name": "chassisNo",
"value": "PM2M502G002081070"
},
{
"name": "coverType",
"value": "3"
},
{
"name": "curNCD",
{
"productCode": "MOTOREASY",
"quoteId": "1623840867137818",
"selectedPlanCode": "Basic",
"quotedAmount": "399.83",
"optionalBenefits": [],
"customerInformation": [
{
"name": "nationality",
"value": "MYS"
},
{
"name": "documentID",
"value": "750808-10-5044"
},
{
"name": "mobileNumber",
"value": "919496711129"
},
{
"name": "dob",
"value": "1975/08/08"
},
{
"name": "emailAddress",
"value": "[email protected]"
},
{
"name": "gender",
"value": "Female"
},
{
"name": "documentType",
"value": "nric"
},
{
"name": "fullName",
"value": "TEST"
}
],
"purchaserInformation": [],
"additionalInformation": [],
"quoteItems1": [],
"quoteItems2": []
} "value": "0.55"
},
{
"name": "engineCapacity",
"value": "1495"
},
{
"name": "engineNo",
"value": "G15A20J"
},
{
"name": "make",
"value": "PERODUA"
},
{
"name": "makeCode",
"value": "33"
},
{
"name": "marketValue",
"value": "22300.0"
},
{
"name": "model",
"value": "ALZA"
},
{
"name": "modelCode",
"value": "09"
},
{
"name": "ncdEffDate",
"value": "14122019"
},
{
"name": "ncdExpDate",
"value": "13122020"
},
{
"name": "nextNCD",
"value": "0.55"
},
{
"name": "nextNcdEffDate",
"value": "16062021"
},
{
"name": "nvic",
"value": "HL411A"
},
{
"name": "polExpDate",
"value": "13122020"
},
{
"name": "preInsCode",
"value": "247"
},
{
"name": "seatingCapacity",
"value": "7"
},
{
"name": "vehicleVariant",
"value": "EZi 4 SP AUTOMATIC"
},
{
"name": "vehClass",
"value": "02"
},
{
"name": "vehRegNo",
"value": "BEH9388"
},
{
"name": "vehUse",
"value": "1"
},
{
"name": "yearMake",
"value": "2011"
}
]
},
"detailedQuotation": [
{
"rateName": "CoverPremium",
"quotedAmount": "0"
},
{
"rateName": "AllRiderPremium",
"quotedAmount": "0"
},
{
"rateName": "BAPA",
"quotedAmount": "908.05"
},
{
"rateName": "NCD",
"quotedAmount": "499.43"
},
{
"rateName": "ExtendPremium",
"quotedAmount": "0"
},
{
"rateName": "EXTRABFTS",
"quotedAmount": "0"
},
{
"rateName": "EXTRACOVER",
"quotedAmount": "0"
},
{
"rateName": "Premium",
"quotedAmount": "0"
},
{
"rateName": "GSTDiscountAmount",
"quotedAmount": "0"
},
{
"rateName": "GSTPerc",
"quotedAmount": "0"
},
{
"rateName": "GSTAmount",
"quotedAmount": "0"
},
{
"rateName": "SD_ME",
"quotedAmount": "10"
},
{
"rateName": "TOTAL",
"quotedAmount": "399.83"
},
{
"rateName": "TotalAmountPayable",
"quotedAmount": "399.83"
},
{
"rateName": "SchedulePremium",
"quotedAmount": "0"
},
{
"rateName": "ONLINEDISCPERC",
"quotedAmount": "10.0"
},
{
"rateName": "ONLINEDISC",
"quotedAmount": "40.86"
},
{
"rateName": "PremiumAfterDiscount",
"quotedAmount": "367.76"
},
{
"rateName": "TrailerPremium",
"quotedAmount": "0"
},
{
"rateName": "TotalExtraCoverPremium",
"quotedAmount": "0"
},
{
"rateName": "NoClaimDiscount",
"quotedAmount": "0"
},
{
"rateName": "GROSS",
"quotedAmount": "408.62"
},
{
"rateName": "LOAD",
"quotedAmount": "0"
},
{
"rateName": "SST",
"quotedAmount": "22.07"
},
{
"rateName": "SSTPerc",
"quotedAmount": "6.0"
},
{
"rateName": "EXCESS",
"quotedAmount": "200.7"
},
{
"rateName": "NCDPerc",
"quotedAmount": "55.0"
},
{
"rateName": "TOTALEXTRAS",
"quotedAmount": "0"
},
{
"rateName": "driver",
"quotedAmount": "0"
}
],
"optionalBenefits": [],
"customerInformation": [
{
"name": "nationality",
"value": "MYS"
},
{
"name": "documentID",
"value": "750808-10-5044"
},
{
"name": "mobileNumber",
"value": "919496711129"
},
{
"name": "dob",
"value": "1975/08/08"
},
{
"name": "emailAddress",
"value": "[email protected]"
},
{
"name": "gender",
"value": "Female"
},
{
"name": "documentType",
"value": "nric"
},
{
"name": "fullName",
"value": "TEST"
}
],
"purchaserInformation": [],
"additionalInformation": [],
"eligibleForPayd": false,
"loyaltyEnabled": true,
"loyalty": {
"eligibleForLoyalty": true,
"loyaltyId": "2154810531",
"pointsTobeEarned": 1835,
"emailAddres": "[email protected]"
}
},
"code": 200
}
Update quote API is used to update customer details, additonal information and other details like accept terms and conditions. This API can be used multiple times to update customer and other details for a quote ID.
Request URL: https://apiuat.tuneprotect.com/d2c/1.0/products/updatequote?locale=en_us
Method:POST
Query and body parameters in request:
PARAMETER | TYPE |
---|---|
locale | String |
productCode | String |
quoteId | String |
selectedPlanCode | String |
quotedAmount | String |
customerInformation | Array |
nationality | String |
documentID | String |
mobileNumber | String |
dob | String |
emailAddress | String |
gender | String |
documentType | String |
fullName | String |
purchaserInformation | Array (IF purchasing for others) |
nationality | String |
documentID | String |
mobileNumber | String |
dob | String |
emailAddress | String |
gender | String |
documentType | String |
fullName | String |
Product API Call (for Benefits):
Response:
{
"success": true,
"messages": "Product by given id",
"data": {
"productId": 7,
"productCode": "MOTOREASY",
"name": "Motor Easy",
"description": "Tune Protect Motor Easy",
"currency": "MYR",
"term": "Yearly",
"additionalInfomation": {
"information": [
{
"param": "string",
"value": "string"
}
]
},
"enabled": false,
"approved": false,
"partnerId": 1,
"productType": "GENERAL",
"autoRenewal": false,
"gracePeriod": 0,
"policyWording": "https://www.tuneprotect.com/support/399621-Policy-Wording",
"policyDisclosure": "https://www.tuneprotect.com/support/990972-Product-Disclosure-Sheet",
"allowRenewalInterval": 0,
"quoteOptions": [
{
"quoteOptionId": 18,
"name": "vehicleNumber",
"type": "text",
"options": "",
"createdOn": 1537804800000,
"createdBy": "1212",
"modifiedBy": "1212",
"modifiedOn": 1537804800000
},
{
"quoteOptionId": 19,
"name": "location",
"type": "text",
"options": "",
"createdOn": 1537804800000,
"createdBy": "1212",
"modifiedBy": "1212",
"modifiedOn": 1537804800000
},
{
"quoteOptionId": 20,
"name": "nric",
"type": "text",
"options": "",
"createdOn": 1537804800000,
"createdBy": "1212",
"modifiedBy": "1212",
"modifiedOn": 1537804800000
}
],
"planDefinitions": [
{
"planDefinitionId": 11,
"name": "Basic",
"displayName": "Option 1",
"coverageUpto": "0",
"policyTerm": 5.0,
"policyCoverage": null,
"premium": 300.0,
"sst": 30.0,
"stampDuty": 50.0,
"pricing": "200",
"description": "Tune Protect Motor Easy Basic Plan",
"createdOn": 1537804800000,
"createdBy": null,
"modifiedBy": null,
"modifiedOn": 1586140322799,
"planBenefitMapping": []
},
{
"planDefinitionId": 12,
"name": "Choice",
"displayName": "Option 2",
"coverageUpto": "0",
"policyTerm": null,
"policyCoverage": null,
"premium": null,
"sst": null,
"stampDuty": null,
"pricing": "",
"description": "Tune Protect Motor Easy Choice Plan",
"createdOn": 1537804800000,
"createdBy": null,
"modifiedBy": null,
"modifiedOn": 1586140334657,
"planBenefitMapping": []
},
{
"planDefinitionId": 13,
"name": "Plus",
"displayName": "Option 3",
"coverageUpto": "0",
"policyTerm": null,
"policyCoverage": null,
"premium": null,
"sst": null,
"stampDuty": null,
"pricing": "",
"description": "Tune Protect Motor Easy Plus Plan",
"createdOn": 1537804800000,
"createdBy": null,
"modifiedBy": null,
"modifiedOn": 1586140346387,
"planBenefitMapping": []
}
],
"benefitCategories": [
{
"benefitCategoryId": 1,
"benefitCategoryName": "Additional Coverages",
"description": "Tune Protect Motor Easy Additional Coverages",
"benefits": [
{
"benefitId": 33,
"benefitName": "inconvenienceAllowance",
"benefitCode": "inconvenienceAllowance",
"description": "",
"pricing": 50.0,
"category": "Additional Coverages",
"currency": "",
"sumInsured": {
"sumInsuredValues": [
50.0,
100.0,
150.0,
200.0
]
},
"planBenefitMapping": [],
"createdOn": 1557796949199,
"createdBy": null,
"modifiedBy": null,
"modifiedOn": 1570069307410
},
{
"benefitId": 30,
"benefitName": "Personal Accident",
"benefitCode": "CPA",
"description": "Personal Accident",
"pricing": 100.0,
"category": "TTPB",
"currency": "",
"sumInsured": {
"sumInsuredValues": []
},
"planBenefitMapping": [],
"createdOn": 1557180614920,
"createdBy": null,
"modifiedBy": null,
"modifiedOn": 1570069307425
},
{
"benefitId": 66,
"benefitName": "PAYDOPTION",
"benefitCode": "PAYDOPTION",
"description": "",
"pricing": 1.0,
"category": "Additional Coverages",
"currency": "",
"sumInsured": {
"sumInsuredValues": []
},
"planBenefitMapping": [],
"createdOn": 1570679940242,
"createdBy": null,
"modifiedBy": null,
"modifiedOn": 1570679940242
},
{
"benefitId": 71,
"benefitName": "windScreen",
"benefitCode": "windScreen",
"description": "",
"pricing": 0.0,
"category": "Additional Coverages",
"currency": "",
"sumInsured": {
"sumInsuredValues": [
500.0,
1000.0,
1500.0,
2000.0,
2500.0,
3000.0,
3500.0,
4000.0,
4500.0,
5000.0
]
},
"planBenefitMapping": [],
"createdOn": 1573600197592,
"createdBy": null,
"modifiedBy": null,
"modifiedOn": 1573601297204
},
{
"benefitId": 65,
"benefitName": "specialPerils",
"benefitCode": "specialPerils",
"description": "Inclusion Of Special Perils (0.50% of Vehicle Sum Insured)",
"pricing": 185.0,
"category": "Additional Coverages",
"currency": "",
"sumInsured": {
"sumInsuredValues": []
},
"planBenefitMapping": [],
"createdOn": 1570069515475,
"createdBy": null,
"modifiedBy": null,
"modifiedOn": 1571954765732
},
{
"benefitId": 32,
"benefitName": "sprayPainting",
"benefitCode": "sprayPainting",
"description": "",
"pricing": 200.0,
"category": "Additional Coverages",
"currency": "",
"sumInsured": {
"sumInsuredValues": [
1000.0,
2000.0,
3000.0,
4000.0
]
},
"planBenefitMapping": [],
"createdOn": 1557796519388,
"createdBy": null,
"modifiedBy": null,
"modifiedOn": 1571955165311
},
{
"benefitId": 69,
"benefitName": "rideEasy",
"benefitCode": "rideEasy",
"description": "",
"pricing": 0.0,
"category": "Additional Coverages",
"currency": "",
"sumInsured": {
"sumInsuredValues": [
20000.0,
30000.0
]
},
"planBenefitMapping": [],
"createdOn": 1573383297266,
"createdBy": null,
"modifiedBy": null,
"modifiedOn": 1573383297266
},
{
"benefitId": 76,
"benefitName": "src",
"benefitCode": "src",
"description": "Strike, Riot and Civil Commotion (0.30% of Vehicle Sum Insured)",
"pricing": 0.0,
"category": "Additional Coverages",
"currency": "",
"sumInsured": {
"sumInsuredValues": []
},
"planBenefitMapping": [],
"createdOn": 1593271430616,
"createdBy": null,
"modifiedBy": null,
"modifiedOn": 1593271430616
},
{
"benefitId": 67,
"benefitName": "llop",
"benefitCode": "llop",
"description": "Legal Liability of Passengers For Acts Of Negligence",
"pricing": 7.0,
"category": "Additional Coverages",
"currency": "",
"sumInsured": {
"sumInsuredValues": []
},
"planBenefitMapping": [],
"createdOn": 1571863897276,
"createdBy": null,
"modifiedBy": null,
"modifiedOn": 1571863897276
},
{
"benefitId": 35,
"benefitName": "llp",
"benefitCode": "llp",
"description": "Legal Liability to Passengers",
"pricing": 33.0,
"category": "Additional Coverages",
"currency": "",
"sumInsured": {
"sumInsuredValues": []
},
"planBenefitMapping": [],
"createdOn": 1557797073338,
"createdBy": null,
"modifiedBy": null,
"modifiedOn": 1571954717893
}
],
"createdBy": null,
"modifiedBy": null,
"modifiedOn": 1573181069725,
"createdOn": null
}
],
"serviceProvider": {
"id": 1,
"service": "easy"
},
"createdOn": 1537804800000,
"createdBy": null,
"modifiedBy": null,
"modifiedOn": 1577516324944
},
"code": 200
}
Product API is used to fetch details of specific product. Product API returns following details:
- Product details
- Plans and plan definitions
- Benefits and benefit details
Benefit List and Code Mapping
Sl No | Bentfit Name | Benefit Code | Sum Insured |
---|---|---|---|
1 | INCONVIENCE ALLOWANCE | inconvenienceAllowance | 50,100,150,200 |
2 | PAYD | PAYDOPTION | NA |
3 | WINDSCREEN COVERAGE | windScreen | 500,1000,1500,2000, 2500,3000,3500,4000,4500,000 |
4 | SPECIAL PERILS | specialPerils | NA |
5 | SPRAY PAINT COVERAGE | sprayPainting | 1000,2000,3000,4000 |
6 | RIDE EASY | rideEasy | 20000,30000 |
7 | STRIKE, RIOT & CIVIL COMMOTION | src | NA |
8 | LEGAL LIABILITY OF PASSENGERS | llop | NA |
9 | LEGAL LIABILITY TO PASSENGERS | llp | NA |
Request URL:
https://apiuat.tuneprotect.com/d2c/1.0/products/7?language=en_us
Request Method : GET
Query parameter and path variable in request:
PARAMETER | TYPE |
---|---|
locale | String |
productId | 7 (for Motor Easy) |
Update Quote (with Additional Information) API:
Request:
{
"productCode": "MOTOREASY",
"quoteId": "1623909380262268",
"selectedPlanCode": "Basic",
"quotedAmount": "540.37",
"optionalBenefits": [
{
"applicableAmount": 0,
"benefit": "windScreen",
"sumInsured": 500
},
{
"applicableAmount": 0,
"benefit": "sprayPainting",
"sumInsured": 1000
}
],
"customerInformation": [
{
"name": "State",
"value": "Johor"
},
{
"name": "city",
"value": "Buloh Kasap"
},
{
"name": "postalCode",
"value": "43562"
},
{
"name": "addressLine2",
"value": "test"
},
{
"name": "addressLine1",
"value": "test"
},
{
"name": "fullName",
"value": "TEST"
},
{
"name": "documentType",
"value": "nric"
},
{
"name": "gender",
"value": "Female"
},
{
"name": "emailAddress",
"value": "[email protected]"
},
{
"name": "dob",
"value": "1975/08/08"
},
{
"name": "mobileNumber",
"value": "919496711129"
},
{
"name": "documentID",
"value": "750808-10-5044"
},
{
"name": "nationality",
"value": "MYS"
}
],
"purchaserInformation": [],
"additionalInformation": [
{
"name": "additionalDrivers",
"value": "[{\"name\":\"TESTDRIVER\",\"age\":21},{\"name\":\"TESTDRIVERS\",\"age\":26}]"
}
],
"quoteItems1": [],
"quoteItems2": []
}
Response:
{
"success": true,
"messages": " Update success. ",
"data": {
"productCode": "MOTOREASY",
"quoteId": "1623909380262268",
"selectedPlanCode": "Basic",
"selectedPlanDisplayName": "Option 1",
"quotedAmount": "540.37",
"totalNumberOfPersons": 0,
"totalNumberOfAdditionalDrivers": 2,
"userInformationDTO": {
"parameters": [
{
"name": "category",
"value": "PAS"
},
{
"name": "chassisNo",
"value": "PM2M502G002081070"
},
{
"name": "coverType",
"value": "3"
},
{
"name": "curNCD",
"value": "0.55"
},
{
"name": "engineCapacity",
"value": "1495"
},
{
"name": "engineNo",
"value": "G15A20J"
},
{
"name": "make",
"value": "PERODUA"
},
{
"name": "makeCode",
"value": "33"
},
{
"name": "marketValue",
"value": "22300.0"
},
{
"name": "model",
"value": "ALZA"
},
{
"name": "modelCode",
"value": "09"
},
{
"name": "ncdEffDate",
"value": "14122019"
},
{
"name": "ncdExpDate",
"value": "13122020"
},
{
"name": "nextNCD",
"value": "0.55"
},
{
"name": "nextNcdEffDate",
"value": "17062021"
},
{
"name": "nvic",
"value": "HL411A"
},
{
"name": "polExpDate",
"value": "13122020"
},
{
"name": "preInsCode",
"value": "247"
},
{
"name": "seatingCapacity",
"value": "7"
},
{
"name": "vehicleVariant",
"value": "EZi 4 SP AUTOMATIC"
},
{
"name": "vehClass",
"value": "02"
},
{
"name": "vehRegNo",
"value": "BEH9388"
},
{
"name": "vehUse",
"value": "1"
},
{
"name": "yearMake",
"value": "2011"
}
]
},
"detailedQuotation": [
{
"rateName": "CoverPremium",
"quotedAmount": "0"
},
{
"rateName": "AllRiderPremium",
"quotedAmount": "0"
},
{
"rateName": "BAPA",
"quotedAmount": "825.50"
},
{
"rateName": "NCD",
"quotedAmount": "454.03"
},
{
"rateName": "ExtendPremium",
"quotedAmount": "0"
},
{
"rateName": "EXTRABFTS",
"quotedAmount": "188.77"
},
{
"rateName": "EXTRACOVER",
"quotedAmount": "0"
},
{
"rateName": "Premium",
"quotedAmount": "0"
},
{
"rateName": "GSTDiscountAmount",
"quotedAmount": "0"
},
{
"rateName": "GSTPerc",
"quotedAmount": "0"
},
{
"rateName": "GSTAmount",
"quotedAmount": "0"
},
{
"rateName": "SD_ME",
"quotedAmount": "10"
},
{
"rateName": "TOTAL",
"quotedAmount": "540.37"
},
{
"rateName": "TotalAmountPayable",
"quotedAmount": "540.37"
},
{
"rateName": "SchedulePremium",
"quotedAmount": "0"
},
{
"rateName": "ONLINEDISCPERC",
"quotedAmount": "10.0"
},
{
"rateName": "ONLINEDISC",
"quotedAmount": "56.02"
},
{
"rateName": "PremiumAfterDiscount",
"quotedAmount": "504.22"
},
{
"rateName": "TrailerPremium",
"quotedAmount": "0"
},
{
"rateName": "TotalExtraCoverPremium",
"quotedAmount": "0"
},
{
"rateName": "NoClaimDiscount",
"quotedAmount": "0"
},
{
"rateName": "GROSS",
"quotedAmount": "560.24"
},
{
"rateName": "LOAD",
"quotedAmount": "0"
},
{
"rateName": "SST",
"quotedAmount": "30.25"
},
{
"rateName": "SSTPerc",
"quotedAmount": "6.0"
},
{
"rateName": "EXCESS",
"quotedAmount": "200.7"
},
{
"rateName": "NCDPerc",
"quotedAmount": "55.0"
},
{
"rateName": "TOTALEXTRAS",
"quotedAmount": "188.77"
},
{
"rateName": "windScreen",
"quotedAmount": "75"
},
{
"rateName": "sprayPainting",
"quotedAmount": "103.77"
},
{
"rateName": "driver",
"quotedAmount": "10"
}
],
"optionalBenefits": [
{
"benefit": "windScreen",
"sumInsured": 500,
"applicableAmount": 75
},
{
"benefit": "sprayPainting",
"sumInsured": 1000,
"applicableAmount": 103.77
}
],
"customerInformation": [
{
"name": "State",
"value": "Johor"
},
{
"name": "city",
"value": "Buloh Kasap"
},
{
"name": "postalCode",
"value": "43562"
},
{
"name": "addressLine2",
"value": "test"
},
{
"name": "addressLine1",
"value": "test"
},
{
"name": "fullName",
"value": "TEST"
},
{
"name": "documentType",
"value": "nric"
},
{
"name": "gender",
"value": "Female"
},
{
"name": "emailAddress",
"value": "[email protected]"
},
{
"name": "dob",
"value": "1975/08/08"
},
{
"name": "mobileNumber",
"value": "919496711129"
},
{
"name": "documentID",
"value": "750808-10-5044"
},
{
"name": "nationality",
"value": "MYS"
}
],
"purchaserInformation": [],
"additionalInformation": [
{
"name": "additionalDrivers",
"value": "[{\"name\":\"TESTDRIVER\",\"age\":21},{\"name\":\"TESTDRIVERS\",\"age\":26}]"
}
],
"eligibleForPayd": false,
"loyaltyEnabled": true,
"loyalty": {
"eligibleForLoyalty": true,
"loyaltyId": "2154810531",
"pointsTobeEarned": 2520,
"emailAddres": "[email protected]"
}
},
"code": 200
}
Update quote API is used to update customer details, additonal information and other details like accept terms and conditions. This API can be triggered multiple times to update customer and other details for a purchase.
Request URL: https://apiuat.tuneprotect.com/d2c/1.0/products/updatequote?locale=en_us
Method:POST
Query and body parameters in request:
PARAMETER | TYPE |
---|---|
locale | String |
productCode | String |
quoteId | String |
selectedPlanCode | String |
quotedAmount | String |
optionalBenefits | Array |
benefit | String |
sumInsured | Double |
AdditionalInformation | Array |
additionalDrivers | String |
CustomerInformation | Array |
nationality | String |
documentID | String |
mobileNumber | String |
dob | String |
emailAddress | String |
gender | String |
documentType | String |
fullName | String |
State | String |
city | String |
postalCode | String |
addressLine1 | String |
addressLine2 | String |
purchaserInformation | Array (If purchasing for others) |
nationality | String |
documentID | String |
mobileNumber | String |
dob | String |
emailAddress | String |
gender | String |
documentType | String |
fullName | String |
State | String |
city | String |
postalCode | String |
addressLine1 | String |
addressLine2 | String |
Update Quote (with acceptTerms ‘1’ and agreeDeclaration with ‘1’ or ‘0’) API:
Request:
{
"productCode": "MOTOREASY",
"quoteId": "1623840867137818",
"selectedPlanCode": "Basic",
"quotedAmount": "570.37",
"optionalBenefits": [
{
"applicableAmount": 0,
"benefit": "sprayPainting",
"sumInsured": 1000
},
{
"applicableAmount": 0,
"benefit": "windScreen",
"sumInsured": 500
}
],
"customerInformation": [
{
"name": "State",
"value": "Johor"
},
{
"name": "city",
"value": "Bukit Bakri"
},
{
"name": "postalCode",
"value": "12322"
},
{
"name": "addressLine2",
"value": "test"
},
{
"name": "addressLine1",
"value": "test"
},
{
"name": "fullName",
"value": "TEST"
},
{
"name": "documentType",
"value": "nric"
},
{
"name": "gender",
"value": "Female"
},
{
"name": "emailAddress",
"value": "[email protected]"
},
{
"name": "dob",
"value": "1975/08/08"
},
{
"name": "mobileNumber",
"value": "919496711129"
},
{
"name": "documentID",
"value": "750808-10-5044"
},
{
"name": "nationality",
"value": "MYS"
}
],
"purchaserInformation": [],
"additionalInformation": [
{
"name": "additionalDrivers",
"value": "{}"
}
],
"quoteItems1": [],
"quoteItems2": [],
"acceptTerms": "1",
"agreeDeclaration": "1",
"globalDeclaration": []
}
Response:
{
"success": true,
"messages": " Update success. ",
"data": {
"productCode": "MOTOREASY",
"quoteId": "1623840867137818",
"selectedPlanCode": "Basic",
"selectedPlanDisplayName": "Option 1",
"quotedAmount": "570.37",
"totalNumberOfPersons": 0,
"totalNumberOfAdditionalDrivers": 0,
"userInformationDTO": {
"parameters": [
{
"name": "category",
"value": "PAS"
},
{
"name": "chassisNo",
"value": "PM2M502G002081070"
},
{
"name": "coverType",
"value": "3"
},
{
"name": "curNCD",
"value": "0.55"
},
{
"name": "engineCapacity",
"value": "1495"
},
{
"name": "engineNo",
"value": "G15A20J"
},
{
"name": "make",
"value": "PERODUA"
},
{
"name": "makeCode",
"value": "33"
},
{
"name": "marketValue",
"value": "22300.0"
},
{
"name": "model",
"value": "ALZA"
},
{
"name": "modelCode",
"value": "09"
},
{
"name": "ncdEffDate",
"value": "14122019"
},
{
"name": "ncdExpDate",
"value": "13122020"
},
{
"name": "nextNCD",
"value": "0.55"
},
{
"name": "nextNcdEffDate",
"value": "16062021"
},
{
"name": "nvic",
"value": "HL411A"
},
{
"name": "polExpDate",
"value": "13122020"
},
{
"name": "preInsCode",
"value": "247"
},
{
"name": "seatingCapacity",
"value": "7"
},
{
"name": "vehicleVariant",
"value": "EZi 4 SP AUTOMATIC"
},
{
"name": "vehClass",
"value": "02"
},
{
"name": "vehRegNo",
"value": "BEH9388"
},
{
"name": "vehUse",
"value": "1"
},
{
"name": "yearMake",
"value": "2011"
}
]
},
"detailedQuotation": [
{
"rateName": "CoverPremium",
"quotedAmount": "0"
},
{
"rateName": "AllRiderPremium",
"quotedAmount": "0"
},
{
"rateName": "BAPA",
"quotedAmount": "908.05"
},
{
"rateName": "NCD",
"quotedAmount": "499.43"
},
{
"rateName": "ExtendPremium",
"quotedAmount": "0"
},
{
"rateName": "EXTRABFTS",
"quotedAmount": "178.77"
},
{
"rateName": "EXTRACOVER",
"quotedAmount": "0"
},
{
"rateName": "Premium",
"quotedAmount": "0"
},
{
"rateName": "GSTDiscountAmount",
"quotedAmount": "0"
},
{
"rateName": "GSTPerc",
"quotedAmount": "0"
},
{
"rateName": "GSTAmount",
"quotedAmount": "0"
},
{
"rateName": "SD_ME",
"quotedAmount": "10"
},
{
"rateName": "TOTAL",
"quotedAmount": "570.37"
},
{
"rateName": "TotalAmountPayable",
"quotedAmount": "570.37"
},
{
"rateName": "SchedulePremium",
"quotedAmount": "0"
},
{
"rateName": "ONLINEDISCPERC",
"quotedAmount": "10.0"
},
{
"rateName": "ONLINEDISC",
"quotedAmount": "58.74"
},
{
"rateName": "PremiumAfterDiscount",
"quotedAmount": "528.65"
},
{
"rateName": "TrailerPremium",
"quotedAmount": "0"
},
{
"rateName": "TotalExtraCoverPremium",
"quotedAmount": "0"
},
{
"rateName": "NoClaimDiscount",
"quotedAmount": "0"
},
{
"rateName": "GROSS",
"quotedAmount": "587.39"
},
{
"rateName": "LOAD",
"quotedAmount": "0"
},
{
"rateName": "SST",
"quotedAmount": "31.72"
},
{
"rateName": "SSTPerc",
"quotedAmount": "6.0"
},
{
"rateName": "EXCESS",
"quotedAmount": "200.7"
},
{
"rateName": "NCDPerc",
"quotedAmount": "55.0"
},
{
"rateName": "TOTALEXTRAS",
"quotedAmount": "178.77"
},
{
"rateName": "sprayPainting",
"quotedAmount": "103.77"
},
{
"rateName": "windScreen",
"quotedAmount": "75"
},
{
"rateName": "driver",
"quotedAmount": "0"
}
],
"optionalBenefits": [
{
"benefit": "sprayPainting",
"sumInsured": 1000,
"applicableAmount": 103.77
},
{
"benefit": "windScreen",
"sumInsured": 500,
"applicableAmount": 75
}
],
"customerInformation": [
{
"name": "State",
"value": "Johor"
},
{
"name": "city",
"value": "Bukit Bakri"
},
{
"name": "postalCode",
"value": "12322"
},
{
"name": "addressLine2",
"value": "test"
},
{
"name": "addressLine1",
"value": "test"
},
{
"name": "fullName",
"value": "TEST"
},
{
"name": "documentType",
"value": "nric"
},
{
"name": "gender",
"value": "Female"
},
{
"name": "emailAddress",
"value": "[email protected]"
},
{
"name": "dob",
"value": "1975/08/08"
},
{
"name": "mobileNumber",
"value": "919496711129"
},
{
"name": "documentID",
"value": "750808-10-5044"
},
{
"name": "nationality",
"value": "MYS"
}
],
"purchaserInformation": [],
"additionalInformation": [
{
"name": "additionalDrivers",
"value": "{}"
}
],
"eligibleForPayd": false,
"loyaltyEnabled": true,
"loyalty": {
"eligibleForLoyalty": true,
"loyaltyId": "2154810531",
"pointsTobeEarned": 2640,
"emailAddres": "[email protected]"
}
},
"code": 200
}
Update quote API is used to update customer details, additonal information and other details like accept terms and conditions.
Request URL: https://apiuat.tuneprotect.com/d2c/1.0/products/updatequote?locale=en_us
Method:POST
Query and body parameters in request:
PARAMETER | TYPE |
---|---|
locale | String |
productCode | String |
quoteId | String |
selectedPlanCode | String |
quotedAmount | String |
acceptTerms | String |
agreeDeclaration | String |
optionalBenefits | Array |
benefit | String |
sumInsured | Double |
AdditionalInformation | Array |
additionalDrivers | String |
CustomerInformation | Array |
nationality | String |
documentID | String |
mobileNumber | String |
dob | String |
emailAddress | String |
gender | String |
documentType | String |
fullName | String |
State | String |
city | String |
postalCode | String |
addressLine1 | String |
addressLine2 | String |
purchaserInformation | Array (If purchasing for others) |
nationality | String |
documentID | String |
mobileNumber | String |
dob | String |
emailAddress | String |
gender | String |
documentType | String |
fullName | String |
State | String |
city | String |
postalCode | String |
addressLine1 | String |
addressLine2 | String |
INIT Transaction API:
Request:
{
"productCode": "MOTOREASY",
"quoteId": "1623840867137818",
"quotedAmount": "570.37",
"paymentMethodType": 1,
"loyaltySelected": 0,
"currency": "MYR",
"returnUrl": "https://tpmrsuat.tuneprotect.com/paymentStatus/"
}
Response:
{
"transactionId": "BC00007952",
"quotedAmount": "570.37",
"status": "INITIATED",
"customerId": "",
"paymentPasswordEncrypted": "O0qWOE9OnnV2979d1zASZs0ROyoH5rCP",
"paymentFailureCallbackUrl": "https://tpmrsuat.tuneprotect.com/rocketship/d/aQDOxKaRqeLk",
"token": null
}
Transaction API is used to initiate transaction before calling payment gateway for purchase. Initiate transaction API will create a transaction ID for the transaction and will return it. This transaction ID need to be used in the final create policy API after payment success/failed status.
Request URL: https://apiuat.tuneprotect.com/d2c/1.0/products/transactions?locale=en_us Method:POST
Query and request body parameters:
PARAMETER | TYPE |
---|---|
locale | String |
productCode | String |
quoteId | String |
paymentMethodType | String |
quotedAmount | String |
loyaltySelected | Integer |
currency | String |
returnUrl | String |
Create Policy
Request:
{
"productCode": "MOTOREASY",
"quoteId": "1623840867137818",
"quotedAmount": "570.37",
"currencyCode": "MYR",
"status": "0",
"authorizationCode": "TIS000",
"gatewayId": "eghl",
"referenceCode": "TIS0000000000BC00007952",
"customerId": "",
"paymentMethod": "1",
"token": ""
}
Response
{
"success": true,
"messages": " Transaction Update success. Policy created",
"data": {
"quoteid": "1623840867137818",
"policy": {
"policystatus": "confirmed",
"policynumber": "6550121b2ca1898",
"policycreationdatetime": 1623838760241,
"effectivedate": 1623772800000,
"policyurl": null,
"expirydate": 1655222400000,
"forself": true
},
"transactionid": "bc00007952",
"adaptorcustomerid": null,
"policyholder": {
"fullname": "test",
"mobilenumber": 919496711129,
"emailaddress": "[email protected]",
"nationality": "MYS",
"dob": 872265600000,
"gender": "M",
"addressLine1": "Test",
"addressLine2": "Test",
"state": null,
"city": "Chaah",
"postalCode": "13433",
"documentID": null,
"documentType": null
},
"loyalty": null,
"userExists": false,
"status": "POLICY_GENERATED"
},
"code": 200
}
After a payment success, you can trigger the create policy API for creating policy for customer. This API returns policy/certificate number, policy expiry date and other policy details.
Request URL: https://apiuat.tuneprotect.com/d2c/1.0/products/transactions/BC00007952/status?locale=en_us
Method:POST
Query and request body parameters:
PARAMETER | TYPE |
---|---|
locale | String |
productCode | String |
quoteId | String |
paymentMethod | String |
quotedAmount | String |
status | Integer |
currencyCode | String |
authorizationCode | String |
gatewayId | String |
referenceCode | String |
customerId | String |
paymentMethod | String |
token | String |
Home - API Request And Response Details
Get Basic Quote API:
Request:
{
"quoteId": "",
"customerId": "",
"productCode": "HOHH",
"parameters": [
{
"name": "buildingType",
"value": "Landed"
},
{
"name": "coverageType",
"value": "HouseOwner"
},
{
"name": "ownProperty",
"value": "Yes"
},
{
"name": "buildingMaterial",
"value": "1"
},
{
"name": "bankLoan",
"value": "1"
},
{
"name": "sumInsured",
"value": "500000"
}
]
}
Response:
{
"productCode": "HOHH",
"quoteId": "1624535973195186",
"plans": [
{
"planCode": "HO",
"currency": "MYR",
"displayName": "Building",
"quotedAmount": "296.52",
"sumInsured": "500000.00",
"sumInsuredHH": "25000.00",
"basePremium": "270.30",
"basePremiumHO": "318.00",
"basePremiumHH": "0.00"
}
],
"userInformationDTO": null
}
This API is used to fetch basic quote details for product. We will get following details from basic quote API:
- Quote ID – In product purchase flow, Quote ID is used as unique number.
- Plans and minimal plan details
Request URL:
https://apiuat.tuneprotect.com/d2c/1.0/products/quote/options?locale=en_us
Method : POST
Query and body parameters in request:
PARAMETER | TYPE |
---|---|
locale | String |
customerId | String |
productCode | String |
Parameters | Array |
buildingType | String |
coverageType | String |
ownProperty | String |
buildingMaterial | String |
bankLoan | String |
sumInsured | String |
Get Basic Quote API (With ADD-ONs):
Request:
{
"quoteId": "",
"customerId": "",
"productCode": "HOHH",
"parameters": [
{
"name": "buildingType",
"value": "Landed"
},
{
"name": "coverageType",
"value": "HouseOwner"
},
{
"name": "ownProperty",
"value": "Yes"
},
{
"name": "buildingMaterial",
"value": "1"
},
{
"name": "bankLoan",
"value": "1"
},
{
"name": "sumInsured",
"value": "500000"
},
{
"name": "personalLiability",
"value": true
},
{
"name": "riotStrike&MaliciousDamageHO",
"value": true
},
{
"name": "subsidence&LandslipHO",
"value": true
},
{
"name": "plateGlassHO",
"value": true
}
]
}
Response:
{
"productCode": "HOHH",
"quoteId": "1624537533481246",
"plans": [
{
"planCode": "HO",
"currency": "MYR",
"displayName": "Building",
"quotedAmount": "722.69",
"sumInsured": "500000.00",
"sumInsuredHH": "25000.00",
"basePremium": "672.35",
"basePremiumHO": "318.00",
"basePremiumHH": "0.00"
}
],
"userInformationDTO": null
}
This API is used to fetch basic quote details for product. We will get following details from basic quote API:
- Quote ID – In product purchase flow, Quote ID is used as unique number.
- Plans and minimal plan details
Request URL:
https://apiuat.tuneprotect.com/d2c/1.0/products/quote/options?locale=en_us
Method : POST
Query parameters:
PARAMETER | TYPE |
---|---|
locale | String |
customerId | String |
productCode | String |
Parameters | Array |
buildingType | String |
coverageType | String |
ownProperty | String |
buildingMaterial | String |
bankLoan | String |
sumInsured | String |
personalLiability | Boolean |
riotStrike&MaliciousDamageHO | Boolean |
subsidence&LandslipHO | Boolean |
plateGlassHO | Boolean |
Get Quote Details API:
Response:
{
"success": true,
"messages": "Requested Quote is : ",
"data": {
"productCode": "HOHH",
"quoteId": "1624535973195186",
"selectedPlanCode": "HO",
"selectedPlanDisplayName": "Building",
"quotedAmount": "296.52",
"totalNumberOfPersons": 0,
"totalNumberOfAdditionalDrivers": 0,
"userInformationDTO": null,
"detailedQuotation": [
{
"rateName": "BP01",
"quotedAmount": "318.0"
},
{
"rateName": "OP01",
"quotedAmount": "0.0"
},
{
"rateName": "OP02",
"quotedAmount": "0.0"
},
{
"rateName": "OP03",
"quotedAmount": "0.0"
},
{
"rateName": "OTHE",
"quotedAmount": "318.0"
},
{
"rateName": "AO01",
"quotedAmount": "0.0"
},
{
"rateName": "AO02",
"quotedAmount": "0.0"
},
{
"rateName": "AO03",
"quotedAmount": "0.0"
},
{
"rateName": "AO04",
"quotedAmount": "0.0"
},
{
"rateName": "AO05",
"quotedAmount": "0.0"
},
{
"rateName": "OP11",
"quotedAmount": "0.0"
},
{
"rateName": "OP12",
"quotedAmount": "0.0"
},
{
"rateName": "OP13",
"quotedAmount": "0.0"
},
{
"rateName": "TEXT",
"quotedAmount": "0.0"
},
{
"rateName": "SEC1",
"quotedAmount": "318.0"
},
{
"rateName": "SEC2",
"quotedAmount": "0.0"
},
{
"rateName": "SEC3",
"quotedAmount": "0.0"
},
{
"rateName": "BAPA",
"quotedAmount": "318.0"
},
{
"rateName": "GPRE",
"quotedAmount": "318.0"
},
{
"rateName": "ORBTPERC",
"quotedAmount": "15.0"
},
{
"rateName": "ORBT",
"quotedAmount": "-47.7"
},
{
"rateName": "GROSS",
"quotedAmount": "270.3"
},
{
"rateName": "SST",
"quotedAmount": "16.22"
},
{
"rateName": "SD",
"quotedAmount": "10.0"
},
{
"rateName": "TOTAL",
"quotedAmount": "296.52"
},
{
"rateName": "REBAPERC",
"quotedAmount": "0"
},
{
"rateName": "SSTPERC",
"quotedAmount": "6"
},
{
"rateName": "PremiumAfterDiscount",
"quotedAmount": "270.3"
},
{
"rateName": "DISCPERC",
"quotedAmount": "0"
}
],
"optionalBenefits": [],
"customerInformation": [],
"purchaserInformation": null,
"additionalInformation": [],
"eligibleForPayd": false,
"loyaltyEnabled": false,
"loyalty": null
},
"code": 200
}
get following details from get quote API.
- Quote ID
- Quoted amount
- Detailed quoation – This section have the quotation details like basic premium, GST details, discount amounts, total amount to pay, etc. Request URL:
Query and body parameters in request:
Method:GET
PARAMETER | TYPE |
---|---|
productCode | String |
planCode | String |
quoteId | String |
locale | String |
Update Quote (with Customer details) API:
Request:
{
"productCode": "HOHH",
"quoteId": "1624537533481246",
"selectedPlanCode": "HO",
"quotedAmount": "1074.08",
"optionalBenefits": [],
"customerInformation": [
{
"name": "loanReferenceNumber",
"value": "34344435"
},
{
"name": "financialInterest",
"value": "AGRO Bank"
},
{
"name": "livingInPropertyAddress",
"value": "false"
},
{
"name": "propertyCountry",
"value": "MYS"
},
{
"name": "propertyPostalCode",
"value": "45345"
},
{
"name": "propertyHomeState",
"value": "Johor"
},
{
"name": "propertyHomeAddress2",
"value": "add2"
},
{
"name": "propertyHomeAddress1",
"value": "add1"
},
{
"name": "policyEndDate",
"value": "2022/06/29"
},
{
"name": "policyStartDate",
"value": "2021/06/30"
},
{
"name": "isMailingAddressSameHomeAddress",
"value": "false"
},
{
"name": "mailingAddressPostalCode",
"value": "35426"
},
{
"name": "mailingAddressState",
"value": "kedah"
},
{
"name": "mailingAddressCountry",
"value": "MYS"
},
{
"name": "mailingAddressLine2",
"value": "madd2"
},
{
"name": "mailingAddressLine1",
"value": "madd1"
},
{
"name": "addressPostalCode",
"value": "65455"
},
{
"name": "addressState",
"value": "KEDAH"
},
{
"name": "addressCountry",
"value": "MYS"
},
{
"name": "addressLine2",
"value": "hadd2"
},
{
"name": "addressLine1",
"value": "hadd1"
},
{
"name": "nationality",
"value": "AFG"
},
{
"name": "documentID",
"value": "SDASD67565765"
},
{
"name": "mobileNumber",
"value": "919746149011"
},
{
"name": "mobileCountryCode",
"value": "+91"
},
{
"name": "dob",
"value": "1992/05/06"
},
{
"name": "emailAddress",
"value": "[email protected]"
},
{
"name": "gender",
"value": "Male"
},
{
"name": "documentType",
"value": "Passport"
},
{
"name": "fullName",
"value": "SREEJITH"
},
{
"name": "landlordInsuraceRental",
"value": "true"
},
{
"name": "mortageLoanInstallementPack",
"value": "true"
},
{
"name": "smartHomeDevicePack",
"value": "true"
},
{
"name": "homeCarePack",
"value": "true"
},
{
"name": "underwriterQn1",
"value": "0"
},
{
"name": "underwriterQn2",
"value": "0"
},
{
"name": "underwriterQn3",
"value": "0"
}
],
"purchaserInformation": [],
"additionalInformation": [],
"quoteItems1": [],
"quoteItems2": []
}
Response:
{
"success": true,
"messages": " Update success. ",
"data": {
"productCode": "HOHH",
"quoteId": "1624537533481246",
"selectedPlanCode": "HO",
"selectedPlanDisplayName": "Building",
"quotedAmount": "1074.08",
"totalNumberOfPersons": 0,
"totalNumberOfAdditionalDrivers": 0,
"userInformationDTO": null,
"detailedQuotation": [
{
"rateName": "BP01",
"quotedAmount": "318.00"
},
{
"rateName": "OP01",
"quotedAmount": "30.00"
},
{
"rateName": "OP02",
"quotedAmount": "243.00"
},
{
"rateName": "OP03",
"quotedAmount": "150.00"
},
{
"rateName": "OTHE",
"quotedAmount": "741.00"
},
{
"rateName": "AO01",
"quotedAmount": "250.00"
},
{
"rateName": "AO02",
"quotedAmount": "25.00"
},
{
"rateName": "AO03",
"quotedAmount": "50.00"
},
{
"rateName": "AO04",
"quotedAmount": "65.00"
},
{
"rateName": "AO05",
"quotedAmount": "50.00"
},
{
"rateName": "OP11",
"quotedAmount": "30.00"
},
{
"rateName": "OP12",
"quotedAmount": "243.00"
},
{
"rateName": "OP13",
"quotedAmount": "150.00"
},
{
"rateName": "TEXT",
"quotedAmount": "863.00"
},
{
"rateName": "SEC1",
"quotedAmount": "741.00"
},
{
"rateName": "SEC2",
"quotedAmount": "0.00"
},
{
"rateName": "SEC3",
"quotedAmount": "390.00"
},
{
"rateName": "BAPA",
"quotedAmount": "318.00"
},
{
"rateName": "GPRE",
"quotedAmount": "1181.00"
},
{
"rateName": "ORBTPERC",
"quotedAmount": "15.00"
},
{
"rateName": "ORBT",
"quotedAmount": "-177.15"
},
{
"rateName": "GROSS",
"quotedAmount": "1003.85"
},
{
"rateName": "SST",
"quotedAmount": "60.23"
},
{
"rateName": "SD",
"quotedAmount": "10.00"
},
{
"rateName": "TOTAL",
"quotedAmount": "1074.08"
},
{
"rateName": "REBAPERC",
"quotedAmount": "0"
},
{
"rateName": "SSTPERC",
"quotedAmount": "6"
},
{
"rateName": "PremiumAfterDiscount",
"quotedAmount": "1003.85"
},
{
"rateName": "DISCPERC",
"quotedAmount": "0"
}
],
"optionalBenefits": [],
"customerInformation": [
{
"name": "loanReferenceNumber",
"value": "34344435"
},
{
"name": "financialInterest",
"value": "AGRO Bank"
},
{
"name": "livingInPropertyAddress",
"value": "false"
},
{
"name": "propertyCountry",
"value": "MYS"
},
{
"name": "propertyPostalCode",
"value": "45345"
},
{
"name": "propertyHomeState",
"value": "Johor"
},
{
"name": "propertyHomeAddress2",
"value": "add2"
},
{
"name": "propertyHomeAddress1",
"value": "add1"
},
{
"name": "policyEndDate",
"value": "2022/06/29"
},
{
"name": "policyStartDate",
"value": "2021/06/30"
},
{
"name": "isMailingAddressSameHomeAddress",
"value": "false"
},
{
"name": "mailingAddressPostalCode",
"value": "35426"
},
{
"name": "mailingAddressState",
"value": "kedah"
},
{
"name": "mailingAddressCountry",
"value": "MYS"
},
{
"name": "mailingAddressLine2",
"value": "madd2"
},
{
"name": "mailingAddressLine1",
"value": "madd1"
},
{
"name": "addressPostalCode",
"value": "65455"
},
{
"name": "addressState",
"value": "KEDAH"
},
{
"name": "addressCountry",
"value": "MYS"
},
{
"name": "addressLine2",
"value": "hadd2"
},
{
"name": "addressLine1",
"value": "hadd1"
},
{
"name": "nationality",
"value": "AFG"
},
{
"name": "documentID",
"value": "SDASD67565765"
},
{
"name": "mobileNumber",
"value": "919746149011"
},
{
"name": "mobileCountryCode",
"value": "+91"
},
{
"name": "dob",
"value": "1992/05/06"
},
{
"name": "emailAddress",
"value": "[email protected]"
},
{
"name": "gender",
"value": "Male"
},
{
"name": "documentType",
"value": "Passport"
},
{
"name": "fullName",
"value": "SREEJITH"
},
{
"name": "landlordInsuraceRental",
"value": "true"
},
{
"name": "mortageLoanInstallementPack",
"value": "true"
},
{
"name": "smartHomeDevicePack",
"value": "true"
},
{
"name": "homeCarePack",
"value": "true"
},
{
"name": "underwriterQn1",
"value": "0"
},
{
"name": "underwriterQn2",
"value": "0"
},
{
"name": "underwriterQn3",
"value": "0"
}
],
"purchaserInformation": [],
"additionalInformation": [],
"eligibleForPayd": false,
"loyaltyEnabled": true,
"loyalty": {
"eligibleForLoyalty": false,
"loyaltyId": null,
"pointsTobeEarned": 5015,
"emailAddres": "[email protected]"
}
},
"code": 200
}
Update quote API is used to update customer details, additonal information and other details like accept terms and conditions. This API can be triggered multiple times to update customer and other details for a purchase.
Request URL: https://apiuat.tuneprotect.com/d2c/1.0/products/updatequote?locale=en_us
Method:POST
Query and body parameters in request:
PARAMETER | TYPE |
---|---|
locale | String |
productCode | String |
quoteId | String |
selectedPlanCode | String |
quotedAmount | String |
customerInformation | Array |
loanReferenceNumber | String |
financialInterest | String |
livingInPropertyAddress | String |
propertyCountry | String |
propertyPostalCode | String |
propertyHomeState | String |
propertyHomeAddress2 | String |
propertyHomeAddress1 | String |
policyEndDate | String |
policyStartDate | String |
isMailingAddressSameHomeAddress | String |
mailingAddressPostalCode | String |
mailingAddressState | String |
mailingAddressCountry | String |
mailingAddressLine2 | String |
mailingAddressLine1 | String |
addressPostalCode | String |
addressState | String |
addressCountry | String |
addressLine2 | String |
addressLine1 | String |
nationality | String |
documentID | String |
mobileNumber | String |
mobileCountryCode | String |
dob | String |
emailAddress | String |
gender | String |
documentType | String |
fullName | String |
landlordInsuraceRental | String |
mortageLoanInstallementPack | String |
smartHomeDevicePack | String |
homeCarePack | String |
underwriterQn1 | String |
underwriterQn2 | String |
underwriterQn3 | String |
purchaserInformation | Array |
additionalInformation | Array |
quoteItems1 Blank | Array |
quoteItems2 Blank | Array |
OptionalBenefits | Array |
applicableAmount | Integer |
INIT Transaction API:
Request:
{
"productCode": "HOHH",
"quoteId": "1624537533481246",
"quotedAmount": "1074.08",
"paymentMethodType": 1,
"loyaltySelected": 0,
"currency": "MYR",
"returnUrl": "https://tpmrsuat.tuneprotect.com/paymentStatus/"
}
Response:
{
"transactionId": "PFTHOHH247578-3056",
"quotedAmount": "1074.08",
"status": "INITIATED",
"customerId": "",
"paymentPasswordEncrypted": "O0qWOE9OnnV2979d1zASZs0ROyoH5rCP",
"paymentFailureCallbackUrl": "https://tpmrsuat.tuneprotect.com/rocketship/d/aQDOxKaRqeLk",
"token": null
}
Transaction API is used to initiate transaction before calling payment gateway for purchase. Initiate transaction API will create a transaction ID for the transaction and will return it. This transaction ID need to be used in the final create policy API after payment success/failed status.
Request URL: https://apiuat.tuneprotect.com/d2c/1.0/products/transactions?locale=en_us Method:POST
Query and request body parameters:
PARAMETER | TYPE |
---|---|
locale | String |
productCode | String |
quoteId | String |
paymentMethodType | String |
quotedAmount | String |
loyaltySelected | Integer |
currency | String |
returnUrl | String |
Create Policy
Request:
{
"productCode": "HOHH",
"quoteId": "1624537533481246",
"quotedAmount": "1074.08",
"currencyCode": "MYR",
"status": "0",
"authorizationCode": "TIS000",
"gatewayId": "eghl",
"referenceCode": "TIS000PFTHOHH2475783056",
"customerId": "108003",
"paymentMethod": "1",
"token": ""
}
Response
{
"success": true,
"messages": " Transaction Update success. Policy created",
"data": {
"quoteId": "1624537533481246",
"policy": {
"policyStatus": "CONFIRMED",
"policyNumber": "6525321BFA0000372",
"policyCreationDateTime": 1624541112000,
"effectiveDate": 1625068740000,
"policyUrl": "https://api-test.tuneprotect.com/DownloadPolicy/TuneDirectOnlinePDF/GetCOI?ProposalID=247578&Plan=HOHH",
"expiryDate": 1656518340000,
"forSelf": true
},
"transactionId": "PFTHOHH247578-3056",
"adaptorCustomerId": "1414292",
"policyHolder": {
"fullName": "SREEJITH",
"mobileNumber": 919746149011,
"emailAddress": "[email protected]",
"nationality": "AFG",
"dob": 705081600000,
"gender": "Male",
"addressLine1": "",
"addressLine2": "",
"state": "",
"city": "",
"postalCode": "",
"documentID": "SDASD67565765",
"documentType": "passport"
},
"loyalty": null,
"userExists": true,
"status": "POLICY_GENERATED"
},
"code": 200
}
After a payment success, you can trigger the create policy API for creating policy for customer. This API returns policy/certificate number, policy expiry date and other policy details.
Request URL: https://apiuat.tuneprotect.com/d2c/1.0/products/transactions/BC00007952/status?locale=en_us
Method:POST
Query and request body parameters:
PARAMETER | TYPE |
---|---|
locale | String |
productCode | String |
quoteId | String |
paymentMethod | String |
quotedAmount | String |
status | Integer |
currencyCode | String |
authorizationCode | String |
gatewayId | String |
referenceCode | String |
customerId | String |
paymentMethod | String |
token | String |
Pro-Health Medical - API Request And Response Details
Get Basic Quote API:
Request:
{
"quoteId": "",
"customerId": "",
"productCode": "Pro-Health",
"referralTransactionId": "",
"paymentFrequency": "Yearly",
"parameters": [
{
"name": "nationalityCheck",
"value": "0"
},
{
"name": "jobDescription1",
"value": "0"
},
{
"name": "dob",
"value": "2005/08/03"
}
]
}
Response:
{
"productCode": "Pro-Health",
"quoteId": "1661825512986513",
"plans": [
{
"planCode": "ProHealth100",
"currency": "MYR",
"displayName": "ProHealth100",
"detailedQuotation": null,
"quotedAmount": "448.60",
"sumInsured": "100000.00",
"sumInsuredHH": "0.00",
"basePremium": "438.60",
"basePremiumHO": "0.00",
"basePremiumHH": "0.00"
},
{
"planCode": "ProHealth150",
"currency": "MYR",
"displayName": "ProHealth150",
"detailedQuotation": null,
"quotedAmount": "520.00",
"sumInsured": "150000.00",
"sumInsuredHH": "0.00",
"basePremium": "510.00",
"basePremiumHO": "0.00",
"basePremiumHH": "0.00"
},
{
"planCode": "ProHealth30",
"currency": "MYR",
"displayName": "ProHealth30",
"detailedQuotation": null,
"quotedAmount": "389.95",
"sumInsured": "30000.00",
"sumInsuredHH": "0.00",
"basePremium": "379.95",
"basePremiumHO": "0.00",
"basePremiumHH": "0.00"
},
{
"planCode": "ProHealth60",
"currency": "MYR",
"displayName": "ProHealth60",
"detailedQuotation": null,
"quotedAmount": "429.05",
"sumInsured": "60000.00",
"sumInsuredHH": "0.00",
"basePremium": "419.05",
"basePremiumHO": "0.00",
"basePremiumHH": "0.00"
}
],
"userInformationDTO": null,
"affiliatePartnerURL": ""
}
This API is used to fetch basic quote details for product. We will get following details from basic quote API:
- Quote ID – In product purchase flow, Quote ID is used as unique number.
- Plans and minimal plan details
Request URL:
https://apiuat.tuneprotect.com/d2c/1.0/products/quote/options?locale=en_us
Method : POST
Query and body parameters in request:
PARAMETER | TYPE |
---|---|
locale | String |
customerId | String |
productCode | String |
referralTransactionId | String |
paymentFrequency | String |
Parameters | Array |
nationalityCheck | String |
jobDescription1 | String |
dob | String |
Get Quote Details API:
Response:
{
"success": true,
"messages": "Requested Quote is : ",
"data": {
"productCode": "Pro-Health",
"quoteId": "1661825512986513",
"selectedPlanCode": "ProHealth30",
"selectedPlanDisplayName": "ProHealth30",
"quotedAmount": "389.95",
"totalNumberOfPersons": 0,
"totalNumberOfAdditionalDrivers": 0,
"userInformationDTO": null,
"detailedQuotation": [
{
"rateName": "BAPA",
"quotedAmount": "447.00"
},
{
"rateName": "GROSS",
"quotedAmount": "447.00"
},
{
"rateName": "REBA",
"quotedAmount": "-67.05"
},
{
"rateName": "REBAPERC",
"quotedAmount": "15.00"
},
{
"rateName": "PremiumAfterDiscount",
"quotedAmount": "379.95"
},
{
"rateName": "TOTAP",
"quotedAmount": "379.95"
},
{
"rateName": "SD",
"quotedAmount": "10.00"
},
{
"rateName": "TOTAL",
"quotedAmount": "389.95"
}
],
"optionalBenefits": [],
"customerInformation": [],
"purchaserInformation": null,
"additionalInformation": [],
"eligibleForPayd": false,
"loyaltyEnabled": false,
"loyalty": null,
"checkPromoCodeResponse": null,
"eligibleForSpecialRewards": null
},
"code": 200
}
get following details from get quote API.
- Quote ID
- Quoted amount
- Detailed quoation – This section have the quotation details like basic premium, GST details, discount amounts, total amount to pay, etc. Request URL:
Query and body parameters in request:
Method:GET
PARAMETER | TYPE |
---|---|
productCode | String |
planCode | String |
quoteId | String |
locale | String |
Update Quote (with Customer details) API:
Request:
{
"productCode": "Pro-Health",
"quoteId": "1661825512986513",
"selectedPlanCode": "ProHealth30",
"quotedAmount": "389.95",
"optionalBenefits": [],
"customerInformation": [
{
"name": "isMailAddress",
"value": "true"
},
{
"name": "visaValidity",
"value": "2022/09/09"
},
{
"name": "passportValidity",
"value": "2022/08/31"
},
{
"name": "addressPostalCode",
"value": "23234"
},
{
"name": "addressState",
"value": "Perak"
},
{
"name": "addressCountry",
"value": "MYS"
},
{
"name": "addressLine1",
"value": "ashok nagar"
},
{
"name": "nationality",
"value": "AIA"
},
{
"name": "documentID",
"value": "DD2343"
},
{
"name": "mobileNumber",
"value": "601126487155"
},
{
"name": "mobileCountryCode",
"value": "+60"
},
{
"name": "dob",
"value": "2005/08/03"
},
{
"name": "emailAddress",
"value": "[email protected]"
},
{
"name": "gender",
"value": "Male"
},
{
"name": "documentType",
"value": "Passport"
},
{
"name": "fullName",
"value": "SANTHOSH GADDAM"
},
{
"name": "height",
"value": "155"
},
{
"name": "weight",
"value": "55"
},
{
"name": "underwritingAns1",
"value": "0"
},
{
"name": "underwritingAns2",
"value": "0"
},
{
"name": "underwritingAns3",
"value": "0"
}
],
"purchaserInformation": [],
"additionalInformation": [],
"quoteItems1": [],
"quoteItems2": []
}
Response:
{
"success": true,
"messages": " Update success. ",
"data": {
"productCode": "Pro-Health",
"quoteId": "1661825512986513",
"selectedPlanCode": "ProHealth30",
"selectedPlanDisplayName": "ProHealth30",
"quotedAmount": "389.95",
"totalNumberOfPersons": 0,
"totalNumberOfAdditionalDrivers": 0,
"userInformationDTO": {
"parameters": []
},
"detailedQuotation": [
{
"rateName": "BAPA",
"quotedAmount": "447.00"
},
{
"rateName": "GROSS",
"quotedAmount": "447.00"
},
{
"rateName": "REBA",
"quotedAmount": "-67.05"
},
{
"rateName": "PremiumAfterDiscount",
"quotedAmount": "379.95"
},
{
"rateName": "TOTAP",
"quotedAmount": "379.95"
},
{
"rateName": "SD",
"quotedAmount": "10.00"
},
{
"rateName": "TOTAL",
"quotedAmount": "389.95"
}
],
"optionalBenefits": [],
"customerInformation": [
{
"name": "isMailAddress",
"value": "true"
},
{
"name": "visaValidity",
"value": "2022/09/09"
},
{
"name": "passportValidity",
"value": "2022/08/31"
},
{
"name": "addressPostalCode",
"value": "23234"
},
{
"name": "addressState",
"value": "Perak"
},
{
"name": "addressCountry",
"value": "MYS"
},
{
"name": "addressLine1",
"value": "ashok nagar"
},
{
"name": "nationality",
"value": "AIA"
},
{
"name": "documentID",
"value": "DD2343"
},
{
"name": "mobileNumber",
"value": "601126487155"
},
{
"name": "mobileCountryCode",
"value": "+60"
},
{
"name": "dob",
"value": "2005/08/03"
},
{
"name": "emailAddress",
"value": "[email protected]"
},
{
"name": "gender",
"value": "Male"
},
{
"name": "documentType",
"value": "Passport"
},
{
"name": "fullName",
"value": "SANTHOSH GADDAM"
},
{
"name": "height",
"value": "155"
},
{
"name": "weight",
"value": "55"
},
{
"name": "underwritingAns1",
"value": "0"
},
{
"name": "underwritingAns2",
"value": "0"
},
{
"name": "underwritingAns3",
"value": "0"
}
],
"purchaserInformation": [],
"additionalInformation": [],
"eligibleForPayd": false,
"loyaltyEnabled": true,
"loyalty": {
"eligibleForLoyalty": false,
"loyaltyId": null,
"pointsTobeEarned": 379,
"emailAddres": "[email protected]"
},
"checkPromoCodeResponse": null,
"eligibleForSpecialRewards": false
},
"code": 200
}
Update quote API is used to update customer details, additonal information and other details like accept terms and conditions. This API can be triggered multiple times to update customer and other details for a purchase.
Request URL: https://apiuat.tuneprotect.com/d2c/1.0/products/updatequote?locale=en_us
Method:POST
Query and body parameters in request:
PARAMETER | TYPE |
---|---|
locale | String |
productCode | String |
quoteId | String |
selectedPlanCode | String |
quotedAmount | String |
customerInformation | Array |
isMailAddress | String |
visaValidity | String |
passportValidity | String |
addressPostalCode | String |
addressState | String |
addressCountry | String |
addressLine2 | String |
addressLine1 | String |
nationality | String |
documentID | String |
mobileNumber | String |
mobileCountryCode | String |
dob | String |
emailAddress | String |
gender | String |
documentType | String |
fullName | String |
underwritingAns3 | String |
underwritingAns2 | String |
underwritingAns1 | String |
height | String |
weight | String |
purchaserInformation | Array |
additionalInformation | Array |
quoteItems1 | Array |
quoteItems2 | Array |
INIT Transaction API:
Request:
{
"productCode": "Pro-Health",
"quoteId": "1661825512986513",
"quotedAmount": "389.95",
"paymentMethodType": 1,
"paymentMode": 2,
"promoCode": null,
"loyaltySelected": 0,
"currency": "MYR",
"returnUrl": "https://tpmrsuat.tuneprotect.com/paymentStatus/"
}
Response:
{
"transactionId": "PFTPH002631-8196",
"quotedAmount": "389.95",
"status": "INITIATED",
"customerId": "",
"paymentPasswordEncrypted": "w9x5PnY1U5jWt9wsvTmOudTc3lE4P4/j",
"paymentFailureCallbackUrl": null,
"monthlyQuotedAmount": 0,
"paymentDetails": [
{
"param": "callBackUrl",
"value": "https://tpmrsuat.tuneprotect.com/rocketship/eghl/v1/callback"
},
{
"param": "merchantID",
"value": "null"
},
{
"param": "invoiceNo",
"value": "PFTPH002631-8196"
},
{
"param": "description",
"value": "Payment token request for transaction PFTPH002631-8196"
},
{
"param": "amount",
"value": "389.95"
},
{
"param": "currencyCode",
"value": "MYR"
}
],
"token": null
}
Transaction API is used to initiate transaction before calling payment gateway for purchase. Initiate transaction API will create a transaction ID for the transaction and will return it. This transaction ID need to be used in the final create policy API after payment success/failed status.
Request URL: https://apiuat.tuneprotect.com/d2c/1.0/products/transactions?locale=en_us Method:POST
Query and request body parameters:
PARAMETER | TYPE |
---|---|
locale | String |
productCode | String |
quoteId | String |
paymentMethodType | Integer |
paymentMode | Integer |
promoCode | String |
quotedAmount | String |
loyaltySelected | Integer |
currency | String |
returnUrl | String |
Create Policy
Request:
{
"productCode": "Pro-Health",
"quoteId": "1661825512986513",
"quotedAmount": "389.95",
"currencyCode": "MYR",
"status": "0",
"authorizationCode": "TIS000",
"gatewayId": "eghl",
"referenceCode": "TIS00000PFTPH2278354627",
"customerId": "108003",
"paymentMethod": "1",
"token": ""
}
Response
{
"success": true,
"messages": "SUCCESS",
"data": {
"quoteId": null,
"policy": {
"policyStatus": "CONFIRMED",
"policyNumber": "MEDICAL-2022-0000566.436",
"policyCreationDateTime": 1661825999434,
"effectiveDate": 1661797197000,
"policyUrl": null,
"expiryDate": 1693246797000,
"forSelf": true
},
"transactionId": "PFTPH002631-8196",
"adaptorCustomerId": null,
"policyHolder": {
"fullName": "SANTHOSH GADDAM",
"mobileNumber": 601126487155,
"emailAddress": "[email protected]",
"nationality": "AIA",
"dob": 1122998400000,
"gender": null,
"addressLine1": null,
"addressLine2": null,
"state": null,
"city": null,
"postalCode": null,
"documentID": "DD2343",
"documentType": "Passport"
},
"paxesPolicies": [],
"loyalty": null,
"applyPromoCodeResponse": null,
"eligibleForSpecialRewards": null,
"userExists": false,
"status": "POLICY_GENERATED"
},
"code": 200
}
After a payment success, you can trigger the create policy API for creating policy for customer. This API returns policy/certificate number, policy expiry date and other policy details.
Request URL: https://apiuat.tuneprotect.com/d2c/1.0/products/transactions/PFTPH002631-8196/status?locale=en_us
Method:POST
Query and request body parameters:
PARAMETER | TYPE |
---|---|
locale | String |
productCode | String |
quoteId | String |
paymentMethod | String |
quotedAmount | String |
status | Integer |
currencyCode | String |
authorizationCode | String |
gatewayId | String |
referenceCode | String |
customerId | String |
paymentMethod | String |
token | String |
Dental - API Request And Response Details
Get Basic Quote API:
Request:
{
"quoteId": "",
"customerId": "",
"productCode": "DENTALEASY",
"referralTransactionId": "",
"parameters": [
{
"name": "adultNo",
"value": "Adult_Count_2"
},
{
"name": "childrenNo",
"value": "Children_Count_1"
},
{
"name": "selectPlanType",
"value": "Family"
}
]
}
Response:
{
"productCode": "DENTALEASY",
"quoteId": "1639383701156577",
"plans": [
{
"planCode": "Gold",
"currency": "MYR",
"displayName": "Gold",
"quotedAmount": "1135.00",
"sumInsured": "0.00",
"sumInsuredHH": "0.00",
"basePremium": "1125.00",
"basePremiumHO": "0.00",
"basePremiumHH": "0.00"
},
{
"planCode": "Platinum",
"currency": "MYR",
"displayName": "Platinum",
"quotedAmount": "1990.00",
"sumInsured": "0.00",
"sumInsuredHH": "0.00",
"basePremium": "1980.00",
"basePremiumHO": "0.00",
"basePremiumHH": "0.00"
}
],
"userInformationDTO": null,
"affiliatePartnerURL": "https://tpmrsuat.tuneprotect.com/quote/RS_Quote_Dental?sourceid=src12345&uid=163938370157373&productcode=DENTALEASY&data=fGFkdWx0Tm86QWR1bHRfQ291bnRfMnxjaGlsZHJlbk5vOkNoaWxkcmVuX0NvdW50XzF8c2VsZWN0UGxhblR5cGU6RmFtaWx5fA=="
}
This API is used to fetch basic quote details for product. We will get following details from basic quote API:
- Quote ID – In product purchase flow, Quote ID is used as unique number.
- Plans and minimal plan details
Request URL:
https://apiuat.tuneprotect.com/d2c/1.0/products/quote/options?locale=en_us
Method : POST
Query and body parameters in request:
PARAMETER | TYPE |
---|---|
locale | String |
customerId | String |
productCode | String |
referralTransactionId | String |
Parameters | Array |
adultNo | String |
childrenNo | String |
selectPlanType | String |
get following details from get quote API.
- Quote ID
- Quoted amount
- Detailed quoation – This section have the quotation details like basic premium, GST details, discount amounts, total amount to pay, etc.
Request URL:
{
"success": true,
"messages": "Requested Quote is : ",
"data": {
"productCode": "DENTALEASY",
"quoteId": "1639383701156577",
"selectedPlanCode": "Gold",
"selectedPlanDisplayName": "Gold",
"quotedAmount": "1135.00",
"totalNumberOfPersons": 0,
"totalNumberOfAdditionalDrivers": 0,
"userInformationDTO": null,
"detailedQuotation": [
{
"rateName": "BAPA",
"quotedAmount": "1250.0"
},
{
"rateName": "REBA",
"quotedAmount": "-125.0"
},
{
"rateName": "GROSS",
"quotedAmount": "1125.0"
},
{
"rateName": "SST",
"quotedAmount": "0.0"
},
{
"rateName": "SD",
"quotedAmount": "10.0"
},
{
"rateName": "TOTAL",
"quotedAmount": "1135.0"
},
{
"rateName": "REBAPERC",
"quotedAmount": "10"
},
{
"rateName": "SSTPERC",
"quotedAmount": "0"
},
{
"rateName": "PremiumAfterDiscount",
"quotedAmount": "1125.0"
},
{
"rateName": "DISCPERC",
"quotedAmount": "0"
}
],
"optionalBenefits": [],
"customerInformation": [],
"purchaserInformation": null,
"additionalInformation": [],
"eligibleForPayd": false,
"loyaltyEnabled": false,
"loyalty": null,
"checkPromoCodeResponse": null,
"eligibleForSpecialRewards": null
},
"code": 200
}
Query and body parameters in request:
Method:GET
PARAMETER | TYPE |
---|---|
productCode | String |
planCode | String |
quoteId | String |
locale | String |
Update Quote (with Customer details) API:
Request:
{
"productCode": "DENTALEASY",
"quoteId": "1659342464863232",
"selectedPlanCode": "Gold",
"quotedAmount": "359.20",
"optionalBenefits": [],
"customerInformation": [
{
"name": "mailAddress",
"value": "false"
},
{
"name": "mailingAddressPostalCode",
"value": "12344"
},
{
"name": "mailingAddressState",
"value": "Kelantan"
},
{
"name": "mailingAddressCountry",
"value": "MYS"
},
{
"name": "mailingAddressLine1",
"value": "testAdd"
},
{
"name": "addressPostalCode",
"value": "12344"
},
{
"name": "addressState",
"value": "Kelantan"
},
{
"name": "addressCountry",
"value": "MYS"
},
{
"name": "addressLine1",
"value": "test"
},
{
"name": "nationality",
"value": "MYS"
},
{
"name": "documentID",
"value": "970204-22-2312"
},
{
"name": "mobileNumber",
"value": "919744667934"
},
{
"name": "mobileCountryCode",
"value": "+91"
},
{
"name": "dob",
"value": "1997/02/04"
},
{
"name": "emailAddress",
"value": "[email protected]"
},
{
"name": "gender",
"value": "Female"
},
{
"name": "documentType",
"value": "nric"
},
{
"name": "fullName",
"value": "MINNU"
}
],
"purchaserInformation": [],
"additionalInformation": [],
"quoteItems1": [],
"quoteItems2": []
}
Response:
{
"success": true,
"messages": " Update success. ",
"data": {
"productCode": "DENTALEASY",
"quoteId": "1659342464863232",
"selectedPlanCode": "Gold",
"selectedPlanDisplayName": "Gold",
"quotedAmount": "359.20",
"totalNumberOfPersons": 0,
"totalNumberOfAdditionalDrivers": 0,
"userInformationDTO": null,
"detailedQuotation": [
{
"rateName": "BAPA",
"quotedAmount": "388.00"
},
{
"rateName": "REBA",
"quotedAmount": "-38.80"
},
{
"rateName": "GROSS",
"quotedAmount": "349.20"
},
{
"rateName": "SST",
"quotedAmount": "0.00"
},
{
"rateName": "SD",
"quotedAmount": "10.00"
},
{
"rateName": "TOTAL",
"quotedAmount": "359.20"
},
{
"rateName": "REBAPERC",
"quotedAmount": "10"
},
{
"rateName": "SSTPERC",
"quotedAmount": "0"
},
{
"rateName": "PremiumAfterDiscount",
"quotedAmount": "349.2"
},
{
"rateName": "DISCPERC",
"quotedAmount": "0"
}
],
"optionalBenefits": [],
"customerInformation": [
{
"name": "mailAddress",
"value": "false"
},
{
"name": "mailingAddressPostalCode",
"value": "12344"
},
{
"name": "mailingAddressState",
"value": "Kelantan"
},
{
"name": "mailingAddressCountry",
"value": "MYS"
},
{
"name": "mailingAddressLine1",
"value": "testAdd"
},
{
"name": "addressPostalCode",
"value": "12344"
},
{
"name": "addressState",
"value": "Kelantan"
},
{
"name": "addressCountry",
"value": "MYS"
},
{
"name": "addressLine1",
"value": "test"
},
{
"name": "nationality",
"value": "MYS"
},
{
"name": "documentID",
"value": "970204-22-2312"
},
{
"name": "mobileNumber",
"value": "919744667934"
},
{
"name": "mobileCountryCode",
"value": "+91"
},
{
"name": "dob",
"value": "1997/02/04"
},
{
"name": "emailAddress",
"value": "[email protected]"
},
{
"name": "gender",
"value": "Female"
},
{
"name": "documentType",
"value": "nric"
},
{
"name": "fullName",
"value": "MINNU"
}
],
"purchaserInformation": [],
"additionalInformation": [],
"eligibleForPayd": false,
"loyaltyEnabled": true,
"loyalty": {
"eligibleForLoyalty": false,
"loyaltyId": null,
"pointsTobeEarned": 349,
"emailAddres": "[email protected]"
},
"checkPromoCodeResponse": null,
"eligibleForSpecialRewards": false
},
"code": 200
}
Update quote API is used to update customer details, additonal information and other details like accept terms and conditions. This API can be triggered multiple times to update customer and other details for a purchase.
Request URL: https://apiuat.tuneprotect.com/d2c/1.0/products/updatequote?locale=en_us
Method:POST
Query and body parameters in request:
PARAMETER | TYPE |
---|---|
locale | String |
productCode | String |
quoteId | String |
selectedPlanCode | String |
quotedAmount | String |
customerInformation | Array |
mailAddress | String |
mailingAddressPostalCode | String |
mailingAddressState | String |
mailingAddressCountry | String |
mailingAddressLine2 | String |
mailingAddressLine1 | String |
addressPostalCode | String |
addressState | String |
addressCountry | String |
addressLine2 | String |
addressLine1 | String |
nationality | String |
documentID | String |
mobileNumber | String |
mobileCountryCode | String |
dob | String |
emailAddress | String |
gender | String |
documentType | String |
fullName | String |
purchaserInformation | Array |
additionalInformation | Array |
quoteItems1 | Array |
quoteItems2 | Array |
OptionalBenefits | Array |
Update Quote (with Customer details) API:
Request:
{
"productCode": "DENTALEASY",
"quoteId": "1659347989580442",
"selectedPlanCode": "Gold",
"quotedAmount": "640.00",
"optionalBenefits": [],
"customerInformation": [
{
"name": "mailAddress",
"value": "false"
},
{
"name": "mailingAddressPostalCode",
"value": "12345"
},
{
"name": "mailingAddressState",
"value": "Melaka"
},
{
"name": "mailingAddressCountry",
"value": "MYS"
},
{
"name": "mailingAddressLine1",
"value": "ggggg"
},
{
"name": "addressPostalCode",
"value": "12345"
},
{
"name": "addressState",
"value": "Kelantan"
},
{
"name": "addressCountry",
"value": "MYS"
},
{
"name": "addressLine1",
"value": "testt"
},
{
"name": "nationality",
"value": "AIA"
},
{
"name": "documentID",
"value": "TEST4567"
},
{
"name": "mobileNumber",
"value": "919744667934"
},
{
"name": "mobileCountryCode",
"value": "+91"
},
{
"name": "dob",
"value": "2004/08/01"
},
{
"name": "emailAddress",
"value": "[email protected]"
},
{
"name": "gender",
"value": "Female"
},
{
"name": "documentType",
"value": "Passport"
},
{
"name": "fullName",
"value": "MINNU"
}
],
"purchaserInformation": [],
"additionalInformation": [
{
"name": "additionalCustomers",
"value": "[{\"fullName\":\"TEST\",\"documentType\":\"Other\",\"relationship\":\"Spouse\",\"dob\":\"2004/08/01\",\"documentID\":\"FTYUU\",\"nationality\":\"AGO\"}]"
}
],
"quoteItems1": [],
"quoteItems2": []
}
Response:
{
"success": true,
"messages": " Update success. ",
"data": {
"productCode": "DENTALEASY",
"quoteId": "1659347989580442",
"selectedPlanCode": "Gold",
"selectedPlanDisplayName": "Gold",
"quotedAmount": "640.00",
"totalNumberOfPersons": 0,
"totalNumberOfAdditionalDrivers": 0,
"userInformationDTO": null,
"detailedQuotation": [
{
"rateName": "BAPA",
"quotedAmount": "700.00"
},
{
"rateName": "REBA",
"quotedAmount": "-70.00"
},
{
"rateName": "GROSS",
"quotedAmount": "630.00"
},
{
"rateName": "SST",
"quotedAmount": "0.00"
},
{
"rateName": "SD",
"quotedAmount": "10.00"
},
{
"rateName": "TOTAL",
"quotedAmount": "640.00"
},
{
"rateName": "REBAPERC",
"quotedAmount": "10"
},
{
"rateName": "SSTPERC",
"quotedAmount": "0"
},
{
"rateName": "PremiumAfterDiscount",
"quotedAmount": "630.0"
},
{
"rateName": "DISCPERC",
"quotedAmount": "0"
}
],
"optionalBenefits": [],
"customerInformation": [
{
"name": "mailAddress",
"value": "false"
},
{
"name": "mailingAddressPostalCode",
"value": "12345"
},
{
"name": "mailingAddressState",
"value": "Melaka"
},
{
"name": "mailingAddressCountry",
"value": "MYS"
},
{
"name": "mailingAddressLine1",
"value": "ggggg"
},
{
"name": "addressPostalCode",
"value": "12345"
},
{
"name": "addressState",
"value": "Kelantan"
},
{
"name": "addressCountry",
"value": "MYS"
},
{
"name": "addressLine1",
"value": "testt"
},
{
"name": "nationality",
"value": "AIA"
},
{
"name": "documentID",
"value": "TEST4567"
},
{
"name": "mobileNumber",
"value": "919744667934"
},
{
"name": "mobileCountryCode",
"value": "+91"
},
{
"name": "dob",
"value": "2004/08/01"
},
{
"name": "emailAddress",
"value": "[email protected]"
},
{
"name": "gender",
"value": "Female"
},
{
"name": "documentType",
"value": "Passport"
},
{
"name": "fullName",
"value": "MINNU"
}
],
"purchaserInformation": [],
"additionalInformation": [
{
"name": "additionalCustomers",
"value": "[{\"fullName\":\"TEST\",\"documentType\":\"Other\",\"relationship\":\"Spouse\",\"dob\":\"2004/08/01\",\"documentID\":\"FTYUU\",\"nationality\":\"AGO\"}]"
}
],
"eligibleForPayd": false,
"loyaltyEnabled": true,
"loyalty": {
"eligibleForLoyalty": false,
"loyaltyId": null,
"pointsTobeEarned": 630,
"emailAddres": "[email protected]"
},
"checkPromoCodeResponse": null,
"eligibleForSpecialRewards": false
},
"code": 200
}
Update quote API is used to update customer details, additonal information and other details like accept terms and conditions. This API can be triggered multiple times to update customer and other details for a purchase.
Request URL: https://apiuat.tuneprotect.com/d2c/1.0/products/updatequote?locale=en_us
Method:POST
Query and body parameters in request:
PARAMETER | TYPE |
---|---|
locale | String |
productCode | String |
quoteId | String |
selectedPlanCode | String |
quotedAmount | String |
customerInformation | Array |
mailAddress | String |
mailingAddressPostalCode | String |
mailingAddressState | String |
mailingAddressCountry | String |
mailingAddressLine2 | String |
mailingAddressLine1 | String |
addressPostalCode | String |
addressState | String |
addressCountry | String |
addressLine2 | String |
addressLine1 | String |
nationality | String |
documentID | String |
mobileNumber | String |
mobileCountryCode | String |
dob | String |
emailAddress | String |
gender | String |
documentType | String |
fullName | String |
purchaserInformation | Array |
additionalInformation | Array |
quoteItems1 | Array |
quoteItems2 | Array |
OptionalBenefits | Array |
agreeDeclaration | String, |
acceptTerms" | String |
INIT Transaction API:
Request:
{
"productCode": "DENTALEASY",
"quoteId": "1639383701156577",
"quotedAmount": "1135.00",
"paymentMethodType": 1,
"promoCode": "",
"loyaltySelected": 0,
"currency": "MYR",
"returnUrl": "https://tpmrsuat.tuneprotect.com/paymentStatus/"
}
Response:
{
"transactionId": "PFTHOHH247578-3056",
"quotedAmount": "1074.08",
"status": "INITIATED",
"customerId": "",
"paymentPasswordEncrypted": "O0qWOE9OnnV2979d1zASZs0ROyoH5rCP",
"paymentFailureCallbackUrl": "https://tpmrsuat.tuneprotect.com/rocketship/d/aQDOxKaRqeLk",
"token": null
}
Transaction API is used to initiate transaction before calling payment gateway for purchase. Initiate transaction API will create a transaction ID for the transaction and will return it. This transaction ID need to be used in the final create policy API after payment success/failed status.
Request URL: https://apiuat.tuneprotect.com/d2c/1.0/products/transactions?locale=en_us Method:POST
Query and request body parameters:
PARAMETER | TYPE |
---|---|
locale | String |
productCode | String |
quoteId | String |
paymentMethodType | String |
quotedAmount | String |
loyaltySelected | Integer |
currency | String |
returnUrl | String |
Create Policy
Request:
{
"productCode": "DENTALEASY",
"quoteId": "1639383701156577",
"quotedAmount": "1135.00",
"currencyCode": "MYR",
"status": "0",
"authorizationCode": "TIS000",
"gatewayId": "eghl",
"referenceCode": "TIS000PFTHOHH2475783056",
"customerId": "108003",
"paymentMethod": "1",
"token": ""
}
Response
{
"success": true,
"messages": " Transaction Update success. Policy created",
"data": {
"quoteId": "1624537533481246",
"policy": {
"policyStatus": "CONFIRMED",
"policyNumber": "6525321BFA0000372",
"policyCreationDateTime": 1624541112000,
"effectiveDate": 1625068740000,
"policyUrl": "https://api-test.tuneprotect.com/DownloadPolicy/TuneDirectOnlinePDF/GetCOI?ProposalID=247578&Plan=HOHH",
"expiryDate": 1656518340000,
"forSelf": true
},
"transactionId": "PFTHOHH247578-3056",
"adaptorCustomerId": "1414292",
"policyHolder": {
"fullName": "UNNI",
"mobileNumber": 919496711129,
"emailAddress": "[email protected]",
"nationality": "AND",
"dob": 705081600000,
"gender": "Male",
"addressLine1": "",
"addressLine2": "",
"state": "",
"city": "",
"postalCode": "",
"documentID": "SDASD67565765",
"documentType": "passport"
},
"loyalty": null,
"userExists": true,
"status": "POLICY_GENERATED"
},
"code": 200
}
After a payment success, you can trigger the create policy API for creating policy for customer. This API returns policy/certificate number, policy expiry date and other policy details.
Request URL: https://apiuat.tuneprotect.com/d2c/1.0/products/transactions/BC00007952/status?locale=en_us
Method:POST
Query and request body parameters:
PARAMETER | TYPE |
---|---|
locale | String |
productCode | String |
quoteId | String |
paymentMethod | String |
quotedAmount | String |
status | Integer |
currencyCode | String |
authorizationCode | String |
gatewayId | String |
referenceCode | String |
customerId | String |
paymentMethod | String |
token | String |
TRAVEL Easy - API Request And Response Details
Get Basic Quote API: Trip Type - one way
Request:
{
"quoteId": "",
"customerId": "",
"productCode": "TRAVELEASY",
"referralTransactionId": "",
"parameters": [
{
"name": "passengerType",
"value": "Individual"
},
{
"name": "tripType",
"value": "OneWay"
},
{
"name": "departureDate",
"value": "2023/02/22"
},
{
"name": "ageCheck",
"value": false
},
{
"name": "location",
"value": "WorldwideEx"
}
]
}
Response :
{
"productCode": "TRAVELEASY",
"quoteId": "1676624886136655",
"plans": [
{
"planCode": "COVIDLITE",
"currency": "MYR",
"displayName": "COVID LITE",
"detailedQuotation": null,
"quotedAmount": "52.00",
"sumInsured": "0.00",
"sumInsuredHH": "0.00",
"basePremium": "42.00",
"oldBasePremium": "42.00",
"basePremiumHO": "0.00",
"basePremiumHH": "0.00"
},
{
"planCode": "TRAVELEASY",
"currency": "MYR",
"displayName": "Travel Easy",
"detailedQuotation": null,
"quotedAmount": "42.25",
"sumInsured": "0.00",
"sumInsuredHH": "0.00",
"basePremium": "32.25",
"oldBasePremium": "32.25",
"basePremiumHO": "0.00",
"basePremiumHH": "0.00"
},
{
"planCode": "COVIDPLUS",
"currency": "MYR",
"displayName": "COVID PLUS",
"detailedQuotation": null,
"quotedAmount": "68.50",
"sumInsured": "0.00",
"sumInsuredHH": "0.00",
"basePremium": "58.50",
"oldBasePremium": "58.50",
"basePremiumHO": "0.00",
"basePremiumHH": "0.00"
}
],
"userInformationDTO": null,
"affiliatePartnerURL": "https://tpmrsuat.tuneprotect.com/quote/RS_Quote_Travel?sourceid=src12345&uid=167662488726147&productcode=TRAVELEASY&data=fHBhc3NlbmdlclR5cGU6SW5kaXZpZHVhbHx0cmlwVHlwZTpPbmVXYXl8ZGVwYXJ0dXJlRGF0ZToyMDIzLzAyLzIyfGFnZUNoZWNrOmZhbHNlfGxvY2F0aW9uOldvcmxkd2lkZUV4fA=="
}
This API is used to fetch basic quote details for product. We will get following details from basic quote API:
- Quote ID – In product purchase flow, Quote ID is used as unique number.
- Plans and minimal plan details
Request URL:
https://apiuat.tuneprotect.com/d2c/1.0/products/quote/options?locale=en_us
Method : POST
Query and body parameters in request:
PARAMETER | TYPE |
---|---|
locale | String |
quoteId | String |
customerId | String |
productCode | String |
referralTransactionId | String |
Parameters | Array |
passengerType | String |
tripType | String |
departureDate | String |
returnDate | String |
ageCheck | Boolean |
location | String |
Get Basic Quote API: Trip Type - Annual
Request:
{
"quoteId": "1676624886136655",
"customerId": "",
"productCode": "TRAVELEASY",
"referralTransactionId": "",
"parameters": [
{
"name": "tripType",
"value": "Annual"
},
{
"name": "departureDate",
"value": "2023/02/23"
},
{
"name": "returnDate",
"value": "2024/02/22"
},
{
"name": "location",
"value": "AsiaPacific"
},
{
"name": "ageCheck",
"value": false
},
{
"name": "passengerType",
"value": "Individual"
}
]
}
Response :
{
"productCode": "TRAVELEASY",
"quoteId": "1676625220632583",
"plans": [
{
"planCode": "TRAVELEASY",
"currency": "MYR",
"displayName": "Travel Easy",
"detailedQuotation": null,
"quotedAmount": "167.50",
"sumInsured": "0.00",
"sumInsuredHH": "0.00",
"basePremium": "157.50",
"oldBasePremium": "157.50",
"basePremiumHO": "0.00",
"basePremiumHH": "0.00"
}
],
"userInformationDTO": null,
"affiliatePartnerURL": "https://tpmrsuat.tuneprotect.com/quote/RS_Quote_Travel?sourceid=src12345&uid=167662522116031&productcode=TRAVELEASY&data=fHRyaXBUeXBlOkFubnVhbHxkZXBhcnR1cmVEYXRlOjIwMjMvMDIvMjN8cmV0dXJuRGF0ZToyMDI0LzAyLzIyfGxvY2F0aW9uOkFzaWFQYWNpZmljfGFnZUNoZWNrOmZhbHNlfHBhc3NlbmdlclR5cGU6SW5kaXZpZHVhbHw="
}
This API is used to fetch basic quote details for product. We will get following details from basic quote API:
- Quote ID – In product purchase flow, Quote ID is used as unique number.
- Plans and minimal plan details
Request URL:
https://apiuat.tuneprotect.com/d2c/1.0/products/quote/options?locale=en_us
Method : POST
Query and body parameters in request:
PARAMETER | TYPE |
---|---|
locale | String |
quoteId | String |
customerId | String |
productCode | String |
referralTransactionId | String |
Parameters | Array |
passengerType | String |
tripType | String |
departureDate | String |
returnDate | String |
ageCheck | Boolean |
location | String |
Get Basic Quote API: Passenger Type - Group
Request:
{
"quoteId": "1676625220632583",
"customerId": "",
"productCode": "TRAVELEASY",
"referralTransactionId": "",
"parameters": [
{
"name": "tripType",
"value": "Annual"
},
{
"name": "departureDate",
"value": "2023/02/23"
},
{
"name": "returnDate",
"value": "2024/02/22"
},
{
"name": "location",
"value": "AsiaPacific"
},
{
"name": "ageCheck",
"value": false
},
{
"name": "noOfInsured",
"value": "2"
},
{
"name": "passengerType",
"value": "Group"
}
]
}
Response :
{
"productCode": "TRAVELEASY",
"quoteId": "1676625519104715",
"plans": [
{
"planCode": "TRAVELEASY",
"currency": "MYR",
"displayName": "Travel Easy",
"detailedQuotation": null,
"quotedAmount": "335.00",
"sumInsured": "0.00",
"sumInsuredHH": "0.00",
"basePremium": "315.00",
"oldBasePremium": "315.00",
"basePremiumHO": "0.00",
"basePremiumHH": "0.00"
}
],
"userInformationDTO": null,
"affiliatePartnerURL": "https://tpmrsuat.tuneprotect.com/quote/RS_Quote_Travel?sourceid=src12345&uid=167662551975564&productcode=TRAVELEASY&data=fHRyaXBUeXBlOkFubnVhbHxkZXBhcnR1cmVEYXRlOjIwMjMvMDIvMjN8cmV0dXJuRGF0ZToyMDI0LzAyLzIyfGxvY2F0aW9uOkFzaWFQYWNpZmljfGFnZUNoZWNrOmZhbHNlfG5vT2ZJbnN1cmVkOjJ8cGFzc2VuZ2VyVHlwZTpHcm91cHw="
}
This API is used to fetch basic quote details for product. We will get following details from basic quote API:
- Quote ID – In product purchase flow, Quote ID is used as unique number.
- Plans and minimal plan details
Request URL:
https://apiuat.tuneprotect.com/d2c/1.0/products/quote/options?locale=en_us
Method : POST
Query and body parameters in request:
PARAMETER | TYPE |
---|---|
locale | String |
quoteId | String |
customerId | String |
productCode | String |
referralTransactionId | String |
Parameters | Array |
passengerType | String |
noOfInsured | String |
tripType | String |
departureDate | String |
returnDate | String |
ageCheck | Boolean |
location | String |
Get Basic Quote API: Passenger Type - Family
Request:
{
"quoteId": "1676625519104715",
"customerId": "",
"productCode": "TRAVELEASY",
"referralTransactionId": "",
"parameters": [
{
"name": "passengerType",
"value": "Family"
},
{
"name": "tripType",
"value": "OneWay"
},
{
"name": "departureDate",
"value": "2023/02/22"
},
{
"name": "ageCheck",
"value": false
},
{
"name": "location",
"value": "WorldwideEx"
}
]
}
Response :
{
"productCode": "TRAVELEASY",
"quoteId": "1676625729576236",
"plans": [
{
"planCode": "COVIDLITE",
"currency": "MYR",
"displayName": "COVID LITE",
"detailedQuotation": null,
"quotedAmount": "124.00",
"sumInsured": "0.00",
"sumInsuredHH": "0.00",
"basePremium": "114.00",
"oldBasePremium": "114.00",
"basePremiumHO": "0.00",
"basePremiumHH": "0.00"
},
{
"planCode": "TRAVELEASY",
"currency": "MYR",
"displayName": "Travel Easy",
"detailedQuotation": null,
"quotedAmount": "97.75",
"sumInsured": "0.00",
"sumInsuredHH": "0.00",
"basePremium": "87.75",
"oldBasePremium": "87.75",
"basePremiumHO": "0.00",
"basePremiumHH": "0.00"
},
{
"planCode": "COVIDPLUS",
"currency": "MYR",
"displayName": "COVID PLUS",
"detailedQuotation": null,
"quotedAmount": "168.25",
"sumInsured": "0.00",
"sumInsuredHH": "0.00",
"basePremium": "158.25",
"oldBasePremium": "158.25",
"basePremiumHO": "0.00",
"basePremiumHH": "0.00"
}
],
"userInformationDTO": null,
"affiliatePartnerURL": "https://tpmrsuat.tuneprotect.com/quote/RS_Quote_Travel?sourceid=src12345&uid=167662573067265&productcode=TRAVELEASY&data=fHBhc3NlbmdlclR5cGU6RmFtaWx5fHRyaXBUeXBlOk9uZVdheXxkZXBhcnR1cmVEYXRlOjIwMjMvMDIvMjJ8YWdlQ2hlY2s6ZmFsc2V8bG9jYXRpb246V29ybGR3aWRlRXh8"
}
This API is used to fetch basic quote details for product. We will get following details from basic quote API:
- Quote ID – In product purchase flow, Quote ID is used as unique number.
- Plans and minimal plan details
Request URL:
https://apiuat.tuneprotect.com/d2c/1.0/products/quote/options?locale=en_us
Method : POST
Query and body parameters in request:
PARAMETER | TYPE |
---|---|
locale | String |
quoteId | String |
customerId | String |
productCode | String |
referralTransactionId | String |
Parameters | Array |
passengerType | String |
tripType | String |
departureDate | String |
returnDate | String |
ageCheck | Boolean |
location | String |
Get Quote Details API:
Response:
{
"success": true,
"messages": "Requested Quote is : ",
"data": {
"productCode": "TRAVELEASY",
"quoteId": "1676625729576236",
"selectedPlanCode": "TRAVELEASY",
"selectedPlanDisplayName": "Travel Easy",
"quotedAmount": "97.75",
"totalNumberOfPersons": 0,
"totalNumberOfAdditionalDrivers": 0,
"userInformationDTO": null,
"detailedQuotation": [
{
"rateName": "BAPA",
"quotedAmount": "117.0"
},
{
"rateName": "CBAPA",
"quotedAmount": "117.0"
},
{
"rateName": "ORBTPERC",
"quotedAmount": "25.0"
},
{
"rateName": "REBA",
"quotedAmount": "-29.25"
},
{
"rateName": "GROSS",
"quotedAmount": "87.75"
},
{
"rateName": "SST",
"quotedAmount": "0.0"
},
{
"rateName": "SD",
"quotedAmount": "10.0"
},
{
"rateName": "REFBAPA",
"quotedAmount": "117.0"
},
{
"rateName": "REFREBA",
"quotedAmount": "-29.25"
},
{
"rateName": "REFTOTL",
"quotedAmount": "87.75"
},
{
"rateName": "EBDISC",
"quotedAmount": "0.0"
},
{
"rateName": "EBDISCPERC",
"quotedAmount": "15"
},
{
"rateName": "TOTAL",
"quotedAmount": "97.75"
},
{
"rateName": "REBAPERC",
"quotedAmount": "25"
},
{
"rateName": "SSTPERC",
"quotedAmount": "0"
},
{
"rateName": "PremiumAfterDiscount",
"quotedAmount": "87.75"
},
{
"rateName": "DISCPERC",
"quotedAmount": "0"
}
],
"optionalBenefits": [],
"customerInformation": [],
"purchaserInformation": null,
"additionalInformation": [],
"eligibleForPayd": false,
"loyaltyEnabled": false,
"loyalty": null,
"checkPromoCodeResponse": null,
"eligibleForSpecialRewards": null
},
"code": 200
}
get following details from get quote API.
- Quote ID
- Quoted amount
- Detailed quoation – This section have the quotation details like basic premium, GST details, discount amounts, total amount to pay, etc.
Request URL:
Query and body parameters in request:
Method:GET
PARAMETER | TYPE |
---|---|
productCode | String |
planCode | String |
quoteId | String |
locale | String |
Update Quote (with Customer details) API:
Request:
{
"productCode": "TRAVELEASY",
"quoteId": "1676625729576236",
"selectedPlanCode": "TRAVELEASY",
"quotedAmount": "97.75",
"optionalBenefits": [],
"customerInformation": [
{
"name": "mailAddress",
"value": "true"
},
{
"name": "addressPostalCode",
"value": "23423"
},
{
"name": "addressState",
"value": "Kelantan"
},
{
"name": "addressCountry",
"value": "MYS"
},
{
"name": "addressLine1",
"value": "ashok nagar"
},
{
"name": "nationality",
"value": "MYS"
},
{
"name": "documentID",
"value": "890909-34-2342"
},
{
"name": "mobileNumber",
"value": "601126487155"
},
{
"name": "mobileCountryCode",
"value": "+60"
},
{
"name": "dob",
"value": "1989/09/09"
},
{
"name": "emailAddress",
"value": "[email protected]"
},
{
"name": "gender",
"value": "Female"
},
{
"name": "documentType",
"value": "nric"
},
{
"name": "fullName",
"value": "SANTHOSH GADDAM"
}
],
"purchaserInformation": [],
"additionalInformation": [],
"quoteItems1": [],
"quoteItems2": []
}
Response:
{
"success": true,
"messages": " Update success. ",
"data": {
"productCode": "TRAVELEASY",
"quoteId": "1676625729576236",
"selectedPlanCode": "TRAVELEASY",
"selectedPlanDisplayName": "Travel Easy",
"quotedAmount": "87.75",
"totalNumberOfPersons": 0,
"totalNumberOfAdditionalDrivers": 0,
"userInformationDTO": null,
"detailedQuotation": [
{
"rateName": "BAPA",
"quotedAmount": "117.00"
},
{
"rateName": "CBAPA",
"quotedAmount": "117.00"
},
{
"rateName": "ORBTPERC",
"quotedAmount": "25.00"
},
{
"rateName": "REBA",
"quotedAmount": "-29.25"
},
{
"rateName": "GROSS",
"quotedAmount": "87.75"
},
{
"rateName": "SST",
"quotedAmount": "0.00"
},
{
"rateName": "SD",
"quotedAmount": "0.00"
},
{
"rateName": "REFBAPA",
"quotedAmount": "117.00"
},
{
"rateName": "REFREBA",
"quotedAmount": "-29.25"
},
{
"rateName": "REFTOTL",
"quotedAmount": "87.75"
},
{
"rateName": "EBDISC",
"quotedAmount": "0.00"
},
{
"rateName": "EBDISCPERC",
"quotedAmount": "15"
},
{
"rateName": "TOTAL",
"quotedAmount": "87.75"
},
{
"rateName": "REBAPERC",
"quotedAmount": "25"
},
{
"rateName": "SSTPERC",
"quotedAmount": "0"
},
{
"rateName": "PremiumAfterDiscount",
"quotedAmount": "87.75"
},
{
"rateName": "DISCPERC",
"quotedAmount": "0"
}
],
"optionalBenefits": [],
"customerInformation": [
{
"name": "mailAddress",
"value": "true"
},
{
"name": "addressPostalCode",
"value": "23423"
},
{
"name": "addressState",
"value": "Kelantan"
},
{
"name": "addressCountry",
"value": "MYS"
},
{
"name": "addressLine1",
"value": "ashok nagar"
},
{
"name": "nationality",
"value": "MYS"
},
{
"name": "documentID",
"value": "890909-34-2342"
},
{
"name": "mobileNumber",
"value": "601126487155"
},
{
"name": "mobileCountryCode",
"value": "+60"
},
{
"name": "dob",
"value": "1989/09/09"
},
{
"name": "emailAddress",
"value": "[email protected]"
},
{
"name": "gender",
"value": "Female"
},
{
"name": "documentType",
"value": "nric"
},
{
"name": "fullName",
"value": "SANTHOSH GADDAM"
}
],
"purchaserInformation": [],
"additionalInformation": [],
"eligibleForPayd": false,
"loyaltyEnabled": true,
"loyalty": {
"eligibleForLoyalty": false,
"loyaltyId": null,
"pointsTobeEarned": 87,
"emailAddres": "[email protected]"
},
"checkPromoCodeResponse": null,
"eligibleForSpecialRewards": false
},
"code": 200
}
Update quote API is used to update customer details, additonal information and other details like accept terms and conditions. This API can be triggered multiple times to update customer and other details for a purchase.
Request URL: https://apiuat.tuneprotect.com/d2c/1.0/products/updatequote?locale=en_us
Method:POST
Query and body parameters in request:
PARAMETER | TYPE |
---|---|
locale | String |
productCode | String |
quoteId | String |
selectedPlanCode | String |
quotedAmount | String |
customerInformation | Array |
mailAddress | String |
mailingAddressPostalCode | String |
mailingAddressState | String |
mailingAddressCountry | String |
mailingAddressLine2 | String |
mailingAddressLine1 | String |
addressPostalCode | String |
addressState | String |
addressCountry | String |
addressLine2 | String |
addressLine1 | String |
nationality | String |
documentID | String |
mobileNumber | String |
mobileCountryCode | String |
dob | String |
emailAddress | String |
gender | String |
documentType | String |
fullName | String |
purchaserInformation | Array |
additionalInformation | Array |
quoteItems1 Blank | Array |
quoteItems2 Blank | Array |
OptionalBenefits | Array |
agreeDeclaration | String, |
acceptTerms" | String |
Update Quote (with Customer details and additional persons) API:
Request:
{
"productCode": "TRAVELEASY",
"quoteId": "1676625729576236",
"selectedPlanCode": "TRAVELEASY",
"quotedAmount": "87.75",
"optionalBenefits": [],
"customerInformation": [
{
"name": "mailAddress",
"value": "true"
},
{
"name": "addressPostalCode",
"value": "23423"
},
{
"name": "addressState",
"value": "Kelantan"
},
{
"name": "addressCountry",
"value": "MYS"
},
{
"name": "addressLine1",
"value": "ashok nagar"
},
{
"name": "nationality",
"value": "MYS"
},
{
"name": "documentID",
"value": "890909-34-2342"
},
{
"name": "mobileNumber",
"value": "601126487155"
},
{
"name": "mobileCountryCode",
"value": "+60"
},
{
"name": "dob",
"value": "1989/09/09"
},
{
"name": "emailAddress",
"value": "[email protected]"
},
{
"name": "gender",
"value": "Female"
},
{
"name": "documentType",
"value": "nric"
},
{
"name": "fullName",
"value": "SANTHOSH GADDAM"
}
],
"purchaserInformation": [],
"additionalInformation": [
{
"name": "additionalCustomers",
"value": "[{\"fullName\":\"ASDFSA\",\"documentType\":\"nric\",\"documentID\":\"990909-23-4234\",\"relationship\":\"Spouse\",\"dob\":\"1999/09/09\",\"nationality\":\"MYS\"},{\"fullName\":\"ASDFSAD\",\"documentType\":\"nric\",\"documentID\":\"210909-23-4234\",\"relationship\":\"Child\",\"dob\":\"2021/09/09\",\"nationality\":\"MYS\"}]"
}
],
"quoteItems1": [],
"quoteItems2": []
}
Response:
{
"success": true,
"messages": " Update success. ",
"data": {
"productCode": "TRAVELEASY",
"quoteId": "1676625729576236",
"selectedPlanCode": "TRAVELEASY",
"selectedPlanDisplayName": "Travel Easy",
"quotedAmount": "87.75",
"totalNumberOfPersons": 0,
"totalNumberOfAdditionalDrivers": 0,
"userInformationDTO": null,
"detailedQuotation": [
{
"rateName": "BAPA",
"quotedAmount": "117.00"
},
{
"rateName": "CBAPA",
"quotedAmount": "117.00"
},
{
"rateName": "ORBTPERC",
"quotedAmount": "25.00"
},
{
"rateName": "REBA",
"quotedAmount": "-29.25"
},
{
"rateName": "GROSS",
"quotedAmount": "87.75"
},
{
"rateName": "SST",
"quotedAmount": "0.00"
},
{
"rateName": "SD",
"quotedAmount": "0.00"
},
{
"rateName": "REFBAPA",
"quotedAmount": "117.00"
},
{
"rateName": "REFREBA",
"quotedAmount": "-29.25"
},
{
"rateName": "REFTOTL",
"quotedAmount": "87.75"
},
{
"rateName": "EBDISC",
"quotedAmount": "0.00"
},
{
"rateName": "EBDISCPERC",
"quotedAmount": "15"
},
{
"rateName": "TOTAL",
"quotedAmount": "87.75"
},
{
"rateName": "REBAPERC",
"quotedAmount": "25"
},
{
"rateName": "SSTPERC",
"quotedAmount": "0"
},
{
"rateName": "PremiumAfterDiscount",
"quotedAmount": "87.75"
},
{
"rateName": "DISCPERC",
"quotedAmount": "0"
}
],
"optionalBenefits": [],
"customerInformation": [
{
"name": "mailAddress",
"value": "true"
},
{
"name": "addressPostalCode",
"value": "23423"
},
{
"name": "addressState",
"value": "Kelantan"
},
{
"name": "addressCountry",
"value": "MYS"
},
{
"name": "addressLine1",
"value": "ashok nagar"
},
{
"name": "nationality",
"value": "MYS"
},
{
"name": "documentID",
"value": "890909-34-2342"
},
{
"name": "mobileNumber",
"value": "601126487155"
},
{
"name": "mobileCountryCode",
"value": "+60"
},
{
"name": "dob",
"value": "1989/09/09"
},
{
"name": "emailAddress",
"value": "[email protected]"
},
{
"name": "gender",
"value": "Female"
},
{
"name": "documentType",
"value": "nric"
},
{
"name": "fullName",
"value": "SANTHOSH GADDAM"
}
],
"purchaserInformation": [],
"additionalInformation": [
{
"name": "additionalCustomers",
"value": "[{\"fullName\":\"ASDFSA\",\"documentType\":\"nric\",\"documentID\":\"990909-23-4234\",\"relationship\":\"Spouse\",\"dob\":\"1999/09/09\",\"nationality\":\"MYS\"},{\"fullName\":\"ASDFSAD\",\"documentType\":\"nric\",\"documentID\":\"210909-23-4234\",\"relationship\":\"Child\",\"dob\":\"2021/09/09\",\"nationality\":\"MYS\"}]"
}
],
"eligibleForPayd": false,
"loyaltyEnabled": true,
"loyalty": {
"eligibleForLoyalty": false,
"loyaltyId": null,
"pointsTobeEarned": 87,
"emailAddres": "[email protected]"
},
"checkPromoCodeResponse": null,
"eligibleForSpecialRewards": false
},
"code": 200
}
Update quote API is used to update customer details, additonal information and other details like accept terms and conditions. This API can be triggered multiple times to update customer and other details for a purchase.
Request URL: https://apiuat.tuneprotect.com/d2c/1.0/products/updatequote?locale=en_us
Method:POST
Query and body parameters in request:
PARAMETER | TYPE |
---|---|
locale | String |
productCode | String |
quoteId | String |
selectedPlanCode | String |
quotedAmount | String |
customerInformation | Array |
mailAddress | String |
mailingAddressPostalCode | String |
mailingAddressState | String |
mailingAddressCountry | String |
mailingAddressLine2 | String |
mailingAddressLine1 | String |
addressPostalCode | String |
addressState | String |
addressCountry | String |
addressLine2 | String |
addressLine1 | String |
nationality | String |
documentID | String |
mobileNumber | String |
mobileCountryCode | String |
dob | String |
emailAddress | String |
gender | String |
documentType | String |
fullName | String |
purchaserInformation | Array |
additionalInformation | Array |
quoteItems1 Blank | Array |
quoteItems2 Blank | Array |
OptionalBenefits | Array |
agreeDeclaration | String, |
acceptTerms" | String |
INIT Transaction API:
Request :
{
"productCode": "TRAVELEASY",
"quoteId": "1676625729576236",
"quotedAmount": "87.75",
"paymentMethodType": 1,
"loyaltySelected": 0,
"currency": "MYR",
"returnUrl": "https://tpmrsuat.tuneprotect.com/paymentStatus/"
}
Response :
{
"transactionId": "PFTT247578-3056",
"quotedAmount": "87.75",
"status": "INITIATED",
"customerId": "",
"paymentPasswordEncrypted": "O0qWOE9OnnV2979d1zASZs0ROyoH5rCP",
"paymentFailureCallbackUrl": "https://tpmrsuat.tuneprotect.com/rocketship/d/aQDOxKaRqeLk",
"token": null
}
Transaction API is used to initiate transaction before calling payment gateway for purchase. Initiate transaction API will create a transaction ID for the transaction and will return it. This transaction ID need to be used in the final create policy API after payment success/failed status.
Request URL: https://apiuat.tuneprotect.com/d2c/1.0/products/transactions?locale=en_us
Method:POST
Query and request body parameters:
PARAMETER | TYPE |
---|---|
locale | String |
productCode | String |
quoteId | String |
paymentMethodType | String |
quotedAmount | String |
loyaltySelected | Integer |
currency | String |
returnUrl | String |
Create Policy
Request:
{
"productCode": "TRAVELEASY",
"quoteId": "1676625729576236",
"quotedAmount": "87.75",
"currencyCode": "MYR",
"status": "0",
"authorizationCode": "TIS000",
"gatewayId": "eghl",
"referenceCode": "TIS000PFTT2475783056",
"customerId": "108003",
"paymentMethod": "1",
"token": ""
}
Response
{
"success": true,
"messages": "SUCCESS",
"data": {
"quoteId": null,
"policy": {
"policyStatus": "CONFIRMED",
"policyNumber": "AMC-TRAVEL-EASY-2017-0005513",
"policyCreationDateTime": 1676626436000,
"effectiveDate": 1676649540000,
"policyUrl": null,
"expiryDate": 1677081540000,
"forSelf": true
},
"transactionId": "PFTT409445-7936",
"adaptorCustomerId": null,
"policyHolder": {
"fullName": "SANTHOSH GADDAM",
"mobileNumber": 601126487155,
"emailAddress": "[email protected]",
"nationality": "MYS",
"dob": 621273600000,
"gender": null,
"addressLine1": null,
"addressLine2": null,
"state": null,
"city": null,
"postalCode": null,
"documentID": "890909-34-2342",
"documentType": "nric"
},
"paxesPolicies": [],
"loyalty": null,
"applyPromoCodeResponse": null,
"eligibleForSpecialRewards": null,
"status": "POLICY_GENERATED",
"userExists": false
},
"code": 200
}
After a payment success, you can trigger the create policy API for creating policy for customer. This API returns policy/certificate number, policy expiry date and other policy details.
Request URL: https://apiuat.tuneprotect.com/d2c/1.0/products/transactions/BC00007952/status?locale=en_us
Method:POST
Query and request body parameters:
PARAMETER | TYPE |
---|---|
locale | String |
productCode | String |
quoteId | String |
paymentMethod | String |
quotedAmount | String |
status | Integer |
currencyCode | String |
authorizationCode | String |
gatewayId | String |
referenceCode | String |
customerId | String |
paymentMethod | String |
token | String |
TRAVELINBOUND - API Request And Response Details
Get Basic Quote API:
Request:
{
"quoteId":"",
"customerId":"",
"productCode":"TRAVELINBOUND",
"referralTransactionId":"",
"parameters":[
{
"name":"arrivalDate",
"value":"2022/01/07"
},
{
"name":"departureDate",
"value":"2022/01/08"
},
{
"name":"nationality",
"value":"AUS"
},
{
"name":"noOfInsured",
"value":"1"
}
]
}
Response:
{
"productCode":"TRAVELINBOUND",
"quoteId":"1641554210280164",
"plans":[
{
"planCode":"PLAN1",
"currency":"MYR",
"displayName":"BASIC",
"detailedQuotation":null,
"quotedAmount":"105.40",
"sumInsured":"0.00",
"sumInsuredHH":"0.00",
"basePremium":"90.00",
"basePremiumHO":"0.00",
"basePremiumHH":"0.00"
},
{
"planCode":"PLAN2",
"currency":"MYR",
"displayName":"PREMIUM",
"detailedQuotation":null,
"quotedAmount":"208.75",
"sumInsured":"0.00",
"sumInsuredHH":"0.00",
"basePremium":"187.50",
"basePremiumHO":"0.00",
"basePremiumHH":"0.00"
}
],
"userInformationDTO":null,
"affiliatePartnerURL":"https://tpmrsuat.tuneprotect.com/quote/RS_Quote_TravelinBound?sourceid=src12345&uid=164155421208211&productcode=TRAVELINBOUND&data=fGFycml2YWxEYXRlOjIwMjIvMDEvMDd8ZGVwYXJ0dXJlRGF0ZToyMDIyLzAxLzA4fG5hdGlvbmFsaXR5OkFVU3xub09mSW5zdXJlZDoxfA=="
}
This API is used to fetch basic quote details for product. We will get following details from basic quote API:
- Quote ID – In product purchase flow, Quote ID is used as unique number.
- Plans and minimal plan details
Request URL:
https://apiuat.tuneprotect.com/d2c/1.0/products/quote/options?locale=en_us
Method : POST
Query and body parameters in request:
PARAMETER | TYPE |
---|---|
locale | String |
quoteId | String |
customerId | String |
productCode | String |
referralTransactionId | String |
Parameters | Array |
arrivalDate | String |
departureDate | String |
nationality | String |
noOfInsured | String |
Get Quote Details API:
{
"success":true,
"messages":"Requested Quote is : ",
"data":{
"productCode":"TRAVELINBOUND",
"quoteId":"1641554210280164",
"selectedPlanCode":"PLAN1",
"selectedPlanDisplayName":"BASIC",
"quotedAmount":"105.40",
"totalNumberOfPersons":0,
"totalNumberOfAdditionalDrivers":0,
"userInformationDTO":null,
"detailedQuotation":[
{
"rateName":"BAPA",
"quotedAmount":"120.0"
},
{
"rateName":"REBA",
"quotedAmount":"-30.0"
},
{
"rateName":"GROSS",
"quotedAmount":"90.0"
},
{
"rateName":"SST",
"quotedAmount":"5.4"
},
{
"rateName":"SD",
"quotedAmount":"10.0"
},
{
"rateName":"TOTAL",
"quotedAmount":"105.4"
},
{
"rateName":"REBAPERC",
"quotedAmount":"25"
},
{
"rateName":"SSTPERC",
"quotedAmount":"6"
},
{
"rateName":"PremiumAfterDiscount",
"quotedAmount":"90.0"
},
{
"rateName":"DISCPERC",
"quotedAmount":"0"
}
],
"optionalBenefits":[],
"customerInformation":[],
"purchaserInformation":null,
"additionalInformation":[],
"eligibleForPayd":false,
"loyaltyEnabled":false,
"loyalty":null,
"checkPromoCodeResponse":null,
"eligibleForSpecialRewards":null
},
"code":200
}
get following details from get quote API.
- Quote ID
- Quoted amount
- Detailed quoation – This section have the quotation details like basic premium, GST details, discount amounts, total amount to pay, etc.
Request URL:
Query and body parameters in request:
Method:GET
PARAMETER | TYPE |
---|---|
productCode | String |
planCode | String |
quoteId | String |
locale | String |
Update Quote (with Customer details) API:
Request:
{
"productCode":"TRAVELINBOUND",
"quoteId":"1641872256925111",
"selectedPlanCode":"PLAN1",
"quotedAmount":"105.40",
"optionalBenefits":[],
"customerInformation":[
{
"name":"documentType",
"value":"Passport"
},
{
"name":"postalCode",
"value":"1234"
},
{
"name":"addressState",
"value":"Kedah"
},
{
"name":"addressLine2",
"value":"address2"
},
{
"name":"addressLine1",
"value":"addresss"
},
{
"name":"emailAddress",
"value":"[email protected]"
},
{
"name":"mobileNumber",
"value":"919744667934"
},
{
"name":"gender",
"value":"Female"
},
{
"name":"dob",
"value":"2021/12/12"
},
{
"name":"nationality",
"value":"AUS"
},
{
"name":"documentID",
"value":"RE45"
},
{
"name":"fullName",
"value":"MINNU"
},
{
"name":"underwriterQn",
"value":"0"
}
],
"purchaserInformation":[],
"additionalInformation":[],
"quoteItems1":[],
"quoteItems2":[],
"agreeDeclaration":"0",
"acceptTerms":"1"
}
Response:
{
"productCode": "TRAVELINBOUND",
"quoteId": "1641877724316631",
"selectedPlanCode": "PLAN1",
"selectedPlanDisplayName": "BASIC",
"quotedAmount": "105.40",
"totalNumberOfPersons": 0,
"totalNumberOfAdditionalDrivers": 0,
"userInformationDTO": null,
"detailedQuotation": [
{
"rateName": "BAPA",
"quotedAmount": "120.00"
},
{
"rateName": "REBA",
"quotedAmount": "-30.00"
},
{
"rateName": "GROSS",
"quotedAmount": "90.00"
},
{
"rateName": "SST",
"quotedAmount": "5.40"
},
{
"rateName": "SD",
"quotedAmount": "10.00"
},
{
"rateName": "TOTAL",
"quotedAmount": "105.40"
},
{
"rateName": "REBAPERC",
"quotedAmount": "25"
},
{
"rateName": "SSTPERC",
"quotedAmount": "6"
},
{
"rateName": "PremiumAfterDiscount",
"quotedAmount": "90.0"
},
{
"rateName": "DISCPERC",
"quotedAmount": "0"
}
],
"optionalBenefits": [],
"customerInformation": [
{
"name": "documentType",
"value": "Passport"
},
{
"name": "postalCode",
"value": "123"
},
{
"name": "addressState",
"value": "Kelantan"
},
{
"name": "addressLine2",
"value": "address"
},
{
"name": "addressLine1",
"value": "address"
},
{
"name": "emailAddress",
"value": "[email protected]"
},
{
"name": "mobileNumber",
"value": "919744667934"
},
{
"name": "gender",
"value": "Female"
},
{
"name": "dob",
"value": "1997/02/04"
},
{
"name": "nationality",
"value": "AUS"
},
{
"name": "documentID",
"value": "MI67"
},
{
"name": "fullName",
"value": "MINNU"
},
{
"name": "underwriterQn",
"value": "0"
}
],
"purchaserInformation": [],
"additionalInformation": [],
"eligibleForPayd": false,
"loyaltyEnabled": true,
"loyalty": {
"eligibleForLoyalty": false,
"loyaltyId": null,
"pointsTobeEarned": 450,
"emailAddres": "[email protected]"
},
"checkPromoCodeResponse": null,
"eligibleForSpecialRewards": false
}
Update quote API is used to update customer details, additonal information and other details like accept terms and conditions. This API can be triggered multiple times to update customer and other details for a purchase.
Request URL: https://apiuat.tuneprotect.com/d2c/1.0/products/updatequote?locale=en_us
Method:POST
Query and body parameters in request:
PARAMETER | TYPE |
---|---|
locale | String |
productCode | String |
quoteId | String |
selectedPlanCode | String |
quotedAmount | String |
customerInformation | Array |
underwriterQn | String |
purchaserInformation | Array |
additionalInformation | Array |
quoteItems1 | Array |
quoteItems2 | Array |
INIT Transaction API:
Request:
{
"productCode":"TRAVELINBOUND",
"quoteId":"1641554210280164",
"quotedAmount":"105.40",
"paymentMethodType":1,
"paymentMode":2,
"promoCode":null,
"loyaltySelected":0,
"currency":"MYR",
"returnUrl":"https://tpmrsuat.tuneprotect.com/paymentStatus/"
}
Response:
{
"paymentFailureCallbackUrl": "https://tpmrsuat.tuneprotect.com/rocketship/d/PHQdvGinCnQv",
"paymentPasswordEncrypted": "w9x5PnY1U5jWt9wsvTmOudTc3lE4P4/j",
"quotedAmount": "105.40",
"status": "INITIATED",
"token": null,
"transactionId": "PFTTI281570-2314"
}
Transaction API is used to initiate transaction before calling payment gateway for purchase. Initiate transaction API will create a transaction ID for the transaction and will return it. This transaction ID need to be used in the final create policy API after payment success/failed status.
Request URL: https://apiuat.tuneprotect.com/d2c/1.0/products/transactions?locale=en_us Method:POST
Query and request body parameters:
PARAMETER | TYPE |
---|---|
locale | String |
productCode | String |
quoteId | String |
quotedAmount | String |
paymentMethodType | String |
paymentMode | String |
promoCode | String |
loyaltySelected | Integer |
currency | String |
returnUrl | String |
Create Policy
Request:
{
"productCode": "TRAVELINBOUND",
"quoteId": "1641554210280164",
"quotedAmount": "105.40",
"currencyCode": "MYR",
"status": "0",
"authorizationCode": "TIS000",
"gatewayId": "eghl",
"referenceCode": "TIS000PFTTI281570-6114",
"customerId": "108003",
"paymentMethod": "1",
"token": ""
}
Response
{
"success": true,
"messages": " Transaction Update success. Policy created",
"data": {
"quoteId": "1641554210280164",
"policy": {
"policyStatus": "CONFIRMED",
"policyNumber": "UAT-TRAVEL-INBOUND-2021-0000195",
"policyCreationDateTime": 1641564152000,
"effectiveDate": 1641571140000,
"policyUrl": "https://api-test.tuneprotect.com/DownloadPolicy/TuneDirectOnlinePDF/GetCOI?ProposalID=247578&Plan=HOHH",
"expiryDate": 1641657540000,
"forSelf": true
},
"transactionId": "PFTTI281570-6114",
"adaptorCustomerId": "108003",
{
"fullName":"MINNU",
"mobileNumber":919744667934,
"emailAddress":"[email protected]",
"nationality":"AUS",
"dob":null,
"gender":null,
"addressLine1":null,
"addressLine2":null,
"state":null,
"city":null,
"postalCode":null,
"documentID":"IN12",
"documentType":"passport"
},
"loyalty": null,
"userExists": true,
"status": "POLICY_GENERATED"
},
"code": 200
}
After a payment success, you can trigger the create policy API for creating policy for customer. This API returns policy/certificate number, policy expiry date and other policy details.
Request URL: https://apiuat.tuneprotect.com/d2c/1.0/products/transactions/PFTTI281570-6114/status?locale=en_us
Method:POST
Query and request body parameters:
PARAMETER | TYPE |
---|---|
locale | String |
productCode | String |
quoteId | String |
paymentMethod | String |
quotedAmount | String |
status | Integer |
currencyCode | String |
authorizationCode | String |
gatewayId | String |
referenceCode | String |
customerId | String |
paymentMethod | String |
token | String |
PA EASY - API Request And Response Details
Get Basic Quote API:
Request:
{
"quoteId": "",
"customerId": "",
"productCode": "PAEASY",
"referralTransactionId": "",
"parameters": [
{
"name": "restrictedOccupation",
"value": "0"
}
]
}
Response:
{
"productCode": "PAEASY",
"quoteId": "1676627380471887",
"plans": [
{
"planCode": "Basic",
"currency": "MYR",
"displayName": "PA Easy ",
"detailedQuotation": null,
"quotedAmount": "38.62",
"sumInsured": "0.00",
"sumInsuredHH": "0.00",
"basePremium": "27.00",
"oldBasePremium": "0.00",
"basePremiumHO": "0.00",
"basePremiumHH": "0.00"
}
],
"userInformationDTO": null,
"affiliatePartnerURL": "https://tpmrsuat.tuneprotect.com/quote/RS_Quote_PA?sourceid=src12345&uid=167662738095786&productcode=PAEASY&data=fHJlc3RyaWN0ZWRPY2N1cGF0aW9uOjB8"
}
This API is used to fetch basic quote details for product. We will get following details from basic quote API:
- Quote ID – In product purchase flow, Quote ID is used as unique number.
- Plans and minimal plan details
Request URL:
https://apiuat.tuneprotect.com/d2c/1.0/products/quote/options?locale=en_us
Method : POST
Query and body parameters in request:
PARAMETER | TYPE |
---|---|
locale | String |
quoteId | String |
customerId | String |
productCode | String |
referralTransactionId | String |
Parameters | Array |
restrictedOccupation | String |
Get Quote Details API:
Response:
{
"success": true,
"messages": "Requested Quote is : ",
"data": {
"productCode": "PAEASY",
"quoteId": "1676627380471887",
"selectedPlanCode": "Basic",
"selectedPlanDisplayName": "PA Easy ",
"quotedAmount": "38.62",
"totalNumberOfPersons": 0,
"totalNumberOfAdditionalDrivers": 0,
"userInformationDTO": null,
"detailedQuotation": [
{
"rateName": "BAPA",
"quotedAmount": "36.0"
},
{
"rateName": "REBA",
"quotedAmount": "-9.0"
},
{
"rateName": "GROSS",
"quotedAmount": "27.0"
},
{
"rateName": "SST",
"quotedAmount": "1.62"
},
{
"rateName": "SD",
"quotedAmount": "10.0"
},
{
"rateName": "TOTAL",
"quotedAmount": "38.62"
},
{
"rateName": "REBAPERC",
"quotedAmount": "25"
},
{
"rateName": "SSTPERC",
"quotedAmount": "6"
},
{
"rateName": "PremiumAfterDiscount",
"quotedAmount": "27.0"
},
{
"rateName": "DISCPERC",
"quotedAmount": "0"
}
],
"optionalBenefits": [],
"customerInformation": [],
"purchaserInformation": null,
"additionalInformation": [],
"eligibleForPayd": false,
"loyaltyEnabled": false,
"loyalty": null,
"checkPromoCodeResponse": null,
"eligibleForSpecialRewards": null
},
"code": 200
}
get following details from get quote API.
- Quote ID
- Quoted amount
- Detailed quoation – This section have the quotation details like basic premium, GST details, discount amounts, total amount to pay, etc.
Request URL:
Query and body parameters in request:
Method:GET
PARAMETER | TYPE |
---|---|
productCode | String |
planCode | String |
quoteId | String |
locale | String |
Update Quote (with Customer details) API:
Request:
{
"productCode": "PAEASY",
"quoteId": "1676627380471887",
"selectedPlanCode": "Basic",
"quotedAmount": "38.62",
"optionalBenefits": [],
"customerInformation": [
{
"name": "mailAddress",
"value": "true"
},
{
"name": "addressLine1",
"value": "ashok nagar"
},
{
"name": "addressPostalCode",
"value": "23423"
},
{
"name": "addressState",
"value": "Kedah"
},
{
"name": "addressCountry",
"value": "MYS"
},
{
"name": "nationality",
"value": "MYS"
},
{
"name": "documentID",
"value": "880909-32-3432"
},
{
"name": "mobileNumber",
"value": "601126487155"
},
{
"name": "mobileCountryCode",
"value": "+60"
},
{
"name": "dob",
"value": "1988/09/09"
},
{
"name": "emailAddress",
"value": "[email protected]"
},
{
"name": "gender",
"value": "Female"
},
{
"name": "documentType",
"value": "nric"
},
{
"name": "fullName",
"value": "SANTHOSH GADDAM"
}
],
"purchaserInformation": [],
"additionalInformation": [],
"quoteItems1": [],
"quoteItems2": []
}
Response:
{
"success": true,
"messages": " Update success. ",
"data": {
"productCode": "PAEASY",
"quoteId": "1676627380471887",
"selectedPlanCode": "Basic",
"selectedPlanDisplayName": "PA Easy ",
"quotedAmount": "28.62",
"totalNumberOfPersons": 0,
"totalNumberOfAdditionalDrivers": 0,
"userInformationDTO": null,
"detailedQuotation": [
{
"rateName": "BAPA",
"quotedAmount": "36.00"
},
{
"rateName": "REBA",
"quotedAmount": "-9.00"
},
{
"rateName": "GROSS",
"quotedAmount": "27.00"
},
{
"rateName": "SST",
"quotedAmount": "1.62"
},
{
"rateName": "SD",
"quotedAmount": "0.00"
},
{
"rateName": "TOTAL",
"quotedAmount": "28.62"
},
{
"rateName": "REBAPERC",
"quotedAmount": "25"
},
{
"rateName": "SSTPERC",
"quotedAmount": "6"
},
{
"rateName": "PremiumAfterDiscount",
"quotedAmount": "27.0"
},
{
"rateName": "DISCPERC",
"quotedAmount": "0"
}
],
"optionalBenefits": [],
"customerInformation": [
{
"name": "mailAddress",
"value": "true"
},
{
"name": "addressLine1",
"value": "ashok nagar"
},
{
"name": "addressPostalCode",
"value": "23423"
},
{
"name": "addressState",
"value": "Kedah"
},
{
"name": "addressCountry",
"value": "MYS"
},
{
"name": "nationality",
"value": "MYS"
},
{
"name": "documentID",
"value": "880909-32-3432"
},
{
"name": "mobileNumber",
"value": "601126487155"
},
{
"name": "mobileCountryCode",
"value": "+60"
},
{
"name": "dob",
"value": "1988/09/09"
},
{
"name": "emailAddress",
"value": "[email protected]"
},
{
"name": "gender",
"value": "Female"
},
{
"name": "documentType",
"value": "nric"
},
{
"name": "fullName",
"value": "SANTHOSH GADDAM"
}
],
"purchaserInformation": [],
"additionalInformation": [],
"eligibleForPayd": false,
"loyaltyEnabled": true,
"loyalty": {
"eligibleForLoyalty": false,
"loyaltyId": null,
"pointsTobeEarned": 27,
"emailAddres": "[email protected]"
},
"checkPromoCodeResponse": null,
"eligibleForSpecialRewards": false
},
"code": 200
}
Update quote API is used to update customer details, additonal information and other details like accept terms and conditions. This API can be triggered multiple times to update customer and other details for a purchase.
Request URL: https://apiuat.tuneprotect.com/d2c/1.0/products/updatequote?locale=en_us
Method:POST
Query and body parameters in request:
PARAMETER | TYPE |
---|---|
locale | String |
productCode | String |
quoteId | String |
selectedPlanCode | String |
quotedAmount | String |
customerInformation | Array |
underwriterQn | String |
purchaserInformation | Array |
additionalInformation | Array |
quoteItems1 | Array |
quoteItems2 | Array |
Update Quote (with Customer details, acceptTerms and agreeDeclaration) API:
Request:
{
"productCode": "PAEASY",
"quoteId": "1676627380471887",
"selectedPlanCode": "Basic",
"quotedAmount": "28.62",
"optionalBenefits": [],
"customerInformation": [
{
"name": "mailAddress",
"value": "true"
},
{
"name": "addressLine1",
"value": "ashok nagar"
},
{
"name": "addressPostalCode",
"value": "23423"
},
{
"name": "addressState",
"value": "Kedah"
},
{
"name": "addressCountry",
"value": "MYS"
},
{
"name": "nationality",
"value": "MYS"
},
{
"name": "documentID",
"value": "880909-32-3432"
},
{
"name": "mobileNumber",
"value": "601126487155"
},
{
"name": "mobileCountryCode",
"value": "+60"
},
{
"name": "dob",
"value": "1988/09/09"
},
{
"name": "emailAddress",
"value": "[email protected]"
},
{
"name": "gender",
"value": "Female"
},
{
"name": "documentType",
"value": "nric"
},
{
"name": "fullName",
"value": "SANTHOSH GADDAM"
}
],
"purchaserInformation": [],
"additionalInformation": [],
"quoteItems1": [],
"quoteItems2": [],
"agreeDeclaration": "1",
"acceptTerms": "1"
}
Response:
{
"success": true,
"messages": " Update success. ",
"data": {
"productCode": "PAEASY",
"quoteId": "1676627380471887",
"selectedPlanCode": "Basic",
"selectedPlanDisplayName": "PA Easy ",
"quotedAmount": "28.62",
"totalNumberOfPersons": 0,
"totalNumberOfAdditionalDrivers": 0,
"userInformationDTO": null,
"detailedQuotation": [
{
"rateName": "BAPA",
"quotedAmount": "36.00"
},
{
"rateName": "REBA",
"quotedAmount": "-9.00"
},
{
"rateName": "GROSS",
"quotedAmount": "27.00"
},
{
"rateName": "SST",
"quotedAmount": "1.62"
},
{
"rateName": "SD",
"quotedAmount": "0.00"
},
{
"rateName": "TOTAL",
"quotedAmount": "28.62"
},
{
"rateName": "REBAPERC",
"quotedAmount": "25"
},
{
"rateName": "SSTPERC",
"quotedAmount": "6"
},
{
"rateName": "PremiumAfterDiscount",
"quotedAmount": "27.0"
},
{
"rateName": "DISCPERC",
"quotedAmount": "0"
}
],
"optionalBenefits": [],
"customerInformation": [
{
"name": "mailAddress",
"value": "true"
},
{
"name": "addressLine1",
"value": "ashok nagar"
},
{
"name": "addressPostalCode",
"value": "23423"
},
{
"name": "addressState",
"value": "Kedah"
},
{
"name": "addressCountry",
"value": "MYS"
},
{
"name": "nationality",
"value": "MYS"
},
{
"name": "documentID",
"value": "880909-32-3432"
},
{
"name": "mobileNumber",
"value": "601126487155"
},
{
"name": "mobileCountryCode",
"value": "+60"
},
{
"name": "dob",
"value": "1988/09/09"
},
{
"name": "emailAddress",
"value": "[email protected]"
},
{
"name": "gender",
"value": "Female"
},
{
"name": "documentType",
"value": "nric"
},
{
"name": "fullName",
"value": "SANTHOSH GADDAM"
}
],
"purchaserInformation": [],
"additionalInformation": [],
"eligibleForPayd": false,
"loyaltyEnabled": true,
"loyalty": {
"eligibleForLoyalty": false,
"loyaltyId": null,
"pointsTobeEarned": 27,
"emailAddres": "[email protected]"
},
"checkPromoCodeResponse": null,
"eligibleForSpecialRewards": false
},
"code": 200
}
Update quote API is used to update customer details, additonal information and other details like accept terms and conditions. This API can be triggered multiple times to update customer and other details for a purchase.
Request URL: https://apiuat.tuneprotect.com/d2c/1.0/products/updatequote?locale=en_us
Method:POST
Query and body parameters in request:
PARAMETER | TYPE |
---|---|
locale | String |
productCode | String |
quoteId | String |
selectedPlanCode | String |
quotedAmount | String |
customerInformation | Array |
purchaserInformation | Array |
additionalInformation | Array |
quoteItems1 | Array |
quoteItems2 | Array |
acceptTerms | Boolean |
agreeDeclaration | Boolean |
INIT Transaction API:
Request:
{
"productCode": "PAEASY",
"quoteId": "1676627380471887",
"quotedAmount": "28.62",
"paymentMethodType": 1,
"paymentMode": 2,
"promoCode": null,
"loyaltySelected": 0,
"currency": "MYR",
"returnUrl": "https://tpmrsuat.tuneprotect.com/paymentStatus/"
}
Response:
{
"paymentFailureCallbackUrl": "https://tpmrsuat.tuneprotect.com/rocketship/d/PHQdvGinCnQv",
"paymentPasswordEncrypted": "w9x5PnY1U5jWt9wsvTmOudTc3lE4P4/j",
"quotedAmount": "28.62",
"status": "INITIATED",
"token": null,
"transactionId": "PFTPA409477-8210"
}
Transaction API is used to initiate transaction before calling payment gateway for purchase. Initiate transaction API will create a transaction ID for the transaction and will return it. This transaction ID need to be used in the final create policy API after payment success/failed status.
Request URL: https://apiuat.tuneprotect.com/d2c/1.0/products/transactions?locale=en_us Method:POST
Query and request body parameters:
PARAMETER | TYPE |
---|---|
locale | String |
productCode | String |
quoteId | String |
quotedAmount | String |
paymentMethodType | String |
paymentMode | String |
promoCode | String |
loyaltySelected | Integer |
currency | String |
returnUrl | String |
Create Policy
Request:
{
"productCode": "PAEASY",
"quoteId": "1676627380471887",
"quotedAmount": "105.40",
"currencyCode": "MYR",
"status": "0",
"authorizationCode": "TIS000",
"gatewayId": "eghl",
"referenceCode": "TIS000PFTPA409477-8210",
"customerId": "108003",
"paymentMethod": "1",
"token": ""
}
Response
{
"success": true,
"messages": "SUCCESS",
"data": {
"quoteId": null,
"policy": {
"policyStatus": "CONFIRMED",
"policyNumber": "AMC-PA-EASY-2017-0005257",
"policyCreationDateTime": 1676628345000,
"effectiveDate": 1676649540000,
"policyUrl": null,
"expiryDate": 1708099140000,
"forSelf": true
},
"transactionId": "PFTPA409477-8210",
"adaptorCustomerId": null,
"policyHolder": {
"fullName": "SANTHOSH GADDAM",
"mobileNumber": 601126487155,
"emailAddress": "[email protected]",
"nationality": "MYS",
"dob": null,
"gender": null,
"addressLine1": null,
"addressLine2": null,
"state": null,
"city": null,
"postalCode": null,
"documentID": "880909-32-3432",
"documentType": "nric"
},
"paxesPolicies": [],
"loyalty": null,
"applyPromoCodeResponse": null,
"eligibleForSpecialRewards": null,
"status": "POLICY_GENERATED",
"userExists": false
},
"code": 200
}
After a payment success, you can trigger the create policy API for creating policy for customer. This API returns policy/certificate number, policy expiry date and other policy details.
Request URL: https://apiuat.tuneprotect.com/d2c/1.0/products/transactions/PFTTI281570-6114/status?locale=en_us
Method:POST
Query and request body parameters:
PARAMETER | TYPE |
---|---|
locale | String |
productCode | String |
quoteId | String |
paymentMethod | String |
quotedAmount | String |
status | Integer |
currencyCode | String |
authorizationCode | String |
gatewayId | String |
referenceCode | String |
customerId | String |
paymentMethod | String |
token | String |
Home Shield - API Request And Response Details
Get Basic Quote API:
Request:
{
"quoteId":"",
"customerId":"",
"productCode":"HOME-SHIELD",
"parameters":[
{
"name":"buildingType",
"value":"Landed"
},
{
"name":"coverageType",
"value":"HOHH"
},
{
"name":"proposerType",
"value":"Yes"
},
{
"name":"constructionCode",
"value":"C1A"
},
{
"name":"bankLoan",
"value":"No"
},
{
"name":"sumInsuredHO",
"value":"123456"
},
{
"name":"planType",
"value":"Premier"
},
{
"name":"useOfHouse",
"value":"OS"
}
]
}
Response:
{
"productCode":"HOME-SHIELD",
"quoteId":"1650433422085355",
"plans":[
{
"planCode":"HO",
"currency":"MYR",
"displayName":"Building",
"detailedQuotation":null,
"quotedAmount":"93.23",
"sumInsured":"123456.00",
"sumInsuredHH":"0.00",
"basePremium":"78.52",
"basePremiumHO":"78.52",
"basePremiumHH":"0.00"
}
],
"userInformationDTO":null,
"affiliatePartnerURL":""
}
This API is used to fetch basic quote details for product. We will get following details from basic quote API:
- Quote ID – In product purchase flow, Quote ID is used as unique number.
- Plans and minimal plan details
Request URL:
https://apiuat.tuneprotect.com/d2c/1.0/products/quote/options?locale=en_us
Method : POST
Query and body parameters in request:
PARAMETER | TYPE |
---|---|
locale | String |
customerId | String |
productCode | String |
Parameters | Array |
buildingType | String |
coverageType | String |
ownProperty | String |
buildingMaterial | String |
bankLoan | String |
sumInsured | String |
Get Basic Quote API (With ADD-ONs):
Request:
{
"quoteId":"",
"customerId":"",
"productCode":"HOME-SHIELD",
"parameters":[
{
"name":"buildingType",
"value":"Landed"
},
{
"name":"coverageType",
"value":"HO"
},
{
"name":"proposerType",
"value":"Yes"
},
{
"name":"constructionCode",
"value":"C1A"
},
{
"name":"bankLoan",
"value":"No"
},
{
"name":"useOfHouse",
"value":"OS"
},
{
"name":"sumInsuredHO",
"value":"123456"
},
{
"name":"HOHGFSumInsured",
"value":"1234"
},
{
"name":"HOaddonHGF",
"value":true
},
{
"name":"HOaddonPG",
"value":true
},
{
"name":"HOaddonDMG",
"value":true
},
{
"name":"HOaddonARA",
"value":true
}
]
}
Response:
{
"productCode":"HOME-SHIELD",
"quoteId":"1650433961372969",
"plans":[
{
"planCode":"HO",
"currency":"MYR",
"displayName":"Building",
"detailedQuotation":null,
"quotedAmount":"163.50",
"sumInsured":"123456.00",
"sumInsuredHH":"0.00",
"basePremium":"144.81",
"basePremiumHO":"78.52",
"basePremiumHH":"0.00"
}
],
"userInformationDTO":null,
"affiliatePartnerURL":""
}
This API is used to fetch basic quote details for product. We will get following details from basic quote API:
- Quote ID – In product purchase flow, Quote ID is used as unique number.
- Plans and minimal plan details
Request URL:
https://apiuat.tuneprotect.com/d2c/1.0/products/quote/options?locale=en_us
Method : POST
Query parameters:
PARAMETER | TYPE |
---|---|
locale | String |
customerId | String |
productCode | String |
Parameters | Array |
buildingType | String |
coverageType | String |
ownProperty | String |
buildingMaterial | String |
bankLoan | String |
sumInsured | String |
personalLiability | Boolean |
riotStrike&MaliciousDamageHO | Boolean |
subsidence&LandslipHO | Boolean |
plateGlassHO | Boolean |
Get Quote Details API:
Response:
{
"success":true,
"messages":"Requested Quote is : ",
"data":{
"productCode":"HOME-SHIELD",
"quoteId":"1650433803208893",
"selectedPlanCode":"HO",
"selectedPlanDisplayName":"Building",
"quotedAmount":"95.57",
"totalNumberOfPersons":0,
"totalNumberOfAdditionalDrivers":0,
"userInformationDTO":null,
"detailedQuotation":[
{
"rateName":"BP01",
"quotedAmount":"78.52"
},
{
"rateName":"AO01",
"quotedAmount":"0.0"
},
{
"rateName":"AO02",
"quotedAmount":"0.0"
},
{
"rateName":"AO03",
"quotedAmount":"0.0"
},
{
"rateName":"AO04",
"quotedAmount":"0.0"
},
{
"rateName":"AO05",
"quotedAmount":"0.0"
},
{
"rateName":"OP14",
"quotedAmount":"0.0"
},
{
"rateName":"OP11",
"quotedAmount":"0.0"
},
{
"rateName":"OP12",
"quotedAmount":"0.0"
},
{
"rateName":"OP15",
"quotedAmount":"0.0"
},
{
"rateName":"OP16",
"quotedAmount":"0.0"
},
{
"rateName":"OP17",
"quotedAmount":"0.0"
},
{
"rateName":"OP18",
"quotedAmount":"0.0"
},
{
"rateName":"OP19",
"quotedAmount":"0.0"
},
{
"rateName":"OP20",
"quotedAmount":"2.21"
},
{
"rateName":"OP13",
"quotedAmount":"0.0"
},
{
"rateName":"OP30",
"quotedAmount":"0.0"
},
{
"rateName":"OP31",
"quotedAmount":"0.0"
},
{
"rateName":"TEXT",
"quotedAmount":"2.21"
},
{
"rateName":"SEC1",
"quotedAmount":"80.73"
},
{
"rateName":"SEC2",
"quotedAmount":"0.0"
},
{
"rateName":"SEC3",
"quotedAmount":"0.0"
},
{
"rateName":"BAPA",
"quotedAmount":"78.52"
},
{
"rateName":"GPRE",
"quotedAmount":"80.73"
},
{
"rateName":"ORBT",
"quotedAmount":"0.0"
},
{
"rateName":"ORBTPERC",
"quotedAmount":"0.0"
},
{
"rateName":"GROSS",
"quotedAmount":"80.73"
},
{
"rateName":"SST",
"quotedAmount":"4.84"
},
{
"rateName":"SD",
"quotedAmount":"10.0"
},
{
"rateName":"COMM",
"quotedAmount":"12.11"
},
{
"rateName":"COM%",
"quotedAmount":"15.0"
},
{
"rateName":"COMT",
"quotedAmount":"0.0"
},
{
"rateName":"TOTAL",
"quotedAmount":"95.57"
},
{
"rateName":"REBAPERC",
"quotedAmount":"0"
},
{
"rateName":"SSTPERC",
"quotedAmount":"6"
},
{
"rateName":"PremiumAfterDiscount",
"quotedAmount":"80.73"
},
{
"rateName":"DISCPERC",
"quotedAmount":"0"
}
],
"optionalBenefits":[],
"customerInformation":[],
"purchaserInformation":null,
"additionalInformation":[],
"eligibleForPayd":false,
"loyaltyEnabled":false,
"loyalty":null,
"checkPromoCodeResponse":null,
"eligibleForSpecialRewards":null
},
"code":200
}
get following details from get quote API.
- Quote ID
- Quoted amount
- Detailed quoation – This section have the quotation details like basic premium, GST details, discount amounts, total amount to pay, etc. Request URL:
Query and body parameters in request:
Method:GET
PARAMETER | TYPE |
---|---|
productCode | String |
planCode | String |
quoteId | String |
locale | String |
Update Quote (with Customer details) API:
Request:
{
"productCode":"HOME-SHIELD",
"quoteId":"1650433961372969",
"selectedPlanCode":"HO",
"quotedAmount":"153.50",
"optionalBenefits":[
{
"applicableAmount":0
},
{
"applicableAmount":0
},
{
"applicableAmount":0
},
{
"applicableAmount":0
},
{
"applicableAmount":0
}
],
"customerInformation":[
{
"name":"proposer",
"value":"Individual"
},
{
"name":"title",
"value":"ms"
},
{
"name":"homeTelephoneNo",
"value":"9744667934"
},
{
"name":"officeTelephoneNo",
"value":"9744667934"
},
{
"name":"maritalStatus",
"value":"Single"
},
{
"name":"occupation",
"value":"test"
},
{
"name":"noOfTenants",
"value":"2"
},
{
"name":"OccupiedBy",
"value":"Self"
},
{
"name":"occupiedAs",
"value":"Private Dwelling"
},
{
"name":"noOfStoreys",
"value":"2"
},
{
"name":"yearOfConstruction",
"value":"2012"
},
{
"name":"propertyCountry",
"value":"MYS"
},
{
"name":"propertyPostalCode",
"value":"12345"
},
{
"name":"propertyHomeState",
"value":"Kedah"
},
{
"name":"propertyHomeAddress3",
"value":"home address"
},
{
"name":"propertyHomeAddress2",
"value":"test address1"
},
{
"name":"propertyHomeAddress1",
"value":"test address"
},
{
"name":"policyEndDate",
"value":"2023/04/19"
},
{
"name":"policyStartDate",
"value":"2022/04/20"
},
{
"name":"livingInPropertyAddress",
"value":"true"
},
{
"name":"nationality",
"value":"MYS"
},
{
"name":"documentID",
"value":"660421-33-3478"
},
{
"name":"mobileNumber",
"value":"609744667934"
},
{
"name":"mobileCountryCode",
"value":"+60"
},
{
"name":"dob",
"value":"1966/04/21"
},
{
"name":"emailAddress",
"value":"[email protected]"
},
{
"name":"gender",
"value":"Female"
},
{
"name":"documentType",
"value":"nric"
},
{
"name":"fullName",
"value":"TEST"
},
{
"name":"underwriterQn3",
"value":"0"
},
{
"name":"underwriterQn2",
"value":"0"
},
{
"name":"underwriterQn1",
"value":"0"
}
],
"purchaserInformation":[],
"additionalInformation":[],
"quoteItems1":[],
"quoteItems2":[]
}
Response:
{
"success":true,
"messages":" Update success. ",
"data":{
"productCode":"HOME-SHIELD",
"quoteId":"1650433961372969",
"selectedPlanCode":"HO",
"selectedPlanDisplayName":"Building",
"quotedAmount":"153.50",
"totalNumberOfPersons":0,
"totalNumberOfAdditionalDrivers":0,
"userInformationDTO":null,
"detailedQuotation":[
{
"rateName":"BP01",
"quotedAmount":"78.52"
},
{
"rateName":"AO01",
"quotedAmount":"0.00"
},
{
"rateName":"AO02",
"quotedAmount":"0.00"
},
{
"rateName":"AO03",
"quotedAmount":"0.00"
},
{
"rateName":"AO04",
"quotedAmount":"0.00"
},
{
"rateName":"AO05",
"quotedAmount":"0.00"
},
{
"rateName":"OP14",
"quotedAmount":"0.00"
},
{
"rateName":"OP11",
"quotedAmount":"0.00"
},
{
"rateName":"OP12",
"quotedAmount":"0.00"
},
{
"rateName":"OP15",
"quotedAmount":"0.00"
},
{
"rateName":"OP16",
"quotedAmount":"0.00"
},
{
"rateName":"OP17",
"quotedAmount":"0.00"
},
{
"rateName":"OP18",
"quotedAmount":"0.00"
},
{
"rateName":"OP19",
"quotedAmount":"0.00"
},
{
"rateName":"OP20",
"quotedAmount":"2.21"
},
{
"rateName":"OP13",
"quotedAmount":"37.04"
},
{
"rateName":"OP30",
"quotedAmount":"7.41"
},
{
"rateName":"OP31",
"quotedAmount":"19.63"
},
{
"rateName":"TEXT",
"quotedAmount":"66.29"
},
{
"rateName":"SEC1",
"quotedAmount":"144.81"
},
{
"rateName":"SEC2",
"quotedAmount":"0.00"
},
{
"rateName":"SEC3",
"quotedAmount":"0.00"
},
{
"rateName":"BAPA",
"quotedAmount":"78.52"
},
{
"rateName":"GPRE",
"quotedAmount":"144.81"
},
{
"rateName":"ORBT",
"quotedAmount":"0.00"
},
{
"rateName":"ORBTPERC",
"quotedAmount":"0.00"
},
{
"rateName":"GROSS",
"quotedAmount":"144.81"
},
{
"rateName":"SST",
"quotedAmount":"8.69"
},
{
"rateName":"SD",
"quotedAmount":"0.00"
},
{
"rateName":"COMM",
"quotedAmount":"21.72"
},
{
"rateName":"COM%",
"quotedAmount":"15.00"
},
{
"rateName":"COMT",
"quotedAmount":"0.00"
},
{
"rateName":"TOTAL",
"quotedAmount":"153.50"
},
{
"rateName":"REBAPERC",
"quotedAmount":"0"
},
{
"rateName":"SSTPERC",
"quotedAmount":"6"
},
{
"rateName":"PremiumAfterDiscount",
"quotedAmount":"144.81"
},
{
"rateName":"DISCPERC",
"quotedAmount":"0"
}
],
"optionalBenefits":[],
"customerInformation":[
{
"name":"proposer",
"value":"Individual"
},
{
"name":"title",
"value":"ms"
},
{
"name":"homeTelephoneNo",
"value":"9744667934"
},
{
"name":"officeTelephoneNo",
"value":"9744667934"
},
{
"name":"maritalStatus",
"value":"Single"
},
{
"name":"occupation",
"value":"test"
},
{
"name":"noOfTenants",
"value":"2"
},
{
"name":"OccupiedBy",
"value":"Self"
},
{
"name":"occupiedAs",
"value":"Private Dwelling"
},
{
"name":"noOfStoreys",
"value":"2"
},
{
"name":"yearOfConstruction",
"value":"2012"
},
{
"name":"propertyCountry",
"value":"MYS"
},
{
"name":"propertyPostalCode",
"value":"12345"
},
{
"name":"propertyHomeState",
"value":"Kedah"
},
{
"name":"propertyHomeAddress3",
"value":"home address"
},
{
"name":"propertyHomeAddress2",
"value":"test address1"
},
{
"name":"propertyHomeAddress1",
"value":"test address"
},
{
"name":"policyEndDate",
"value":"2023/04/19"
},
{
"name":"policyStartDate",
"value":"2022/04/20"
},
{
"name":"livingInPropertyAddress",
"value":"true"
},
{
"name":"nationality",
"value":"MYS"
},
{
"name":"documentID",
"value":"660421-33-3478"
},
{
"name":"mobileNumber",
"value":"609744667934"
},
{
"name":"mobileCountryCode",
"value":"+60"
},
{
"name":"dob",
"value":"1966/04/21"
},
{
"name":"emailAddress",
"value":"[email protected]"
},
{
"name":"gender",
"value":"Female"
},
{
"name":"documentType",
"value":"nric"
},
{
"name":"fullName",
"value":"TEST"
},
{
"name":"underwriterQn3",
"value":"0"
},
{
"name":"underwriterQn2",
"value":"0"
},
{
"name":"underwriterQn1",
"value":"0"
}
],
"purchaserInformation":[],
"additionalInformation":[],
"eligibleForPayd":false,
"loyaltyEnabled":false,
"loyalty":null,
"checkPromoCodeResponse":null,
"eligibleForSpecialRewards":false
},
"code":200
}
Update quote API is used to update customer details, additonal information and other details like accept terms and conditions. This API can be triggered multiple times to update customer and other details for a purchase.
Request URL: https://apiuat.tuneprotect.com/d2c/1.0/products/updatequote?locale=en_us
Method:POST
Query and body parameters in request:
PARAMETER | TYPE |
---|---|
locale | String |
productCode | String |
quoteId | String |
selectedPlanCode | String |
quotedAmount | String |
customerInformation | Array |
loanReferenceNumber | String |
financialInterest | String |
livingInPropertyAddress | String |
propertyCountry | String |
propertyPostalCode | String |
propertyHomeState | String |
propertyHomeAddress2 | String |
propertyHomeAddress1 | String |
policyEndDate | String |
policyStartDate | String |
isMailingAddressSameHomeAddress | String |
mailingAddressPostalCode | String |
mailingAddressState | String |
mailingAddressCountry | String |
mailingAddressLine2 | String |
mailingAddressLine1 | String |
addressPostalCode | String |
addressState | String |
addressCountry | String |
addressLine2 | String |
addressLine1 | String |
nationality | String |
documentID | String |
mobileNumber | String |
mobileCountryCode | String |
dob | String |
emailAddress | String |
gender | String |
documentType | String |
fullName | String |
landlordInsuraceRental | String |
mortageLoanInstallementPack | String |
smartHomeDevicePack | String |
homeCarePack | String |
underwriterQn1 | String |
underwriterQn2 | String |
underwriterQn3 | String |
purchaserInformation | Array |
additionalInformation | Array |
quoteItems1 Blank | Array |
quoteItems2 Blank | Array |
OptionalBenefits | Array |
applicableAmount | Integer |
INIT Transaction API:
Request:
{
"productCode": "HOME-SHIELD",
"quoteId": "1649844530999114",
"quotedAmount": "342.42",
"paymentMethodType": 1,
"loyaltySelected": 0,
"currency": "MYR",
"returnUrl": "https://tpmrsuat.tuneprotect.com/paymentStatus/"
}
Response:
{
"transactionId": "PFTHS372106-1635",
"quotedAmount": "342.42",
"status": "INITIATED",
"customerId": "",
"paymentPasswordEncrypted": "dIavO0zmN4guHt/Y2ryLtHYW62kXVoE4",
"paymentFailureCallbackUrl": null,
"monthlyQuotedAmount": 0,
"paymentDetails": null,
"token": null
}
Transaction API is used to initiate transaction before calling payment gateway for purchase. Initiate transaction API will create a transaction ID for the transaction and will return it. This transaction ID need to be used in the final create policy API after payment success/failed status.
Request URL: https://apiuat.tuneprotect.com/d2c/1.0/products/transactions?locale=en_us Method:POST
Query and request body parameters:
PARAMETER | TYPE |
---|---|
locale | String |
productCode | String |
quoteId | String |
paymentMethodType | String |
quotedAmount | String |
loyaltySelected | Integer |
currency | String |
returnUrl | String |
Create Policy
Request:
{
"productCode": "HOME-SHIELD",
"quoteId": "1649844530999114",
"quotedAmount": "342.42",
"currencyCode": "MYR",
"status": "0",
"authorizationCode": "TIS000",
"gatewayId": "eghl",
"referenceCode": "TIS000PFTPFTHS3721061635",
"customerId": "",
"paymentMethod": "1",
"token": ""
}
Response :
{
"success": true,
"messages": " Transaction Update success. Policy created",
"data": {
"quoteId": "1649844530999114",
"policy": {
"policyStatus": "CONFIRMED",
"policyNumber": "25321MSFA0000197",
"policyCreationDateTime": 1649845692000,
"effectiveDate": 1650038340000,
"policyUrl": "https://api-test.tuneprotect.com/DownloadPolicy/TuneDirectOnlinePDF/GetCOI?ProposalID=372106&Plan=HOHH",
"expiryDate": 1681487940000,
"forSelf": true
},
"transactionId": "PFTHS372106-1635",
"adaptorCustomerId": "1658225",
"policyHolder": {
"fullName": "TESTNAME",
"mobileNumber": 60756453455,
"emailAddress": "[email protected]",
"nationality": "AFG",
"dob": null,
"gender": "Male",
"addressLine1": "",
"addressLine2": "",
"state": "",
"city": "",
"postalCode": "",
"documentID": "1234ASDF",
"documentType": "passport"
},
"paxesPolicies": null,
"loyalty": null,
"applyPromoCodeResponse": null,
"eligibleForSpecialRewards": false,
"status": "POLICY_GENERATED",
"userExists": false
},
"code": 200
}
After a payment success, you can trigger the create policy API for creating policy for customer. This API returns policy/certificate number, policy expiry date and other policy details.
Request URL: https://apiuat.tuneprotect.com/d2c/1.0/products/transactions/BC00007952/status?locale=en_us
Method:POST
Query and request body parameters:
PARAMETER | TYPE |
---|---|
locale | String |
productCode | String |
quoteId | String |
paymentMethod | String |
quotedAmount | String |
status | Integer |
currencyCode | String |
authorizationCode | String |
gatewayId | String |
referenceCode | String |
customerId | String |
paymentMethod | String |
token | String |
Critical Illness - API Request And Response Details
Get Basic Quote API:
Request:
{
"quoteId": "",
"customerId": "",
"productCode": "CRITICALSAFE",
"referralTransactionId": "",
"paymentFrequency": "Yearly",
"parameters": [
{
"name": "dob",
"value": "2022/08/04"
},
{
"name": "gender",
"value": "Female"
},
{
"name": "smoker",
"value": "Yes"
},
{
"name": "sumInsured",
"value": "30000"
},
{
"name": "nationalityCheck",
"value": "Yes"
}
]
}
Response :
{
"productCode": "CRITICALSAFE",
"quoteId": "1661827156405468",
"plans": [
{
"planCode": "TPM2CI",
"currency": "MYR",
"displayName": "Top 2 CI",
"detailedQuotation": null,
"quotedAmount": "40.60",
"sumInsured": "30000.00",
"sumInsuredHH": "0.00",
"basePremium": "23.80",
"basePremiumHO": "0.00",
"basePremiumHH": "0.00"
},
{
"planCode": "TPM39CI",
"currency": "MYR",
"displayName": "39 CI",
"detailedQuotation": null,
"quotedAmount": "49.10",
"sumInsured": "30000.00",
"sumInsuredHH": "0.00",
"basePremium": "32.30",
"basePremiumHO": "0.00",
"basePremiumHH": "0.00"
},
{
"planCode": "TPM5CI",
"currency": "MYR",
"displayName": "Top 5 CI",
"detailedQuotation": null,
"quotedAmount": "44.00",
"sumInsured": "30000.00",
"sumInsuredHH": "0.00",
"basePremium": "27.20",
"basePremiumHO": "0.00",
"basePremiumHH": "0.00"
}
],
"userInformationDTO": null,
"affiliatePartnerURL": ""
}
This API is used to fetch basic quote details for product. We will get following details from basic quote API:
- Quote ID – In product purchase flow, Quote ID is used as unique number.
- Plans and minimal plan details
Request URL:
https://apiuat.tuneprotect.com/d2c/1.0/products/quote/options?locale=en_us
Method : POST
Query and body parameters in request:
PARAMETER | TYPE |
---|---|
locale | String |
quoteId | String |
customerId | String |
productCode | String |
referralTransactionId | String |
Parameters | Array |
dob | String |
gender | String |
smoker | String |
sumInsured | String |
nationalityCheck | String |
Get Quote Details API:
Response:
{
"success": true,
"messages": "Requested Quote is : ",
"data": {
"productCode": "CRITICALSAFE",
"quoteId": "1661827156405468",
"selectedPlanCode": "TPM2CI",
"selectedPlanDisplayName": "Top 2 CI",
"quotedAmount": "40.60",
"totalNumberOfPersons": 0,
"totalNumberOfAdditionalDrivers": 0,
"userInformationDTO": null,
"detailedQuotation": [
{
"rateName": "BAPA",
"quotedAmount": "28.00"
},
{
"rateName": "TOTAP",
"quotedAmount": "30.60"
},
{
"rateName": "PremiumAfterDiscount",
"quotedAmount": "30.60"
},
{
"rateName": "GROSS",
"quotedAmount": "36.00"
},
{
"rateName": "REBA",
"quotedAmount": "5.40"
},
{
"rateName": "ADOM",
"quotedAmount": "8.00"
},
{
"rateName": "T5E",
"quotedAmount": "7.00"
},
{
"rateName": "DC",
"quotedAmount": "1.00"
},
{
"rateName": "SD",
"quotedAmount": "10.00"
},
{
"rateName": "TOTAL",
"quotedAmount": "40.60"
},
{
"rateName": "TOP2CI",
"quotedAmount": "28.00"
},
{
"rateName": "REBAPERC",
"quotedAmount": "15.00"
},
{
"rateName": "AOP",
"quotedAmount": "8.00"
},
{
"rateName": "SST",
"quotedAmount": "0.00"
},
{
"rateName": "SSTPERC",
"quotedAmount": "0.00"
},
{
"rateName": "TPM5ESI",
"quotedAmount": "15000.00"
},
{
"rateName": "TPM5E",
"quotedAmount": "5.95"
},
{
"rateName": "TPMDBSI",
"quotedAmount": "7500.00"
},
{
"rateName": "TPMDB",
"quotedAmount": ".85"
}
],
"optionalBenefits": [],
"customerInformation": [],
"purchaserInformation": null,
"additionalInformation": [],
"eligibleForPayd": false,
"loyaltyEnabled": false,
"loyalty": null,
"checkPromoCodeResponse": null,
"eligibleForSpecialRewards": null
},
"code": 200
}
get following details from get quote API.
- Quote ID
- Quoted amount
- Detailed quoation – This section have the quotation details like basic premium, GST details, discount amounts, total amount to pay, etc.
Request URL:
Query and body parameters in request:
Method:GET
PARAMETER | TYPE |
---|---|
productCode | String |
planCode | String |
quoteId | String |
locale | String |
Update Quote (with Customer details) API:
Request
{
"productCode": "CRITICALSAFE",
"quoteId": "1661827156405468",
"selectedPlanCode": "TPM2CI",
"quotedAmount": "33.80",
"optionalBenefits": [],
"customerInformation": [
{
"name": "policyHoldernationality",
"value": "AIA"
},
{
"name": "policyHolderdocumentID",
"value": "DS23424"
},
{
"name": "relationship",
"value": "Parent"
},
{
"name": "policyHoldergender",
"value": "Male"
},
{
"name": "policyHolderdob",
"value": "2004/08/27"
},
{
"name": "policyHolderdocumentType",
"value": "Passport"
},
{
"name": "policyHolderfullName",
"value": "TEST TWO"
},
{
"name": "isMailingAddressSameHomeAddress",
"value": "true"
},
{
"name": "addressPostalCode",
"value": "23423"
},
{
"name": "addressState",
"value": "Melaka"
},
{
"name": "addressCountry",
"value": "MYS"
},
{
"name": "addressLine2",
"value": "asdf"
},
{
"name": "addressLine1",
"value": "ashok nagar"
},
{
"name": "nationality",
"value": "AIA"
},
{
"name": "documentID",
"value": "DN2423"
},
{
"name": "mobileNumber",
"value": "601126487155"
},
{
"name": "mobileCountryCode",
"value": "+60"
},
{
"name": "dob",
"value": "2022/08/04"
},
{
"name": "emailAddress",
"value": "[email protected]"
},
{
"name": "gender",
"value": "Female"
},
{
"name": "documentType",
"value": "Passport"
},
{
"name": "fullName",
"value": "TEST ONE"
},
{
"name": "nationalityCheck",
"value": "Yes"
},
{
"name": "sumInsured",
"value": "30000"
},
{
"name": "smoker",
"value": "Yes"
},
{
"name": "underwritingAns5",
"value": "0"
},
{
"name": "underwritingAns4",
"value": "0"
},
{
"name": "underwritingAns3",
"value": "0"
},
{
"name": "underwritingAns2",
"value": "0"
},
{
"name": "underwritingAns1",
"value": "0"
},
{
"name": "bmiRatio",
"value": "0"
},
{
"name": "weight",
"value": "55"
},
{
"name": "height",
"value": "155"
}
],
"purchaserInformation": [],
"additionalInformation": [],
"quoteItems1": [],
"quoteItems2": []
}
Response:
{
"success": true,
"messages": " Update success. ",
"data": {
"productCode": "CRITICALSAFE",
"quoteId": "1661827156405468",
"selectedPlanCode": "TPM2CI",
"selectedPlanDisplayName": "Top 2 CI",
"quotedAmount": "33.80",
"totalNumberOfPersons": 0,
"totalNumberOfAdditionalDrivers": 0,
"userInformationDTO": {
"parameters": []
},
"detailedQuotation": [
{
"rateName": "BAPA",
"quotedAmount": "28.00"
},
{
"rateName": "TOTAP",
"quotedAmount": "23.80"
},
{
"rateName": "PremiumAfterDiscount",
"quotedAmount": "23.80"
},
{
"rateName": "GROSS",
"quotedAmount": "28.00"
},
{
"rateName": "REBA",
"quotedAmount": "4.20"
},
{
"rateName": "ADOM",
"quotedAmount": "0.00"
},
{
"rateName": "SD",
"quotedAmount": "10.00"
},
{
"rateName": "TOTAL",
"quotedAmount": "33.80"
},
{
"rateName": "TOPCI",
"quotedAmount": "Top 2 CI Plan"
},
{
"rateName": "TOP2CI",
"quotedAmount": "28.00"
},
{
"rateName": "REBAPERC",
"quotedAmount": "15.00"
},
{
"rateName": "AOP",
"quotedAmount": "0.00"
},
{
"rateName": "SST",
"quotedAmount": "0.00"
},
{
"rateName": "SSTPERC",
"quotedAmount": "0.00"
}
],
"optionalBenefits": [],
"customerInformation": [
{
"name": "policyHoldernationality",
"value": "AIA"
},
{
"name": "policyHolderdocumentID",
"value": "DS23424"
},
{
"name": "relationship",
"value": "Parent"
},
{
"name": "policyHoldergender",
"value": "Male"
},
{
"name": "policyHolderdob",
"value": "2004/08/27"
},
{
"name": "policyHolderdocumentType",
"value": "Passport"
},
{
"name": "policyHolderfullName",
"value": "TEST TWO"
},
{
"name": "isMailingAddressSameHomeAddress",
"value": "true"
},
{
"name": "addressPostalCode",
"value": "23423"
},
{
"name": "addressState",
"value": "Melaka"
},
{
"name": "addressCountry",
"value": "MYS"
},
{
"name": "addressLine2",
"value": "asdf"
},
{
"name": "addressLine1",
"value": "ashok nagar"
},
{
"name": "nationality",
"value": "AIA"
},
{
"name": "documentID",
"value": "DN2423"
},
{
"name": "mobileNumber",
"value": "601126487155"
},
{
"name": "mobileCountryCode",
"value": "+60"
},
{
"name": "dob",
"value": "2022/08/04"
},
{
"name": "emailAddress",
"value": "[email protected]"
},
{
"name": "gender",
"value": "Female"
},
{
"name": "documentType",
"value": "Passport"
},
{
"name": "fullName",
"value": "TEST ONE"
},
{
"name": "nationalityCheck",
"value": "Yes"
},
{
"name": "sumInsured",
"value": "30000"
},
{
"name": "smoker",
"value": "Yes"
},
{
"name": "underwritingAns5",
"value": "0"
},
{
"name": "underwritingAns4",
"value": "0"
},
{
"name": "underwritingAns3",
"value": "0"
},
{
"name": "underwritingAns2",
"value": "0"
},
{
"name": "underwritingAns1",
"value": "0"
},
{
"name": "bmiRatio",
"value": "0"
},
{
"name": "weight",
"value": "55"
},
{
"name": "height",
"value": "155"
}
],
"purchaserInformation": [],
"additionalInformation": [],
"eligibleForPayd": false,
"loyaltyEnabled": true,
"loyalty": {
"eligibleForLoyalty": false,
"loyaltyId": null,
"pointsTobeEarned": 23,
"emailAddres": "[email protected]"
},
"checkPromoCodeResponse": null,
"eligibleForSpecialRewards": false
},
"code": 200
}
Update quote API is used to update customer details, additonal information and other details like accept terms and conditions. This API can be triggered multiple times to update customer and other details for a purchase.
Request URL: https://apiuat.tuneprotect.com/d2c/1.0/products/updatequote?locale=en_us
Method:POST
Query and body parameters in request:
PARAMETER | TYPE |
---|---|
locale | String |
productCode | String |
quoteId | String |
selectedPlanCode | String |
quotedAmount | String |
customerInformation | Array |
policyHoldernationality | String |
policyHolderdocumentID | String |
relationship | String |
policyHoldergender | String |
policyHolderdob | String |
policyHolderdocumentType | String |
policyHolderfullName | String |
underwritingAns1 | String |
underwritingAns2 | String |
underwritingAns3 | String |
underwritingAns4 | String |
underwritingAns5 | String |
bmiRatio | String |
weight | String |
height | String |
isMailingAddressSameHomeAddress | String |
mailingAddressPostalCode | String |
mailingAddressState | String |
mailingAddressCountry | String |
mailingAddressLine2 | String |
mailingAddressLine1 | String |
addressPostalCode | String |
addressState | String |
addressCountry | String |
addressLine2 | String |
addressLine1 | String |
nationality | String |
documentID | String |
mobileNumber | String |
mobileCountryCode | String |
dob | String |
emailAddress | String |
gender | String |
documentType | String |
fullName | String |
purchaserInformation | Array |
additionalInformation | Array |
quoteItems1 Blank | Array |
quoteItems2 Blank | Array |
OptionalBenefits | Array |
agreeDeclaration | String |
acceptTerms" | String |
INIT Transaction API:
Request :
{
"productCode": "CRITICALSAFE",
"quoteId": "1661827156405468",
"quotedAmount": "33.80",
"paymentMethodType": 1,
"paymentMode": 2,
"promoCode": null,
"loyaltySelected": 0,
"currency": "MYR",
"returnUrl": "https://tpmrsuat.tuneprotect.com/paymentStatus/"
}
Response :
{
"transactionId": "PFTCI005711-7626",
"quotedAmount": "33.80",
"status": "INITIATED",
"customerId": "",
"paymentPasswordEncrypted": "w9x5PnY1U5jWt9wsvTmOudTc3lE4P4/j",
"paymentFailureCallbackUrl": null,
"monthlyQuotedAmount": 0,
"paymentDetails": [
{
"param": "callBackUrl",
"value": "https://tpmrsuat.tuneprotect.com/rocketship/eghl/v1/callback"
},
{
"param": "merchantID",
"value": "null"
},
{
"param": "invoiceNo",
"value": "PFTCI005711-7626"
},
{
"param": "description",
"value": "Payment token request for transaction PFTCI005711-7626"
},
{
"param": "amount",
"value": "33.8"
},
{
"param": "currencyCode",
"value": "MYR"
}
],
"token": null
}
Transaction API is used to initiate transaction before calling payment gateway for purchase. Initiate transaction API will create a transaction ID for the transaction and will return it. This transaction ID need to be used in the final create policy API after payment success/failed status.
Request URL: https://apiuat.tuneprotect.com/d2c/1.0/products/transactions?locale=en_us
Method:POST
Query and request body parameters:
PARAMETER | TYPE |
---|---|
locale | String |
productCode | String |
quoteId | String |
paymentMethodType | Integer |
paymentMode | Integer |
quotedAmount | String |
loyaltySelected | Integer |
currency | String |
returnUrl | String |
Create Policy
Request:
{
"productCode": "CRITICALSAFE",
"quoteId": "1661827156405468",
"quotedAmount": "33.80",
"currencyCode": "MYR",
"status": "0",
"authorizationCode": "TIS000",
"gatewayId": "eghl",
"referenceCode": "TIS000PFTCI2837433051",
"customerId": "108003",
"paymentMethod": "1",
"token": ""
}
Response
{
"success": true,
"messages": "SUCCESS",
"data": {
"quoteId": null,
"policy": {
"policyStatus": "CONFIRMED",
"policyNumber": "UAT-CI-2022-000380",
"policyCreationDateTime": 1661827921358,
"effectiveDate": 1661799119000,
"policyUrl": null,
"expiryDate": 1693248719000,
"forSelf": true
},
"transactionId": "PFTCI005711-7626",
"adaptorCustomerId": null,
"policyHolder": {
"fullName": "TEST ONE",
"mobileNumber": 601126487155,
"emailAddress": "[email protected]",
"nationality": "AIA",
"dob": 1659542400000,
"gender": null,
"addressLine1": null,
"addressLine2": null,
"state": null,
"city": null,
"postalCode": null,
"documentID": "DN2423",
"documentType": "Passport"
},
"paxesPolicies": [],
"loyalty": null,
"applyPromoCodeResponse": null,
"eligibleForSpecialRewards": null,
"userExists": false,
"status": "POLICY_GENERATED"
},
"code": 200
}
After a payment success, you can trigger the create policy API for creating policy for customer. This API returns policy/certificate number, policy expiry date and other policy details.
Request URL: https://apiuat.tuneprotect.com/d2c/1.0/products/transactions/PFTCI005711-7626/status?locale=en_us
Method:POST
Query and request body parameters:
PARAMETER | TYPE |
---|---|
locale | String |
productCode | String |
quoteId | String |
paymentMethod | String |
quotedAmount | String |
status | Integer |
currencyCode | String |
authorizationCode | String |
gatewayId | String |
referenceCode | String |
customerId | String |
paymentMethod | String |
token | String |
Bike Easy - API Request And Response Details
Get Basic Quote API:
NVIC Available Vehicles with vehicleVariant
Request:
{
"quoteId": "1676622336576371",
"customerId": "",
"productCode": "MOTORCYCLE",
"referralTransactionId": "",
"parameters": [
{
"name": "vehicleNumber",
"value": "VAV7493"
},
{
"name": "location",
"value": "Kedah"
},
{
"name": "nric",
"value": "871127385256"
},
{
"name": "nationalityCheck",
"value": "1"
},
{
"name": "vehicleVariant",
"value": "NS200 6 SPEED MANUAL"
}
]
}
Response:
{
"productCode": "MOTORCYCLE",
"quoteId": "1676622370961869",
"plans": [
{
"planCode": "Plus",
"currency": "MYR",
"displayName": "Option 3",
"detailedQuotation": null,
"quotedAmount": "64.42",
"sumInsured": "0.00",
"sumInsuredHH": "0.00",
"basePremium": "51.34",
"oldBasePremium": "0.00",
"basePremiumHO": "0.00",
"basePremiumHH": "0.00"
},
{
"planCode": "Choice",
"currency": "MYR",
"displayName": "Option 2",
"detailedQuotation": null,
"quotedAmount": "227.44",
"sumInsured": "6100.00",
"sumInsuredHH": "0.00",
"basePremium": "205.13",
"oldBasePremium": "0.00",
"basePremiumHO": "0.00",
"basePremiumHH": "0.00"
}
],
"userInformationDTO": {
"parameters": [
{
"name": "category",
"value": "MOT"
},
{
"name": "chassisNo",
"value": "PMNRS200NHML00499"
},
{
"name": "coverType",
"value": "3"
},
{
"name": "curNCD",
"value": "0.25"
},
{
"name": "engineCapacity",
"value": "200"
},
{
"name": "engineNo",
"value": "JLYCHD65199"
},
{
"name": "make",
"value": "MODENAS"
},
{
"name": "makeCode",
"value": "82"
},
{
"name": "marketValue",
"value": "6100.0"
},
{
"name": "model",
"value": "PULSAR"
},
{
"name": "modelCode",
"value": "21"
},
{
"name": "ncdEffDate",
"value": "17062022"
},
{
"name": "ncdExpDate",
"value": "16062023"
},
{
"name": "nextNCD",
"value": "0.25"
},
{
"name": "nextNcdEffDate",
"value": "17062023"
},
{
"name": "nvic",
"value": "53A17F"
},
{
"name": "polExpDate",
"value": "16062023"
},
{
"name": "preInsCode",
"value": "247"
},
{
"name": "seatingCapacity",
"value": "2"
},
{
"name": "vehicleVariant",
"value": "NS200 6 SPEED MANUAL"
},
{
"name": "vehClass",
"value": "01"
},
{
"name": "vehRegNo",
"value": "VAV7493"
},
{
"name": "vehUse",
"value": "11"
},
{
"name": "yearMake",
"value": "2017"
}
]
},
"affiliatePartnerURL": "https://tpmrsuat.tuneprotect.com/quote/RS_Quote_Motor?sourceid=src12345&uid=167662237670437&productcode=MOTORCYCLE&data=fHZlaGljbGVOdW1iZXI6VkFWNzQ5M3xsb2NhdGlvbjpLZWRhaHxucmljOjg3MTEyNzM4NTI1NnxuYXRpb25hbGl0eUNoZWNrOjF8dmVoaWNsZVZhcmlhbnQ6TlMyMDAgIDYgU1BFRUQgTUFOVUFMfA=="
}
This API is used to fetch basic quote details for product. We will get following details from basic quote API:
- Quote ID – In product purchase flow, Quote ID is used as unique number.
- Plans and minimal plan details
- Vehicle details
Request URL:
https://apiuat.tuneprotect.com/d2c/1.0/products/quote/options?locale=en_us
Method : POST
Query and body parameters in request:
PARAMETER | TYPE |
---|---|
locale | String |
productCode | String |
nric | String |
vehicleNumber | String |
location | String |
vehicleVariant | String |
Get Quote Details API:
Response:
{
"success": true,
"messages": "Requested Quote is : ",
"data": {
"productCode": "MOTORCYCLE",
"quoteId": "1676622370961869",
"selectedPlanCode": "Choice",
"selectedPlanDisplayName": "Option 2",
"quotedAmount": "227.44",
"totalNumberOfPersons": 0,
"totalNumberOfAdditionalDrivers": 0,
"userInformationDTO": {
"parameters": [
{
"name": "category",
"value": "MOT"
},
{
"name": "chassisNo",
"value": "PMNRS200NHML00499"
},
{
"name": "coverType",
"value": "3"
},
{
"name": "curNCD",
"value": "0.25"
},
{
"name": "engineCapacity",
"value": "200"
},
{
"name": "engineNo",
"value": "JLYCHD65199"
},
{
"name": "make",
"value": "MODENAS"
},
{
"name": "makeCode",
"value": "82"
},
{
"name": "marketValue",
"value": "6100.0"
},
{
"name": "model",
"value": "PULSAR"
},
{
"name": "modelCode",
"value": "21"
},
{
"name": "ncdEffDate",
"value": "17062022"
},
{
"name": "ncdExpDate",
"value": "16062023"
},
{
"name": "nextNCD",
"value": "0.25"
},
{
"name": "nextNcdEffDate",
"value": "17062023"
},
{
"name": "nvic",
"value": "53A17F"
},
{
"name": "polExpDate",
"value": "16062023"
},
{
"name": "preInsCode",
"value": "247"
},
{
"name": "seatingCapacity",
"value": "2"
},
{
"name": "vehicleVariant",
"value": "NS200 6 SPEED MANUAL"
},
{
"name": "vehClass",
"value": "01"
},
{
"name": "vehRegNo",
"value": "VAV7493"
},
{
"name": "vehUse",
"value": "11"
},
{
"name": "yearMake",
"value": "2017"
}
]
},
"detailedQuotation": [
{
"rateName": "CoverPremium",
"quotedAmount": "0"
},
{
"rateName": "AllRiderPremium",
"quotedAmount": "0"
},
{
"rateName": "BAPA",
"quotedAmount": "303.89"
},
{
"rateName": "NCD",
"quotedAmount": "75.97"
},
{
"rateName": "ExtendPremium",
"quotedAmount": "0"
},
{
"rateName": "EXTRABFTS",
"quotedAmount": "0"
},
{
"rateName": "EXTRACOVER",
"quotedAmount": "0"
},
{
"rateName": "Premium",
"quotedAmount": "0"
},
{
"rateName": "GSTDiscountAmount",
"quotedAmount": "0"
},
{
"rateName": "GSTPerc",
"quotedAmount": "0"
},
{
"rateName": "GSTAmount",
"quotedAmount": "0"
},
{
"rateName": "SD_ME",
"quotedAmount": "10"
},
{
"rateName": "TOTAL",
"quotedAmount": "227.44"
},
{
"rateName": "TotalAmountPayable",
"quotedAmount": "227.44"
},
{
"rateName": "SchedulePremium",
"quotedAmount": "0"
},
{
"rateName": "ONLINEDISCPERC",
"quotedAmount": "10.0"
},
{
"rateName": "TotalDiscountAmount",
"quotedAmount": "22.79"
},
{
"rateName": "PremiumAfterDiscount",
"quotedAmount": "205.13"
},
{
"rateName": "TrailerPremium",
"quotedAmount": "0"
},
{
"rateName": "TotalExtraCoverPremium",
"quotedAmount": "0"
},
{
"rateName": "NoClaimDiscount",
"quotedAmount": "0"
},
{
"rateName": "GROSS",
"quotedAmount": "227.92"
},
{
"rateName": "LOAD",
"quotedAmount": "0"
},
{
"rateName": "SST",
"quotedAmount": "12.31"
},
{
"rateName": "SSTPerc",
"quotedAmount": "6.0"
},
{
"rateName": "EXCESS",
"quotedAmount": "150"
},
{
"rateName": "NCDPerc",
"quotedAmount": "25.0"
},
{
"rateName": "TOTALEXTRAS",
"quotedAmount": "0"
}
],
"optionalBenefits": [],
"customerInformation": [],
"purchaserInformation": null,
"additionalInformation": [],
"eligibleForPayd": false,
"loyaltyEnabled": false,
"loyalty": null,
"checkPromoCodeResponse": null,
"eligibleForSpecialRewards": null
},
"code": 200
}
Quote details API is used to fetch complete details for a specific (selected) product plan. We will get following details from get quote API.
- Quote ID
- Quoted amount
- Vehicle details
- Detailed quoation – This section have the quotation details like basic premium, GST details, discount amounts, total amount to pay, etc.
Method:GET
Query parameters:
PARAMETER | TYPE |
---|---|
productCode | String |
planCode | String |
quoteId | String |
locale | String |
Update Quote (with Customer details) API:
Request:
{
"productCode": "MOTORCYCLE",
"quoteId": "1676622370961869",
"selectedPlanCode": "Choice",
"quotedAmount": "227.44",
"optionalBenefits": [],
"customerInformation": [
{
"name": "nationality",
"value": "MYS"
},
{
"name": "documentID",
"value": "871127-38-5256"
},
{
"name": "mobileNumber",
"value": "601126487155"
},
{
"name": "dob",
"value": "1987/11/27"
},
{
"name": "emailAddress",
"value": "[email protected]"
},
{
"name": "gender",
"value": "Female"
},
{
"name": "documentType",
"value": "nric"
},
{
"name": "fullName",
"value": "SANTHOSH GADDAM"
}
],
"purchaserInformation": [],
"additionalInformation": [],
"quoteItems1": [],
"quoteItems2": []
}
Response:
{
"success": true,
"messages": " Update success. ",
"data": {
"productCode": "MOTORCYCLE",
"quoteId": "1676622370961869",
"selectedPlanCode": "Choice",
"selectedPlanDisplayName": "Option 2",
"quotedAmount": "227.44",
"totalNumberOfPersons": 0,
"totalNumberOfAdditionalDrivers": 0,
"userInformationDTO": {
"parameters": [
{
"name": "category",
"value": "MOT"
},
{
"name": "chassisNo",
"value": "PMNRS200NHML00499"
},
{
"name": "coverType",
"value": "3"
},
{
"name": "curNCD",
"value": "0.25"
},
{
"name": "engineCapacity",
"value": "200"
},
{
"name": "engineNo",
"value": "JLYCHD65199"
},
{
"name": "make",
"value": "MODENAS"
},
{
"name": "makeCode",
"value": "82"
},
{
"name": "marketValue",
"value": "6100.0"
},
{
"name": "model",
"value": "PULSAR"
},
{
"name": "modelCode",
"value": "21"
},
{
"name": "ncdEffDate",
"value": "17062022"
},
{
"name": "ncdExpDate",
"value": "16062023"
},
{
"name": "nextNCD",
"value": "0.25"
},
{
"name": "nextNcdEffDate",
"value": "17062023"
},
{
"name": "nvic",
"value": "53A17F"
},
{
"name": "polExpDate",
"value": "16062023"
},
{
"name": "preInsCode",
"value": "247"
},
{
"name": "seatingCapacity",
"value": "2"
},
{
"name": "vehicleVariant",
"value": "NS200 6 SPEED MANUAL"
},
{
"name": "vehClass",
"value": "01"
},
{
"name": "vehRegNo",
"value": "VAV7493"
},
{
"name": "vehUse",
"value": "11"
},
{
"name": "yearMake",
"value": "2017"
}
]
},
"detailedQuotation": [
{
"rateName": "CoverPremium",
"quotedAmount": "0"
},
{
"rateName": "AllRiderPremium",
"quotedAmount": "0"
},
{
"rateName": "BAPA",
"quotedAmount": "303.89"
},
{
"rateName": "NCD",
"quotedAmount": "75.97"
},
{
"rateName": "ExtendPremium",
"quotedAmount": "0"
},
{
"rateName": "EXTRABFTS",
"quotedAmount": "0"
},
{
"rateName": "EXTRACOVER",
"quotedAmount": "0"
},
{
"rateName": "Premium",
"quotedAmount": "0"
},
{
"rateName": "GSTDiscountAmount",
"quotedAmount": "0"
},
{
"rateName": "GSTPerc",
"quotedAmount": "0"
},
{
"rateName": "GSTAmount",
"quotedAmount": "0"
},
{
"rateName": "SD_ME",
"quotedAmount": "10"
},
{
"rateName": "TOTAL",
"quotedAmount": "227.44"
},
{
"rateName": "TotalAmountPayable",
"quotedAmount": "227.44"
},
{
"rateName": "SchedulePremium",
"quotedAmount": "0"
},
{
"rateName": "ONLINEDISCPERC",
"quotedAmount": "10.0"
},
{
"rateName": "TotalDiscountAmount",
"quotedAmount": "22.79"
},
{
"rateName": "PremiumAfterDiscount",
"quotedAmount": "205.13"
},
{
"rateName": "TrailerPremium",
"quotedAmount": "0"
},
{
"rateName": "TotalExtraCoverPremium",
"quotedAmount": "0"
},
{
"rateName": "NoClaimDiscount",
"quotedAmount": "0"
},
{
"rateName": "GROSS",
"quotedAmount": "227.92"
},
{
"rateName": "LOAD",
"quotedAmount": "0"
},
{
"rateName": "SST",
"quotedAmount": "12.31"
},
{
"rateName": "SSTPerc",
"quotedAmount": "6.0"
},
{
"rateName": "EXCESS",
"quotedAmount": "150"
},
{
"rateName": "NCDPerc",
"quotedAmount": "25.0"
},
{
"rateName": "TOTALEXTRAS",
"quotedAmount": "0"
}
],
"optionalBenefits": [],
"customerInformation": [
{
"name": "nationality",
"value": "MYS"
},
{
"name": "documentID",
"value": "871127-38-5256"
},
{
"name": "mobileNumber",
"value": "601126487155"
},
{
"name": "dob",
"value": "1987/11/27"
},
{
"name": "emailAddress",
"value": "[email protected]"
},
{
"name": "gender",
"value": "Female"
},
{
"name": "documentType",
"value": "nric"
},
{
"name": "fullName",
"value": "SANTHOSH GADDAM"
}
],
"purchaserInformation": [],
"additionalInformation": [],
"eligibleForPayd": false,
"loyaltyEnabled": true,
"loyalty": {
"eligibleForLoyalty": false,
"loyaltyId": null,
"pointsTobeEarned": 205,
"emailAddres": "[email protected]"
},
"checkPromoCodeResponse": null,
"eligibleForSpecialRewards": false
},
"code": 200
}
Update quote API is used to update customer details, additonal information and other details like accept terms and conditions. This API can be used multiple times to update customer and other details for a quote ID.
Request URL: https://apiuat.tuneprotect.com/d2c/1.0/products/updatequote?locale=en_us
Method:POST
Query and body parameters in request:
PARAMETER | TYPE |
---|---|
locale | String |
productCode | String |
quoteId | String |
selectedPlanCode | String |
quotedAmount | String |
customerInformation | Array |
nationality | String |
documentID | String |
mobileNumber | String |
dob | String |
emailAddress | String |
gender | String |
documentType | String |
fullName | String |
purchaserInformation | Array (IF purchasing for others) |
nationality | String |
documentID | String |
mobileNumber | String |
dob | String |
emailAddress | String |
gender | String |
documentType | String |
fullName | String |
Update Quote (with Additional Information) API:
Request:
{
"productCode": "MOTORCYCLE",
"quoteId": "1676622370961869",
"selectedPlanCode": "Choice",
"quotedAmount": "236.98",
"optionalBenefits": [
{
"benefit": "specialPerilsInclusion",
"sumInsured": 0,
"benefitId": 81
},
{
"benefit": "indonesiaCoverExtension",
"sumInsured": 0,
"benefitId": 83
}
],
"customerInformation": [
{
"name": "nationality",
"value": "MYS"
},
{
"name": "documentID",
"value": "871127-38-5256"
},
{
"name": "mobileNumber",
"value": "601126487155"
},
{
"name": "dob",
"value": "1987/11/27"
},
{
"name": "emailAddress",
"value": "[email protected]"
},
{
"name": "gender",
"value": "Female"
},
{
"name": "documentType",
"value": "nric"
},
{
"name": "fullName",
"value": "SANTHOSH GADDAM"
}
],
"purchaserInformation": [],
"additionalInformation": [],
"quoteItems1": [],
"quoteItems2": []
}
Response:
{
"success": true,
"messages": " Update success. ",
"data": {
"productCode": "MOTORCYCLE",
"quoteId": "1676622370961869",
"selectedPlanCode": "Choice",
"selectedPlanDisplayName": "Option 2",
"quotedAmount": "645.53",
"totalNumberOfPersons": 0,
"totalNumberOfAdditionalDrivers": 0,
"userInformationDTO": {
"parameters": [
{
"name": "category",
"value": "MOT"
},
{
"name": "chassisNo",
"value": "PMNRS200NHML00499"
},
{
"name": "coverType",
"value": "3"
},
{
"name": "curNCD",
"value": "0.25"
},
{
"name": "engineCapacity",
"value": "200"
},
{
"name": "engineNo",
"value": "JLYCHD65199"
},
{
"name": "make",
"value": "MODENAS"
},
{
"name": "makeCode",
"value": "82"
},
{
"name": "marketValue",
"value": "6100.0"
},
{
"name": "model",
"value": "PULSAR"
},
{
"name": "modelCode",
"value": "21"
},
{
"name": "ncdEffDate",
"value": "17062022"
},
{
"name": "ncdExpDate",
"value": "16062023"
},
{
"name": "nextNCD",
"value": "0.25"
},
{
"name": "nextNcdEffDate",
"value": "17062023"
},
{
"name": "nvic",
"value": "53A17F"
},
{
"name": "polExpDate",
"value": "16062023"
},
{
"name": "preInsCode",
"value": "247"
},
{
"name": "seatingCapacity",
"value": "2"
},
{
"name": "vehicleVariant",
"value": "NS200 6 SPEED MANUAL"
},
{
"name": "vehClass",
"value": "01"
},
{
"name": "vehRegNo",
"value": "VAV7493"
},
{
"name": "vehUse",
"value": "11"
},
{
"name": "yearMake",
"value": "2017"
}
]
},
"detailedQuotation": [
{
"rateName": "CoverPremium",
"quotedAmount": "0"
},
{
"rateName": "AllRiderPremium",
"quotedAmount": "0"
},
{
"rateName": "BAPA",
"quotedAmount": "303.89"
},
{
"rateName": "NCD",
"quotedAmount": "75.97"
},
{
"rateName": "ExtendPremium",
"quotedAmount": "0"
},
{
"rateName": "EXTRABFTS",
"quotedAmount": "438.26"
},
{
"rateName": "EXTRACOVER",
"quotedAmount": "0"
},
{
"rateName": "Premium",
"quotedAmount": "0"
},
{
"rateName": "GSTDiscountAmount",
"quotedAmount": "0"
},
{
"rateName": "GSTPerc",
"quotedAmount": "0"
},
{
"rateName": "GSTAmount",
"quotedAmount": "0"
},
{
"rateName": "SD_ME",
"quotedAmount": "10"
},
{
"rateName": "TOTAL",
"quotedAmount": "645.53"
},
{
"rateName": "TotalAmountPayable",
"quotedAmount": "645.53"
},
{
"rateName": "SchedulePremium",
"quotedAmount": "0"
},
{
"rateName": "ONLINEDISCPERC",
"quotedAmount": "10.0"
},
{
"rateName": "TotalDiscountAmount",
"quotedAmount": "66.62"
},
{
"rateName": "PremiumAfterDiscount",
"quotedAmount": "599.56"
},
{
"rateName": "TrailerPremium",
"quotedAmount": "0"
},
{
"rateName": "TotalExtraCoverPremium",
"quotedAmount": "0"
},
{
"rateName": "NoClaimDiscount",
"quotedAmount": "0"
},
{
"rateName": "GROSS",
"quotedAmount": "666.18"
},
{
"rateName": "LOAD",
"quotedAmount": "0"
},
{
"rateName": "SST",
"quotedAmount": "35.97"
},
{
"rateName": "SSTPerc",
"quotedAmount": "6.0"
},
{
"rateName": "EXCESS",
"quotedAmount": "150"
},
{
"rateName": "NCDPerc",
"quotedAmount": "25.0"
},
{
"rateName": "TOTALEXTRAS",
"quotedAmount": "438.26"
},
{
"rateName": "specialPerilsInclusion",
"quotedAmount": "10"
},
{
"rateName": "indonesiaCoverExtension",
"quotedAmount": "428.2560"
}
],
"optionalBenefits": [
{
"benefit": "specialPerilsInclusion",
"sumInsured": 0,
"applicableAmount": 10
},
{
"benefit": "indonesiaCoverExtension",
"sumInsured": 0,
"applicableAmount": 428.256
}
],
"customerInformation": [
{
"name": "nationality",
"value": "MYS"
},
{
"name": "documentID",
"value": "871127-38-5256"
},
{
"name": "mobileNumber",
"value": "601126487155"
},
{
"name": "dob",
"value": "1987/11/27"
},
{
"name": "emailAddress",
"value": "[email protected]"
},
{
"name": "gender",
"value": "Female"
},
{
"name": "documentType",
"value": "nric"
},
{
"name": "fullName",
"value": "SANTHOSH GADDAM"
}
],
"purchaserInformation": [],
"additionalInformation": [],
"eligibleForPayd": false,
"loyaltyEnabled": true,
"loyalty": {
"eligibleForLoyalty": false,
"loyaltyId": null,
"pointsTobeEarned": 599,
"emailAddres": "[email protected]"
},
"checkPromoCodeResponse": null,
"eligibleForSpecialRewards": false
},
"code": 200
}
Update quote API is used to update customer details, additonal information and other details like accept terms and conditions. This API can be triggered multiple times to update customer and other details for a purchase.
Request URL: https://apiuat.tuneprotect.com/d2c/1.0/products/updatequote?locale=en_us
Method:POST
Query and body parameters in request:
PARAMETER | TYPE |
---|---|
locale | String |
productCode | String |
quoteId | String |
selectedPlanCode | String |
quotedAmount | String |
optionalBenefits | Array |
benefit | String |
sumInsured | Double |
AdditionalInformation | Array |
additionalDrivers | String |
CustomerInformation | Array |
nationality | String |
documentID | String |
mobileNumber | String |
dob | String |
emailAddress | String |
gender | String |
documentType | String |
fullName | String |
State | String |
city | String |
postalCode | String |
addressLine1 | String |
addressLine2 | String |
purchaserInformation | Array (If purchasing for others) |
nationality | String |
documentID | String |
mobileNumber | String |
dob | String |
emailAddress | String |
gender | String |
documentType | String |
fullName | String |
State | String |
city | String |
postalCode | String |
addressLine1 | String |
addressLine2 | String |
Update Quote (with acceptTerms ‘1’ and agreeDeclaration with ‘1’ or ‘0’) API:
Request:
{
"productCode": "MOTORCYCLE",
"quoteId": "1676622370961869",
"selectedPlanCode": "Choice",
"quotedAmount": "645.53",
"optionalBenefits": [
{
"applicableAmount": 0,
"benefit": "specialPerilsInclusion",
"benefitId": 81,
"sumInsured": 0
},
{
"applicableAmount": 0,
"benefit": "indonesiaCoverExtension",
"benefitId": 83,
"sumInsured": 0
}
],
"customerInformation": [
{
"name": "State",
"value": "Kedah"
},
{
"name": "city",
"value": "SIRCILLA"
},
{
"name": "postalCode",
"value": "23423"
},
{
"name": "addressLine2",
"value": "sdfasd"
},
{
"name": "addressLine1",
"value": "ashok nagar, sdfasd"
},
{
"name": "fullName",
"value": "SANTHOSH GADDAM"
},
{
"name": "documentType",
"value": "nric"
},
{
"name": "gender",
"value": "Female"
},
{
"name": "emailAddress",
"value": "[email protected]"
},
{
"name": "dob",
"value": "1987/11/27"
},
{
"name": "mobileNumber",
"value": "601126487155"
},
{
"name": "documentID",
"value": "871127-38-5256"
},
{
"name": "nationality",
"value": "MYS"
}
],
"purchaserInformation": [],
"additionalInformation": [
{
"name": "additionalDrivers",
"value": "{}"
}
],
"quoteItems1": [],
"quoteItems2": [],
"acceptTerms": "1",
"agreeDeclaration": "1",
"globalDeclaration": []
}
Response:
{
"success": true,
"messages": " Update success. ",
"data": {
"productCode": "MOTORCYCLE",
"quoteId": "1676622370961869",
"selectedPlanCode": "Choice",
"selectedPlanDisplayName": "Option 2",
"quotedAmount": "645.53",
"totalNumberOfPersons": 0,
"totalNumberOfAdditionalDrivers": 0,
"userInformationDTO": {
"parameters": [
{
"name": "category",
"value": "MOT"
},
{
"name": "chassisNo",
"value": "PMNRS200NHML00499"
},
{
"name": "coverType",
"value": "3"
},
{
"name": "curNCD",
"value": "0.25"
},
{
"name": "engineCapacity",
"value": "200"
},
{
"name": "engineNo",
"value": "JLYCHD65199"
},
{
"name": "make",
"value": "MODENAS"
},
{
"name": "makeCode",
"value": "82"
},
{
"name": "marketValue",
"value": "6100.0"
},
{
"name": "model",
"value": "PULSAR"
},
{
"name": "modelCode",
"value": "21"
},
{
"name": "ncdEffDate",
"value": "17062022"
},
{
"name": "ncdExpDate",
"value": "16062023"
},
{
"name": "nextNCD",
"value": "0.25"
},
{
"name": "nextNcdEffDate",
"value": "17062023"
},
{
"name": "nvic",
"value": "53A17F"
},
{
"name": "polExpDate",
"value": "16062023"
},
{
"name": "preInsCode",
"value": "247"
},
{
"name": "seatingCapacity",
"value": "2"
},
{
"name": "vehicleVariant",
"value": "NS200 6 SPEED MANUAL"
},
{
"name": "vehClass",
"value": "01"
},
{
"name": "vehRegNo",
"value": "VAV7493"
},
{
"name": "vehUse",
"value": "11"
},
{
"name": "yearMake",
"value": "2017"
}
]
},
"detailedQuotation": [
{
"rateName": "CoverPremium",
"quotedAmount": "0"
},
{
"rateName": "AllRiderPremium",
"quotedAmount": "0"
},
{
"rateName": "BAPA",
"quotedAmount": "303.89"
},
{
"rateName": "NCD",
"quotedAmount": "75.97"
},
{
"rateName": "ExtendPremium",
"quotedAmount": "0"
},
{
"rateName": "EXTRABFTS",
"quotedAmount": "438.26"
},
{
"rateName": "EXTRACOVER",
"quotedAmount": "0"
},
{
"rateName": "Premium",
"quotedAmount": "0"
},
{
"rateName": "GSTDiscountAmount",
"quotedAmount": "0"
},
{
"rateName": "GSTPerc",
"quotedAmount": "0"
},
{
"rateName": "GSTAmount",
"quotedAmount": "0"
},
{
"rateName": "SD_ME",
"quotedAmount": "10"
},
{
"rateName": "TOTAL",
"quotedAmount": "645.53"
},
{
"rateName": "TotalAmountPayable",
"quotedAmount": "645.53"
},
{
"rateName": "SchedulePremium",
"quotedAmount": "0"
},
{
"rateName": "ONLINEDISCPERC",
"quotedAmount": "10.0"
},
{
"rateName": "TotalDiscountAmount",
"quotedAmount": "66.62"
},
{
"rateName": "PremiumAfterDiscount",
"quotedAmount": "599.56"
},
{
"rateName": "TrailerPremium",
"quotedAmount": "0"
},
{
"rateName": "TotalExtraCoverPremium",
"quotedAmount": "0"
},
{
"rateName": "NoClaimDiscount",
"quotedAmount": "0"
},
{
"rateName": "GROSS",
"quotedAmount": "666.18"
},
{
"rateName": "LOAD",
"quotedAmount": "0"
},
{
"rateName": "SST",
"quotedAmount": "35.97"
},
{
"rateName": "SSTPerc",
"quotedAmount": "6.0"
},
{
"rateName": "EXCESS",
"quotedAmount": "150"
},
{
"rateName": "NCDPerc",
"quotedAmount": "25.0"
},
{
"rateName": "TOTALEXTRAS",
"quotedAmount": "438.26"
},
{
"rateName": "specialPerilsInclusion",
"quotedAmount": "10"
},
{
"rateName": "indonesiaCoverExtension",
"quotedAmount": "428.2560"
}
],
"optionalBenefits": [
{
"benefit": "specialPerilsInclusion",
"sumInsured": 0,
"applicableAmount": 10
},
{
"benefit": "indonesiaCoverExtension",
"sumInsured": 0,
"applicableAmount": 428.256
}
],
"customerInformation": [
{
"name": "State",
"value": "Kedah"
},
{
"name": "city",
"value": "SIRCILLA"
},
{
"name": "postalCode",
"value": "23423"
},
{
"name": "addressLine2",
"value": "sdfasd"
},
{
"name": "addressLine1",
"value": "ashok nagar, sdfasd"
},
{
"name": "fullName",
"value": "SANTHOSH GADDAM"
},
{
"name": "documentType",
"value": "nric"
},
{
"name": "gender",
"value": "Female"
},
{
"name": "emailAddress",
"value": "[email protected]"
},
{
"name": "dob",
"value": "1987/11/27"
},
{
"name": "mobileNumber",
"value": "601126487155"
},
{
"name": "documentID",
"value": "871127-38-5256"
},
{
"name": "nationality",
"value": "MYS"
}
],
"purchaserInformation": [],
"additionalInformation": [
{
"name": "additionalDrivers",
"value": "{}"
}
],
"eligibleForPayd": false,
"loyaltyEnabled": true,
"loyalty": {
"eligibleForLoyalty": false,
"loyaltyId": null,
"pointsTobeEarned": 599,
"emailAddres": "[email protected]"
},
"checkPromoCodeResponse": null,
"eligibleForSpecialRewards": false
},
"code": 200
}
Update quote API is used to update customer details, additonal information and other details like accept terms and conditions.
Request URL: https://apiuat.tuneprotect.com/d2c/1.0/products/updatequote?locale=en_us
Method:POST
Query and body parameters in request:
PARAMETER | TYPE |
---|---|
locale | String |
productCode | String |
quoteId | String |
selectedPlanCode | String |
quotedAmount | String |
acceptTerms | String |
agreeDeclaration | String |
optionalBenefits | Array |
benefit | String |
sumInsured | Double |
AdditionalInformation | Array |
additionalDrivers | String |
CustomerInformation | Array |
nationality | String |
documentID | String |
mobileNumber | String |
dob | String |
emailAddress | String |
gender | String |
documentType | String |
fullName | String |
State | String |
city | String |
postalCode | String |
addressLine1 | String |
addressLine2 | String |
purchaserInformation | Array (If purchasing for others) |
nationality | String |
documentID | String |
mobileNumber | String |
dob | String |
emailAddress | String |
gender | String |
documentType | String |
fullName | String |
State | String |
city | String |
postalCode | String |
addressLine1 | String |
addressLine2 | String |
INIT Transaction API:
Request:
{
"productCode": "MOTORCYCLE",
"quoteId": "1676622370961869",
"quotedAmount": "645.53",
"paymentMethodType": 1,
"paymentMode": 2,
"promoCode": "",
"loyaltySelected": 0,
"currency": "MYR",
"returnUrl": "https://tpmrsuat.tuneprotect.com/paymentStatus/"
}
Response:
{
"transactionId": "BC00015290",
"quotedAmount": "645.53",
"status": "INITIATED",
"customerId": "",
"paymentPasswordEncrypted": "w9x5PnY1U5jWt9wsvTmOudTc3lE4P4/j",
"paymentFailureCallbackUrl": null,
"monthlyQuotedAmount": 0,
"paymentDetails": [
{
"param": "callBackUrl",
"value": "https://tpmrsuat.tuneprotect.com/rocketship/eghl/v1/callback"
},
{
"param": "merchantID",
"value": "null"
},
{
"param": "invoiceNo",
"value": "BC00015290"
},
{
"param": "description",
"value": "Payment token request for transaction BC00015290"
},
{
"param": "amount",
"value": "645.53"
},
{
"param": "currencyCode",
"value": "MYR"
}
],
"token": null
}
Transaction API is used to initiate transaction before calling payment gateway for purchase. Initiate transaction API will create a transaction ID for the transaction and will return it. This transaction ID need to be used in the final create policy API after payment success/failed status.
Request URL: https://apiuat.tuneprotect.com/d2c/1.0/products/transactions?locale=en_us Method:POST
Query and request body parameters:
PARAMETER | TYPE |
---|---|
locale | String |
productCode | String |
quoteId | String |
paymentMethodType | String |
paymentMode | String |
quotedAmount | String |
loyaltySelected | Integer |
currency | String |
returnUrl | String |
Create Policy
Request:
{
"productCode": "MOTORCYCLE",
"quoteId": "1676622370961869",
"quotedAmount": "645.53",
"currencyCode": "MYR",
"status": "0",
"authorizationCode": "TIS000",
"gatewayId": "eghl",
"referenceCode": "TIS0000000000BC00003672",
"customerId": "",
"paymentMethod": "1",
"token": ""
}
Response
{
"success": true,
"messages": "SUCCESS",
"data": {
"quoteId": null,
"policy": {
"policyStatus": "CONFIRMED",
"policyNumber": "6551123B2CA4074",
"policyCreationDateTime": 1676622953099,
"effectiveDate": 1686931200000,
"policyUrl": null,
"expiryDate": 1718467200000,
"forSelf": true
},
"transactionId": "BC00015290",
"adaptorCustomerId": null,
"policyHolder": {
"fullName": "SANTHOSH GADDAM",
"mobileNumber": 601126487155,
"emailAddress": "[email protected]",
"nationality": "MYS",
"dob": 564940800000,
"gender": null,
"addressLine1": null,
"addressLine2": null,
"state": null,
"city": null,
"postalCode": null,
"documentID": "871127-38-5256",
"documentType": "nric"
},
"paxesPolicies": [],
"loyalty": null,
"applyPromoCodeResponse": null,
"eligibleForSpecialRewards": null,
"status": "POLICY_GENERATED",
"userExists": false
},
"code": 200
}
After a payment success, you can trigger the create policy API for creating policy for customer. This API returns policy/certificate number, policy expiry date and other policy details.
Request URL: https://apiuat.tuneprotect.com/d2c/1.0/products/transactions/BC00013875/status?locale=en_us
Method:POST
Query and request body parameters:
PARAMETER | TYPE |
---|---|
locale | String |
productCode | String |
quoteId | String |
paymentMethod | String |
quotedAmount | String |
status | Integer |
currencyCode | String |
authorizationCode | String |
gatewayId | String |
referenceCode | String |
customerId | String |
paymentMethod | String |
token | String |
Product Attributes
Motor
SNO | PAGE | PARAMETER | Keys | TYPE | Options | Values |
---|---|---|---|---|---|---|
1 | Quotedetails | Are you Malaysian | nationalityCheck | Radio Button | Yes/No | 1/0 |
2 | Vehicle Registration Number | vehicleNumber | String | |||
3 | Place of use | location | Dropdown | Malaysia states list | Please refer County&State Keys Motor states List | |
4 | NRIC | nric | Numeric | |||
5 | New Passport Number | newPassport | Text | |||
6 | Old Passport number | oldPassport | Text | |||
7 | Date of Birth | dob | Date | |||
8 | Gender | gender | Radio Button | Male/Female | M/F | |
9 | Profile | Are you purchasing for yourself? | isForSelf | Radio Button | Yes/No | true/ false |
10 | Profile Insurer details | Full Name | fullName | String | ||
11 | Document Type | documentType | Radio Button | NRIC/Passport | nric/ Passport | |
12 | NRIC | nric | Numeric(12) | |||
13 | Passport | passport | AlphaNumeric(10) | |||
14 | nationalityNric | nationalityNric | Please refer County&State Keys Nationality table | |||
15 | nationalityPassport | nationalityPassport | ||||
16 | Date Of Birth | dob | Date | |||
17 | Mobile number | mobileNumber | Numeric(9-11) | |||
18 | String | |||||
19 | Purchaser details (Logged in User) | Full Name | fullNameP | String | ||
20 | Document Type | documentTypeP | Radio Button | NRIC/Passport/Other | nric/ Passport/ Other | |
21 | NRIC | nricP | Numeric(12) | |||
22 | Passport | passportP | AlphaNumeric(10) | |||
23 | Others | otherP | AlphaNumeric(10) | |||
24 | nationalityNric | nationalityNricP | Please refer County&State Keys Nationality table | |||
25 | nationalityPassport | nationalityPassportP | ||||
26 | nationality | nationalityP | ||||
27 | Date of birth | dobP | Date | |||
28 | Mobile number | mobileNumberP | Numeric(9-11) | |||
29 | emailP | String | ||||
30 | Additional Coverage | PAYD | benefit: "PAYDOPTION" benefitId: "payd" sumInsured: 0 | Toggle Button | ||
31 | Wind Screen | benefit: "windScreen" benefitId: 71 sumInsured: "1500" | Toggle Button | 500/1000/1500/2000/2500/3000/3500/4000/4500/5000 | ||
32 | Spray Painting | benefit: "sprayPainting" benefitId: 32 sumInsured: 1000 | Toggle Button | 1000/2000/3000/4000 | ||
33 | Inconvenience Allowance | benefit: "inconvenienceAllowance" benefitId: 33 sumInsured: "150" | Toggle Button | 50/100/150/200 | ||
34 | Ride Easy | benefit: "rideEasy" benefitId: 69 sumInsured: "30000" | Toggle Button | 20000/30000 | ||
35 | Legal Liability To Passengers | benefit: "llp" benefitId: 35 sumInsured: 0 | Toggle Button | |||
36 | Strike, Riot & Civil Commotion | benefit: "src" benefitId: 76 sumInsured: 0 | Toggle Button | |||
37 | Inclusion of special Perils | benefit: "specialPerils" benefitId: 65 sumInsured: 0 | Toggle Button | |||
38 | Legal Liability Of Passengers | benefit: "llop" benefitId: 67 sumInsured: 0 | Toggle Button | |||
39 | Address details | Address Line 1 | addressLine1 | |||
40 | Address Line 2 | addressLine2 | ||||
41 | State | State Default | Auto Populate the value from Quote page | |||
42 | City | city | String | |||
43 | Post code | postalCode | Numeric(5) | |||
44 | Additional drivers (Multiple Drivers) | Driver's Name | name | String | ||
45 | Driver's Age | age | Dropdown | 17 to 99 | ||
46 | Summary | Promo Code | promoCode | String | ||
47 | BigRewards | loyaltySelected | CheckBox | 1/0 | ||
48 | Terms & Conditions | acceptTerms | Radio Button | Agree | 1 | |
49 | Disclosure Statement | agreeDeclaration | Radio Button | Agree/DisAgree | 1/0 | |
50 | Payment Method | paymentMethodType | Dropdown | 1. Credit Card/Debit Card 2. Online Banking 1 or 2 |
Home
SNO | PAGE | PARAMETER | Keys | TYPE | Options | Values |
---|---|---|---|---|---|---|
1 | Quote | BuildingType | build ingType | RadioButton | Landed/Non-Landed Landed/ Non Landed | |
2 | Building Info | ownProperty | RadioButton | Owner/Tenant | Yes/No | |
3 | Property Coverage | coverageType | RadioButton | For my building/ For my home contents | HouseOwner/HouseHolder/HouseOwnerHouseHolder | |
4 | Building Material | buildingMaterial | RadioButton | Brick wall-metal or concrete roof/Partial Brick- Atap or Wooden Roof | 1/0 | |
5 | Housing Loan | bankLoan | RadioButton | Bank Mortgage/Fully Paid Up | 1/0 | |
6 | how much would you like to insure your house for? (rm) | sumInsured | Numeric | |||
7 | how much would you like to insure your contents for (rm) | sumInsuredHH | Dropdown | 25000/40000/50000 | 25000/40000/50000 | |
8 | Plan page Add-on's HO | Personal Liability | personalLiability | Check box | Yes/No | |
9 | Riot, Strike and Malicious Damage | riotStrike&MaliciousDamageHO | Check box | Yes/No | ||
10 | Subsidence and landslip | subsidence&LandslipHO | Check box | Yes/No | ||
11 | Plate Glass | plateGlassHO | Check box | Yes/No | ||
12 | Plan page Add-on's HH | Personal Liability | personalLiability | Check box | Yes/No | |
13 | Riot, Strike and Malicious Damage | riotStrike&MaliciousDamageHH | Check box | Yes/No | ||
14 | Subsidence and landslip | subsidence&LandslipHH | Check box | Yes/No | ||
15 | Plan page Add-on's HOHH | Personal Liability | personalLiability | Check box | Yes/No | |
16 | Riot, Strike and Malicious Damage | riotStrike&MaliciousDamageHOHH | Check box | Yes/No | ||
17 | Subsidence and landslip | subsidence&LandslipHOHH | Check box | Yes/No | ||
18 | Plate Glass | plateGlassHOHH | Check box | Yes/No | ||
19 | Benefits | Landlord Insurance Pack | landlordInsuraceRental | Toggle Button | Yes/No | |
20 | Mortgage loan protection pack | mortageLoanInstallementPack | Toggle Button | Yes/No | ||
21 | Smart Home Devices Protection Pack | smartHomeDevicePack | Toggle Button | Yes/No | ||
22 | Home Care Pack | homeCarePack | Toggle Button | Yes/No | ||
23 | Underwriter | Underwriter qn1 | underwriterQn1 | RadioButton | Yes/No | 1/0 |
24 | Underwriter qn2 | underwriterQn2 | RadioButton | Yes/No | 1/0 | |
25 | Underwriter qn3 | underwriterQn3 | RadioButton | Yes/No | 1/0 | |
26 | Property Details | Policy Start Date | policyStartDate | Date | ||
27 | Policy End Date | policyStartDate | Date | |||
28 | Address Line 1 | propertyHomeAddress1 | String | |||
29 | Address Line 2 | propertyHomeAddress2 | String | |||
30 | Country | propertyCountry | Dropdown | Default to Malaysia | ||
31 | State | propertyHomeState | Dropdown | Please refer County&State Keys Address states List Table | ||
32 | Post code | propertyPostalCode | Numeric(5) | |||
33 | Name of Bank | financialInterest | Dropdown | |||
34 | Loan Account Number | loanReferenceNumber | String | |||
35 | Profile : Insurer details | Full Name | fullName | String | ||
36 | Document Type | documentType | Radio Button | NRIC/Passport/Other | nric/ Passport/ Other | |
37 | NRIC | nric | Numeric(12) | |||
38 | Passport | passport | AlphaNumeric(10) | |||
39 | Others | other | AlphaNumeric(10) | |||
40 | nationalityNric | nationalityNric | Please refer County&State Keys Nationality table | |||
41 | nationalityPassport | nationalityPassport | ||||
42 | nationality | nationality | ||||
43 | Date Of Birth | dob | Date | |||
44 | Mobile number | mobileNumber | Numeric(9-11) | |||
45 | String | |||||
46 | are you living in your property address? | livingInPropertyAddress | Radio Button | Yes/No | true/false | |
47 | Home Address | Address Line 1 | addressLine1 | String | ||
48 | Address Line 2 | addressLine2 | String | |||
49 | Country | addressCountry | Dropdown | Default to Malaysia | MYS | |
50 | State | addressState | Dropdown | Please refer County&State Keys Address states List Table | ||
51 | Post code | addressPostalCode | Numeric(5) | |||
52 | are you living in your property address? | isMailingAddressSameHomeAddress | Radio Button | Yes/No | true/false | |
53 | Mailing Address | Address Line 1 | mailingAddressLine1 | String | ||
54 | Address Line 2 | mailingAddressLine2 | String | |||
55 | Country | mailingAddressCountry | Dropdown | Default to Malaysia | MYS | |
56 | State | mailingAddressState | Dropdown | Please refer County&State Keys Address states List Table | ||
57 | Post code | mailingAddressPostalCode | Numeric(5) | |||
58 | Summary | Promo Code | promoCode | String | ||
59 | BigRewards | loyaltySelected | CheckBox | |||
60 | Terms & Conditions | acceptTerms | Radio Button | Agree | 1 | |
61 | Disclosure Statement | agreeDeclaration | Radio Button | Agree/DisAgree | 1/0 | |
62 | Payment Method | paymentMethodType | Dropdown | 1. Credit Card/Debit Card 2. Online Banking 3. Installment (AmBank Credit card Only) 4. Installment (MayBank Credit card Only) 5. Installment (CIMB Credit card Only) 1/ 2/ 3 | ||
63 | Installment Type (If type is Installment) | paymentInstallmentType | Dropdown | If AmBank: a. Ambank 3 Months b. Ambank 6 Months Else if May bank: a. Maybank 6 Months b. May bank Amex 6 Months Else if CIMB a. CIMB 3 Months b. CIMB 6 Months | 1/2/3/4/5/6 |
Pro-Health Medical
SNO | PAGE | PARAMETER | Keys | TYPE | Options | VALUES |
---|---|---|---|---|---|---|
1 | Quote | Are you Malaysian | nationalityCheck | Radio Button | Yes/No | 1/0 |
2 | (Non Malaysian)are you a domestic worker or an ancillary worker? | jobDescription1 | Radio Button | Yes/No | 1/0 | |
3 | Date Of Birth | dob | Date | |||
4 | Underwriter | Height | height | Numeric | ||
5 | Weight | weight | Numeric | |||
6 | Underwriter Qn 1 | underwritingAns1 | Radio Button | Yes/No | 1/0 | |
7 | Underwriter Qn 2 | underwritingAns2 | Radio Button | Yes/No | 1/0 | |
8 | Underwriter Qn 3 | underwritingAns3 | Radio Button | Yes/No | 1/0 | |
9 | Purchaser details | Full Name | fullName | String | ||
10 | Document Type | documentType | Radio Button | NRIC/Passport | nric/ Passport | |
11 | NRIC | nric | Numeric(12) | |||
12 | Passport | passport | AlphaNumeric(10) | |||
13 | nationalityNric | nationalityNric | Please refer County&State Keys Nationality table | |||
14 | nationalityPassport | nationalityPassport | ||||
15 | Date Of Birth | dob | Date | |||
16 | Gender | gender | Radio Button | Male/Female | M/F | |
17 | Mobile number | mobileNumber | Numeric(9-11) | |||
18 | String | |||||
19 | Visa Expiry Date (Non Malaysian) | visaValidity | Date | |||
20 | Passport Expiry Date (Non Malaysian) | passportValidity | Date | |||
21 | Home Address | Address Line 1 | addressLine1 | String | ||
22 | Address Line 2 | addressLine2 | String | |||
23 | Country | addressCountry | Dropdown | Default to Malaysia | MYS | |
24 | State | addressState | Dropdown | Please refer County&State Keys Address states List Table | ||
25 | Post code | addressPostalCode | Numeric(5) | |||
26 | is your mailing address same as your home address? | isMailAddress | Radio Button | Yes/No | true/false | |
27 | Mailing Address | Address Line 1 | mailingAddressLine1 | String | ||
28 | Address Line 2 | mailingAddressLine2 | String | |||
29 | Country | mailingAddressCountry | Dropdown | Default to Malaysia | ||
30 | State | mailingAddressState | Dropdown | Please refer County&State Keys Address states List Table | ||
31 | Post code | mailingAddressPostalCode | Numeric(5) | |||
32 | Summary | Promo Code | promoCode | String | ||
33 | BigRewards | loyaltySelected | CheckBox | |||
34 | Terms & Conditions | acceptTerms | Radio Button | Agree | 1 | |
35 | Disclosure | Statement | agreeDeclaration | Radio Button | Agree/DisAgree | |
36 | Payment Method | paymentMethodType | Dropdown | 1. Credit Card/Debit Card 2. Online Banking 3. Installment (AmBank Credit card Only) 4. Installment (MayBank Credit card Only) 5. Installment (CIMB Credit card Only) | 1/ 2/ 3 | |
37 | Installment Type (If type is Installment) | Dropdown | If AmBank: a. Ambank 3 Months b. Ambank 6 Months Else if May bank: a. Maybank 6 Months b. May bank Amex 6 Months Else if CIMB a. CIMB 3 Months b. CIMB 6 Months | 1/2/3/4/5/6 |
Travel
SNO | PAGE | PARAMETER | Keys | TYPE | Options | Values |
---|---|---|---|---|---|---|
1 | Quote | i am a malaysian citizen/permanent resident or holder of a valid working permit, dependant pass, long term social visit pass or student visa in malaysia | propertyDeclare | Radio Button | Yess/No | 1/0 |
2 | tripType | tripType | Dropdown | 1. One Way Trip 2. Return Trip 3. Annual Trip OneWay/ Annual/ Return | ||
3 | passengerType | passengerType | Dropdown | 1. Individual Trip 2. Family Trip Individual/ Family | ||
4 | destination | destination | Dropdown | Please refer country and area mapping table | ||
5 | i'll be travelling to location | Dropdown | 1. Malaysia (Domestic) 2. Asia Pacific 3. Worldwide (Exc. USA and Canada) 4. Worldwide | |||
6 | Depart Date | departureDate | Date | |||
7 | Return Date | returnDate | Date | |||
8 | I/We are between 56-80 years old | ageCheck | Check box | true/false | ||
9 | Profile : Insurer details | Full Name | fullName | String | ||
10 | Document Type | documentType | Radio Button | NRIC/Passport/Other | nric/ Passport/ Other | |
11 | NRIC | nric | Numeric(12) | |||
12 | Passport | passport | AlphaNumeric(10) | |||
13 | Others | other | AlphaNumeric(10) | |||
14 | nationalityNric | nationalityNric | Please refer County&State Keys Nationality table | |||
15 | nationalityPassport | nationalityPassport | ||||
16 | nationality | nationality | ||||
17 | Date Of Birth | dob | Date | |||
18 | Mobile number | mobileNumber | Numeric(9-11) | |||
19 | String | |||||
20 | Purchaser details (Logged in User) | Full Name | fullNameP | String | ||
21 | Document Type | documentTypeP | Radio Button | NRIC/Passport/Other | nric/ Passport/ Other | |
22 | NRIC | nricP | Numeric(12) | |||
23 | Passport | passportP | AlphaNumeric(10) | |||
24 | Others | otherP | AlphaNumeric(10) | |||
25 | nationalityNric | nationalityNricP | Please refer County&State Keys Nationality table | |||
26 | nationalityPassport | nationalityPassportP | ||||
27 | nationality | nationalityP | ||||
28 | Date of birth | dobP | Date | |||
29 | Mobile number | mobileNumberP | Numeric(9-11) | |||
30 | emailP | String | ||||
31 | Additional Persons (Mutliple) (Will add up to 10 Child+Spouse) | Relationship | relationship | Dropdown | 1. Spouse 2. Child | Spouse/ Child |
32 | Full Name | fullName | String | |||
33 | Document Type | documentType | Radio Button | nric/ Passport/ Other | ||
34 | NRIC | nric | Numeric(12) | |||
35 | Passport | passport | AlphaNumeric(10) | |||
36 | Others | other | AlphaNumeric(10) | |||
37 | nationalityNric | nationalityNric | Dropdown | Please refer County&State Keys Nationality table | ||
38 | nationalityPassport | nationalityPassport | ||||
39 | nationality | nationality | ||||
40 | Date Of Birth | dateOfBirth | Date | |||
41 | Summary | Promo Code | promoCode | String | ||
42 | BigRewards | loyaltySelected | CheckBox | 1/0 | ||
43 | Terms & Conditions | acceptTerms | Radio Button | Agree | 1 | |
44 | Disclosure Statement | agreeDeclaration | Radio Button | Agree/DisAgree | 1/0 | |
45 | Payment Method | paymentMethodType | Dropdown | 1. Credit Card/Debit Card 2. Online Banking | 1 or 2 |
PA
SNO | PAGE | PARAMETER | Keys | TYPE | Options | Values |
---|---|---|---|---|---|---|
1 | Quote | Before we proceed, are you Currently Engaged in any of the following occupations? | restrictedOccupation | Radio Button | Yes/No | 1/0 |
2 | Profile | Are you purchasing for yourself? | isForSelf | Radio Button | Yes/No | true/ false |
3 | Profile : Insurer details | Full Name | fullName | String | ||
4 | Document Type | documentType | Radio Button | NRIC/Passport/Other | nric/ Passport/ Other | |
5 | NRIC | nric | Numeric(12) | |||
6 | Passport | passport | AlphaNumeric(10) | |||
7 | Others | other | AlphaNumeric(10) | |||
8 | nationalityNric | nationalityNric | Please refer County&State Keys Nationality table | |||
9 | nationalityPassport | nationalityPassport | ||||
10 | nationality | nationality | ||||
11 | Date Of Birth | dob | Date | |||
12 | Mobile number | mobileNumber | Numeric(9-11) | |||
13 | String | |||||
14 | Purchaser details (Logged in User) | Full Name | fullNameP | String | ||
15 | Document Type | documentTypeP | Radio Button | NRIC/Passport/Other | nric/ Passport/ Other | |
16 | NRIC | nricP | Numeric(12) | |||
17 | Passport | passportP | AlphaNumeric(10) | |||
18 | Others | otherP | AlphaNumeric(10) | |||
19 | nationalityNric | nationalityNricP | Please refer County&State Keys Nationality table | |||
20 | nationalityPassport | nationalityPassportP | ||||
21 | nationality | nationalityP | ||||
22 | Date of birth | dobP | Date | |||
23 | Mobile number | mobileNumberP | Numeric(9-11) | |||
24 | emailP | String | ||||
25 | Summary | Promo Code | promoCode | String | ||
26 | BigRewards | loyaltySelected | CheckBox | 1/0 | ||
27 | Terms & Conditions | acceptTerms | Radio Button | Agree | 1 | |
28 | Disclosure Statement | agreeDeclaration | Radio Button | Agree/DisAgree | 1/0 | |
29 | Payment Method | paymentMethodType | Dropdown | 1. Credit Card/Debit Card 2. Online Banking | 1 or 2 |
EasyCare
SNO | PAGE | PARAMETER | Keys | TYPE | Options | Values |
---|---|---|---|---|---|---|
1 | Quote | before we proceed, have you ever declared bankruptcy or made any personal accident claims? | declare | Radio Button | Yes/No | 1/0 |
2 | Start Date | startDate | Date | |||
3 | End Date | endDate | Date | |||
3 | Profile | Are you purchasing for yourself? | isForSelf | Radio Button | Yes/No | true/ false |
4 | Profile : Insurer details | Full Name | fullName | String | ||
5 | Document Type | documentType | Radio Button | NRIC/Passport/Other | nric/ Passport/ Other | |
6 | NRIC | nric | Numeric(12) | |||
7 | Passport | passport | AlphaNumeric(10) | |||
8 | Others | other | AlphaNumeric(10) | |||
9 | nationalityNric | nationalityNric | Please refer County&State Keys Nationality table | |||
10 | nationalityPassport | nationalityPassport | ||||
11 | nationality | nationality | ||||
12 | Date Of Birth | dob | Date | |||
13 | Mobile number | mobileNumber | Numeric(9-11) | |||
14 | String | |||||
15 | Occupation | occupation | String | |||
16 | Type of Disability | disabilityType | Dropdown | 1. Hearing 2. Blind 3. Speech 4. Physical 5. Learning Problem 6. Mental 7. Multiple Disabilities Hearing/Pendengaran Blind/Vision/Penglihatan Speech/Pertuturan Physical/Fizikal Learning Problem/Masalah Pembelajaran Mental/Mental Multiple Disabilities/Pelbagai | ||
17 | OKU ID Number | OKU_ID | String | |||
18 | Purchaser details (Logged in User) | Full Name | fullNameP | String | ||
19 | Document Type | documentTypeP | Radio Button | NRIC/Passport/Other | nric/ Passport/ Other | |
20 | NRIC | nricP | Numeric(12) | |||
21 | Passport | passportP | AlphaNumeric(10) | |||
22 | Others | otherP | AlphaNumeric(10) | |||
23 | nationalityNric | nationalityNricP | Please refer County&State Keys Nationality table | |||
24 | nationalityPassport | nationalityPassportP | ||||
25 | nationality | nationalityP | ||||
26 | Date of birth | dobP | Date | |||
27 | Mobile number | mobileNumberP | Numeric(9-11) | |||
28 | emailP | String | ||||
29 | Summary | Promo Code | promoCode | String | ||
30 | BigRewards | loyaltySelected | CheckBox | 1/0 | ||
31 | Terms & Conditions | acceptTerms | Radio Button | Agree | 1 | |
32 | Disclosure Statement | agreeDeclaration | Radio Button | Agree/DisAgree | 1/0 | |
33 | Payment Method | paymentMethodType | Dropdown | 1. Credit Card/Debit Card 2. Online Banking | 1 or 2 | |
34 | Disclosure Statement | Radio Button | Agree/DisAgree | |||
35 | Payment Method | Dropdown | 1. Credit Card/Debit Card 2. Online Banking |
Sports
SNO | PAGE | PARAMETER | Keys | TYPE | Options | Values |
---|---|---|---|---|---|---|
1 | Quote | Before we proceed, are you Currently Engaged in any of the following occupations? | restrictedOccupation | Radio Button | Yes/No | 1/0 |
2 | Have you ever declared bankruptcy, made any personal accident claims, or been denied purchase of a personal accident policy before? | propertyDeclare | Radio Button | Yes/No | 1/0 | |
3 | Start Date | endDate | Date | |||
4 | End Date | startDate | Date |
Guard
SNO | PAGE | PARAMETER | Keys | TYPE | Options | Values |
---|---|---|---|---|---|---|
1 | Quote | I am | age | Dropdown | 1. 18 years old 2. 19 years old ..... up to 65 years old. | 18/19/20/......./65 |
Dental
SNO | PAGE | PARAMETER | Keys | TYPE | Options | Values |
---|---|---|---|---|---|---|
1 | Quote | Plan For | selectPlanType | Radio Button | Myself/Myself Spouse/Family | Self/Couple/Family |
2 | Number of Adults | adultNo | Dropdown | 1. Myself 2. Myself & Spouse | Adult_Count_1,Adult_Count_2 | |
3 | Number of Children | childrenNo | Dropdown | 1. 1 Children 2. 2 Children 3. 3 Children 4. 4 Children 5. 5 Children 6. 6 Children 7. 7 Children 8. 8 Children 9. 9 Children 10. 10 Children | Children_Count_1 Children_Count_2 Children_Count_3 Children_Count_4 Children_Count_5 Children_Count_6 Children_Count_7 Children_Count_8 Children_Count_9 Children_Count_10 |
Ride
SNO | PAGE | PARAMETER | Keys | TYPE | Options | Values |
---|---|---|---|---|---|---|
1 | Quote | I am driving | vehicleType | Dropdown | 1. Convertible 2. Coupe 3. Hatchback 4. MVP 5. Pickup 6. Sedan 7. SUV 8. Wagon | Convertible Coupe Hatchback MVP Pickup Sedan SUV Wagon |
2 | Number of seats | vehicleSeats | Radio Button | 5/6/7/8/9/10/11 | seats_5 seats_6 seats_7 seats_8 seats_9 seats_10 seats_11 | |
3 | Profile | Are you purchasing for yourself? | isForSelf | Radio Button | Yes/No | true/ false |
4 | Profile : Insurer details | Full Name | fullName | String | ||
5 | Document Type | documentType | Radio Button | NRIC/Passport/Other | nric/ Passport/ Other | |
6 | NRIC | nric | Numeric(12) | |||
7 | Passport | passport | AlphaNumeric(10) | |||
8 | Others | other | AlphaNumeric(10) | |||
9 | nationalityNric | nationalityNric | Please refer County&State Keys Nationality table | |||
10 | nationalityPassport | nationalityPassport | ||||
11 | nationality | nationality | ||||
12 | Date Of Birth | dob | Date | |||
13 | Mobile number | mobileNumber | Numeric(9-11) | |||
14 | String | |||||
15 | Purchaser details (Logged in User) | Full Name | fullNameP | String | ||
16 | Document Type | documentTypeP | Radio Button | NRIC/Passport/Other | nric/ Passport/ Other | |
17 | NRIC | nricP | Numeric(12) | |||
18 | Passport | passportP | AlphaNumeric(10) | |||
19 | Others | otherP | AlphaNumeric(10) | |||
20 | nationalityNric | nationalityNricP | Please refer County&State Keys Nationality table | |||
21 | nationalityPassport | nationalityPassportP | ||||
22 | nationality | nationalityP | ||||
23 | Date of birth | dobP | Date | |||
24 | Mobile number | mobileNumberP | Numeric(9-11) | |||
25 | emailP | String | ||||
26 | Summary | Promo Code | promoCode | String | ||
27 | BigRewards | loyaltySelected | CheckBox | 1/0 | ||
28 | Terms & Conditions | acceptTerms | Radio Button | Agree | 1 | |
29 | Disclosure Statement | agreeDeclaration | Radio Button | Agree/DisAgree | 1/0 | |
30 | Payment Method | paymentMethodType | Dropdown | 1. Credit Card/Debit Card 2. Online Banking | 1 or 2 |
TravelInbound
SNO | PAGE | PARAMETER | Keys | TYPE | Options | Values |
---|---|---|---|---|---|---|
1 | Quote | Arrival Date | arrivalDate | Date | ||
2 | Departure Date | departureDate | Date | |||
3 | Nationality | nationality | Dropdown | Please refer County&State Keys Nationality table | ||
4 | No Of Insured | noOfInsured | Dropdown | 1. 1 2. 2 3. 3 4.4 5.5 6.6 7.7 8. 8 9. 9 10. 10 | 1 2 3 4 5 6 7 8 9 10 | |
5 | Profile | Full Name | fullName | string | ||
6 | Document Type | documentTypeP | Radio Button | Passport | Passport | |
7 | Passport | passport | AlphaNumeric(10) | |||
8 | Gender | gender | Radio Button | Male/Female | M/F | |
9 | nationalityNric | nationalityNric | Please refer County&State Keys Nationality table | |||
10 | nationalityPassport | nationalityPassport | ||||
11 | nationality | nationality | ||||
12 | Date Of Birth | dob | Date | |||
13 | Mobile number | mobileNumber | Numeric(9-11) | |||
14 | String | |||||
15 | Address details | Address Line 1 | addressLine1 | |||
16 | Address Line 2 | addressLine2 | ||||
17 | State | State Default | Auto Populate the value from Quote page | |||
18 | City | city | String | |||
20 | Post code | postalCode | Numeric(5) | |||
21 | Purchaser details (Logged in User) | Full Name | fullNameP | String | ||
22 | Document Type | documentTypeP | Radio Button | NRIC/Passport/Other | nric/ Passport/ Other | |
23 | NRIC | nricP | Numeric(12) | |||
24 | Passport | passportP | AlphaNumeric(10) | |||
25 | Others | otherP | AlphaNumeric(10) | |||
26 | nationalityNric | nationalityNricP | Please refer County&State Keys Nationality table | |||
27 | nationalityPassport | nationalityPassportP | ||||
28 | nationality | nationalityP | ||||
29 | Date of birth | dobP | Date | |||
30 | Mobile number | mobileNumberP | Numeric(9-11) | |||
31 | emailP | String | ||||
32 | Summary | Promo Code | promoCode | String | ||
33 | BigRewards | loyaltySelected | CheckBox | 1/0 | ||
34 | Terms & Conditions | acceptTerms | Radio Button | Agree | 1 | |
35 | Disclosure Statement | agreeDeclaration | Radio Button | Agree/DisAgree | 1/0 | |
36 | Payment Method | paymentMethodType | Dropdown | 1. Credit Card/Debit Card 2. Online Banking | 1 or 2 |
Home Shield
SNO | PAGE | PARAMETER | Keys | TYPE | Options | Values |
---|---|---|---|---|---|---|
1 | Quote | BuildingType | build ingType | RadioButton | Landed/Non-Landed Landed/ Non Landed | |
2 | Building Info | ownProperty | RadioButton | Owner/Tenant | Yes/No | |
3 | Property Coverage | coverageType | RadioButton | For my building/ For my home contents | HouseOwner/HouseHolder/HouseOwnerHouseHolder | |
4 | Building Material | buildingMaterial | RadioButton | Brick wall-metal or concrete roof/Partial Brick- Atap or Wooden Roof | 1/0 | |
5 | Housing Loan | bankLoan | RadioButton | Bank Mortgage/Fully Paid Up | 1/0 | |
6 | how much would you like to insure your house for? (rm) | sumInsured | Numeric | |||
7 | how much would you like to insure your contents for (rm) | sumInsuredHH | Dropdown | 25000/40000/50000 | 25000/40000/50000 | |
8 | Plan page Add-on's HO | Personal Liability | personalLiability | Check box | Yes/No | |
9 | Riot, Strike and Malicious Damage | riotStrike&MaliciousDamageHO | Check box | Yes/No | ||
10 | Subsidence and landslip | subsidence&LandslipHO | Check box | Yes/No | ||
11 | Plate Glass | plateGlassHO | Check box | Yes/No | ||
12 | Plan page Add-on's HH | Personal Liability | personalLiability | Check box | Yes/No | |
13 | Riot, Strike and Malicious Damage | riotStrike&MaliciousDamageHH | Check box | Yes/No | ||
14 | Subsidence and landslip | subsidence&LandslipHH | Check box | Yes/No | ||
15 | Plan page Add-on's HOHH | Personal Liability | personalLiability | Check box | Yes/No | |
16 | Riot, Strike and Malicious Damage | riotStrike&MaliciousDamageHOHH | Check box | Yes/No | ||
17 | Subsidence and landslip | subsidence&LandslipHOHH | Check box | Yes/No | ||
18 | Plate Glass | plateGlassHOHH | Check box | Yes/No | ||
19 | Benefits | Landlord Insurance Pack | landlordInsuraceRental | Toggle Button | Yes/No | |
20 | Mortgage loan protection pack | mortageLoanInstallementPack | Toggle Button | Yes/No | ||
21 | Smart Home Devices Protection Pack | smartHomeDevicePack | Toggle Button | Yes/No | ||
22 | Home Care Pack | homeCarePack | Toggle Button | Yes/No | ||
23 | Underwriter | Underwriter qn1 | underwriterQn1 | RadioButton | Yes/No | 1/0 |
24 | Underwriter qn2 | underwriterQn2 | RadioButton | Yes/No | 1/0 | |
25 | Underwriter qn3 | underwriterQn3 | RadioButton | Yes/No | 1/0 | |
26 | Property Details | Policy Start Date | policyStartDate | Date | ||
27 | Policy End Date | policyStartDate | Date | |||
28 | Address Line 1 | propertyHomeAddress1 | String | |||
29 | Address Line 2 | propertyHomeAddress2 | String | |||
30 | Country | propertyCountry | Dropdown | Default to Malaysia | ||
31 | State | propertyHomeState | Dropdown | Please refer County&State Keys Address states List Table | ||
32 | Post code | propertyPostalCode | Numeric(5) | |||
33 | Name of Bank | financialInterest | Dropdown | |||
34 | Loan Account Number | loanReferenceNumber | String | |||
35 | Profile : Insurer details | Full Name | fullName | String | ||
36 | Document Type | documentType | Radio Button | NRIC/Passport/Other | nric/ Passport/ Other | |
37 | NRIC | nric | Numeric(12) | |||
38 | Passport | passport | AlphaNumeric(10) | |||
39 | Others | other | AlphaNumeric(10) | |||
40 | nationalityNric | nationalityNric | Please refer County&State Keys Nationality table | |||
41 | nationalityPassport | nationalityPassport | ||||
42 | nationality | nationality | ||||
43 | Date Of Birth | dob | Date | |||
44 | Mobile number | mobileNumber | Numeric(9-11) | |||
45 | String | |||||
46 | are you living in your property address? | livingInPropertyAddress | Radio Button | Yes/No | true/false | |
47 | Home Address | Address Line 1 | addressLine1 | String | ||
48 | Address Line 2 | addressLine2 | String | |||
49 | Country | addressCountry | Dropdown | Default to Malaysia | MYS | |
50 | State | addressState | Dropdown | Please refer County&State Keys Address states List Table | ||
51 | Post code | addressPostalCode | Numeric(5) | |||
52 | are you living in your property address? | isMailingAddressSameHomeAddress | Radio Button | Yes/No | true/false | |
53 | Mailing Address | Address Line 1 | mailingAddressLine1 | String | ||
54 | Address Line 2 | mailingAddressLine2 | String | |||
55 | Country | mailingAddressCountry | Dropdown | Default to Malaysia | MYS | |
56 | State | mailingAddressState | Dropdown | Please refer County&State Keys Address states List Table | ||
57 | Post code | mailingAddressPostalCode | Numeric(5) | |||
58 | Summary | Promo Code | promoCode | String | ||
59 | BigRewards | loyaltySelected | CheckBox | |||
60 | Terms & Conditions | acceptTerms | Radio Button | Agree | 1 | |
61 | Disclosure Statement | agreeDeclaration | Radio Button | Agree/DisAgree | 1/0 | |
62 | Payment Method | paymentMethodType | Dropdown | 1. Credit Card/Debit Card 2. Online Banking 3. Installment (AmBank Credit card Only) 4. Installment (MayBank Credit card Only) 5. Installment (CIMB Credit card Only) 1/ 2/ 3 | ||
63 | Installment Type (If type is Installment) | paymentInstallmentType | Dropdown | If AmBank: a. Ambank 3 Months b. Ambank 6 Months Else if May bank: a. Maybank 6 Months b. May bank Amex 6 Months Else if CIMB a. CIMB 3 Months b. CIMB 6 Months | 1/2/3/4/5/6 |
Critical Illness
SNO | PAGE | PARAMETER | Keys | TYPE | Options | Values |
---|---|---|---|---|---|---|
1 | Quote | ARE YOU A MALAYSIAN CITIZEN , PERMANENT RESIDENT (PR) OF MALAYSIA, LEGAL WORK PERMIT HOLDER OR EMPLOYMENT PASS HOLDER WHO IS LEGALLY RESIDING IN MALAYSIA? | nationalityCheck | Radio Button | Yes/No | Yes/No |
2 | Date Of Birth | dob | Date | |||
3 | Gender | gender | Radio Button | Male/Female | Male/Female | |
4 | Do You Smoke? | smoker | Radio Button | Yes/No | Yes/No | |
5 | Select Your Critical Illness Sum Insured | sumInsured | Numeric | |||
6 | Underwriter | Height | height | Numeric | ||
7 | Weight | weight | Numeric | |||
8 | Underwriter Qn 1 | underwritingAns1 | Radio Button | Yes/No | 1/0 | |
9 | Underwriter Qn 2 | underwritingAns2 | Radio Button | Yes/No | 1/0 | |
10 | Underwriter Qn 3 | underwritingAns3 | Radio Button | Yes/No | 1/0 | |
11 | Underwriter Qn 4 | underwritingAns4 | Radio Button | Yes/No | 1/0 | |
12 | Underwriter Qn 5 | underwritingAns5 | Radio Button | Yes/No | 1/0 | |
13 | Profile | Full Name | fullName | string | ||
14 | Document Type | documentType | Radio Button | Passport | Passport | |
15 | Passport | passport | AlphaNumeric(10) | |||
16 | Gender | gender | Radio Button | Male/Female | M/F | |
17 | nationalityNric | nationalityNric | Please refer County&State Keys Nationality table | |||
18 | nationalityPassport | nationalityPassport | ||||
19 | nationality | nationality | ||||
20 | Date Of Birth | dob | Date | |||
21 | PolicyHolder details (If Insured Minor) | Full Name | policyHolderfullName | string | ||
22 | Document Type | policyHolderdocumentType | Radio Button | Passport | Passport | |
23 | Passport | policyHolderPassport | AlphaNumeric(10) | |||
24 | Gender | policyHoldergender | Radio Button | Male/Female | Male/Female | |
25 | nationalityNric | nationalityNric | Please refer County&State Keys Nationality table | |||
26 | nationalityPassport | nationalityPassport | ||||
27 | nationality | nationality | ||||
28 | Date of birth | policyHolderdob | Date | |||
29 | Relationship | relationship | Dropdown | |||
30 | Mobile number | mobileNumber | Numeric(9-11) | |||
31 | emailAddress | String | ||||
32 | Address details | Address Line 1 | addressLine1 | |||
33 | Address Line 2 | addressLine2 | ||||
34 | State | addressState | Dropdown | Please refer County&State Keys Address states List Table | ||
35 | Country | addressCountry | Dropdown | Default to Malaysia | MYS | |
36 | Post code | addressPostalCode | Numeric(5) | |||
37 | is your mailing address same as your home address? | isMailingAddressSameHomeAddress | Radio Button | Yes/No | true/false | |
38 | Mailing Address | Address Line 1 | mailingAddressLine1 | String | ||
39 | Address Line 2 | mailingAddressLine2 | String | |||
40 | Country | mailingAddressCountry | Dropdown | Default to Malaysia | ||
41 | State | mailingAddressState | Dropdown | Please refer County&State Keys Address states List Table | ||
42 | Post code | mailingAddressPostalCode | Numeric(5) | |||
43 | Summary | Promo Code | promoCode | String | ||
44 | BigRewards | loyaltySelected | CheckBox | 1/0 | ||
45 | Terms & Conditions | acceptTerms | Radio Button | Agree | 1 | |
46 | Disclosure Statement | agreeDeclaration | Radio Button | Agree/DisAgree | 1/0 | |
47 | Payment Method | paymentMethodType | Dropdown | 1. Credit Card/Debit Card 2. Online Banking | 1 or 2 |
Bike Easy
SNO | PAGE | PARAMETER | Keys | TYPE | Options | Values |
---|---|---|---|---|---|---|
1 | Quotedetails | Are you Malaysian | nationalityCheck | Radio Button | Yes/No | 1/0 |
2 | Vehicle Registration Number | vehicleNumber | String | |||
3 | Place of use | location | Dropdown | Malaysia states list | Please refer County&State Keys states List | |
4 | NRIC | nric | Numeric | |||
5 | New Passport Number | newPassport | Text | |||
6 | Old Passport number | oldPassport | Text | |||
7 | Date of Birth | dob | Date | |||
8 | Gender | gender | Radio Button | Male/Female | M/F | |
9 | Profile | Are you purchasing for yourself? | isForSelf | Radio Button | Yes/No | true/ false |
10 | Profile Insurer details | Full Name | fullName | String | ||
11 | Document Type | documentType | Radio Button | NRIC/Passport | nric/ Passport | |
12 | NRIC | nric | Numeric(12) | |||
13 | Passport | passport | AlphaNumeric(10) | |||
14 | nationalityNric | nationalityNric | Please refer County&State Keys Nationality table | |||
15 | nationalityPassport | nationalityPassport | ||||
16 | Date Of Birth | dob | Date | |||
17 | Mobile number | mobileNumber | Numeric(9-11) | |||
18 | String | |||||
19 | Purchaser details (Logged in User) | Full Name | fullNameP | String | ||
20 | Document Type | documentTypeP | Radio Button | NRIC/Passport/Other | nric/ Passport/ Other | |
21 | NRIC | nricP | Numeric(12) | |||
22 | Passport | passportP | AlphaNumeric(10) | |||
23 | Others | otherP | AlphaNumeric(10) | |||
24 | nationalityNric | nationalityNricP | Please refer County&State Keys Nationality table | |||
25 | nationalityPassport | nationalityPassportP | ||||
26 | nationality | nationalityP | ||||
27 | Date of birth | dobP | Date | |||
28 | Mobile number | mobileNumberP | Numeric(9-11) | |||
29 | emailP | String | ||||
30 | Additional Coverage | LEGAL LIABILITY TO PASSENGERS | benefit: "passengerLiaCover" sumInsured: 0 benefitId: 79 | Toggle Button | ||
31 | STRIKE, RIOT & CIVIL COMMOTION | benefit: "strikeRiotAndCC" sumInsured: 0 benefitId: 80 | Toggle Button | |||
32 | SPECIAL PERILS | benefit: "specialPerilsInclusion" sumInsured: 0 benefitId: 81 | Toggle Button | |||
33 | EXTENSION OF COVER TO THAILAND | benefit: "thaiCoverExtension" sumInsured: 0 benefitId: 82 | Toggle Button | |||
34 | EXTENSION OF COVER TO WEST KALIMANTAN, INDONESIA | benefit: "indonesiaCoverExtension" sumInsured: 0 benefitId: 83 | Toggle Button | |||
35 | PERSONAL ACCIDENT | benefit: "motorCyclePA" benefitId: 84 sumInsured: 6000 | Toggle Button | 6000/12000 | ||
36 | Address details | Address Line 1 | addressLine1 | |||
37 | Address Line 2 | addressLine2 | ||||
38 | State | State Default | Auto Populate the value from Quote page | |||
39 | City | city | String | |||
40 | Post code | postalCode | Numeric(5) | |||
41 | Summary | Promo Code | promoCode | String | ||
42 | BigRewards | loyaltySelected | CheckBox | 1/0 | ||
43 | Terms & Conditions | acceptTerms | Radio Button | Agree | 1 | |
44 | Disclosure Statement | agreeDeclaration | Radio Button | Agree/DisAgree | 1/0 | |
45 | Payment Method | paymentMethodType | Dropdown | 1. Credit Card/Debit Card 2. Online Banking 1 or 2 |
Dental ChildrenNo parameter values
ChildrenNo |
---|
Children_Count_1 |
Children_Count_2 |
Children_Count_3 |
Children_Count_4 |
Children_Count_5 |
Children_Count_6 |
Children_Count_7 |
Children_Count_8 |
Children_Count_9 |
Children_Count_10 |
Country and state keys
Address State Values |
---|
Johor |
Kedah |
Kelantan |
Melaka |
Negeri Sembilan |
Pahang |
Perak |
Perlis |
Pulau Pinang |
Sabah |
Sarawak |
Selangor |
Terengganu |
Wilayah Persekutuan |
Motor state Values |
---|
Johor |
Kedah |
Kelantan |
Melaka |
Negeri_Sembilan |
Pahang |
Perak |
Perlis |
Pulau_Pinang |
Sabah |
Sarawak |
Selangor |
Terengganu |
Wilayah_Persekutuan |
Nationality passing values |
---|
code: "AND" |
name: "ANDORRA" |
code: "AGO" |
name: "ANGOLA" |
code: "AIA" |
name: "ANGUILLA" |
code: "ATG" |
name: "ANTIGUA AND BARBUDA" |
code: "ARG" |
name: "ARGENTINA" |
code: "ARM" |
name: "ARMENIA" |
code: "AUS" |
name: "AUSTRALIA" |
code: "AUT" |
name: "AUSTRIA" |
code: "AZE" |
name: "AZERBAIJAN" |
code: "BHR" |
name: "BAHRAIN" |
code: "BGD" |
name: "BANGLADESH" |
code: "BEL" |
name: "BELGIUM" |
code: "BLZ" |
name: "BELIZE" |
code: "BEN" |
name: "BENIN" |
code: "BMU" |
name: "BERMUDA" |
code: "BTN", |
name: "BHUTAN" |
code: "BOL", |
name: "BOLIVIA" |
code: "BIH", |
name: "BOSNIA–HERZEGOVINA" |
code: "BRA", |
name: "BRAZIL" |
code: "VGB", |
name: "BRITISH VIRGIN ISLANDS" |
code: "BRN", |
name: "BRUNEI" |
code: "BGR", |
name: "BULGARIA" |
code: "BFA", |
name: "BURKINA FASO" |
code: "BDI", |
name: "BURUNDI" |
code: "CMR", |
name: "CAMEROON" |
code: "CAN", |
name: "CANADA" |
code: "CYM", |
name: "CAYMAN ISLANDS" |
code: "CAF", |
name: "CENTRAL AFRICAN REPUBLIC" |
code: "TCD", |
name: "CHAD" |
code: "GBA", |
name: "CHANNEL ISLANDS" |
code: "CHL", |
name: "CHILE" |
code: "COL", |
name: "COLOMBIA" |
code: "COM", |
name: "COMOROS" |
code: "COG", |
name: "CONGO" |
code: "CRI", |
name: "COSTA RICA" |
code: "HRV", |
name: "CROATIA" |
code: "CYP", |
name: "CYPRUS" |
code: "CZE", |
name: "CZECH REPUBLIC" |
code: "DNK", |
name: "DENMARK" |
code: "DJI", |
name: "DJIBOUTI" |
code: "DMA", |
name: "DOMINICA" |
code: "DMA", |
name: "DOMINICAN REPUBLIC" |
code: "TMP", |
name: "EAST TIMOR" |
code: "ECU", |
name: "ECUADOR" |
code: "EGY", |
name: "EGYPT" |
code: "SLV", |
name: "EL SALVADOR" |
code: "GNQ", |
name: "EQUATORIAL GUINEA" |
code: "ERI", |
name: "ERITREA" |
code: "EST", |
name: "ESTONIA" |
code: "ETH", |
name: "ETHIOPIA" |
code: "FLK", |
name: "FALKLAND ISLANDS" |
code: "FRO", |
name: "FAROE ISLANDS" |
code: "FJI", |
name: "FIJI" |
code: "FIN", |
name: "FINLAND" |
code: "FRA", |
name: "FRANCE" |
code: "GUF", |
name: "FRENCH GUIANA" |
code: "PYF", |
name: "FRENCH POLYNESIA" |
code: "GAB", |
name: "GABON" |
code: "GMB", |
name: "GAMBIA" |
code: "GEO", |
name: "GEORGIA" |
code: "DEU", |
name: "GERMANY" |
code: "GIB", |
name: "GIBRALTAR" |
code: "GRC", |
name: "GREECE" |
code: "GRL", |
name: "GREENLAND" |
code: "GRD", |
name: "GRENADA" |
code: "GLP", |
name: "GUADELOUPE" |
code: "GTM", |
name: "GUATEMALA" |
code: "GIN", |
name: "GUINEA" |
code: "GNB", |
name: "GUINEA-BISSAU" |
code: "GUY", |
name: "GUYANA" |
code: "HTI", |
name: "HAITI" |
code: "HND", |
name: "HONDURAS" |
code: "HKG", |
name: "HONG KONG" |
code: "HUN", |
name: "HUNGARY" |
code: "ISL", |
name: "ICELAND" |
code: "IND", |
name: "INDIA" |
code: "IDN", |
name: "INDONESIA" |
code: "IRL", |
name: "IRELAND" |
code: "GBM", |
name: "ISLE OF MAN" |
code: "ITA", |
name: "ITALY" |
code: "CI", |
name: "IVORY COAST" |
code: "JPN", |
name: "JAPAN" |
code: "JOR", |
name: "JORDAN" |
code: "KAZ", |
name: "KAZAKHSTAN" |
code: "KEN", |
name: "KENYA" |
code: "KWT", |
name: "KUWAIT" |
code: "KGZ", |
name: "KYRGYZSTAN" |
code: "723", |
name: "LAOS" |
code: "LVA", |
name: "LATVIA" |
code: "LBN", |
name: "LEBANON" |
code: "LSO", |
name: "LESOTHO" |
code: "LBR", |
name: "LIBERIA" |
code: "LBY", |
name: "LIBYA" |
code: "LIE", |
name: "LIECHTENSTEIN" |
code: "LTU", |
name: "LITHUANIA" |
code: "LUX", |
name: "LUXEMBOURG" |
code: "MAC", |
name: "MACAO" |
code: "MDG", |
name: "MADAGASCAR" |
code: "CHN", |
name: "MAINLAND CHINA" |
code: "MYS", |
name: "MALAYSIA" |
code: "MDV", |
name: "MALDIVES" |
code: "MLI", |
name: "MALI" |
code: "MLT", |
name: "MALTA" |
code: "MHL", |
name: "MARSHALL ISLANDS" |
code: "MTQ", |
name: "MARTINIQUE" |
code: "MRT", |
name: "MAURITANIA" |
code: "MYT", |
name: "MAYOTTE" |
code: "MEX", |
name: "MEXICO" |
code: "MDA", |
name: "MOLDOVA" |
code: "MCO", |
name: "MONACO" |
code: "MNG", |
name: "MONGOLIA" |
code: "MSR", |
name: "MONTSERRAT" |
code: "MAR", |
name: "MOROCCO" |
code: "MOZ", |
name: "MOZAMBIQUE" |
code: "NAM", |
name: "NAMIBIA" |
code: "NPL", |
name: "NEPAL" |
code: "NLD", |
name: "NETHERLANDS" |
code: "NCL", |
name: "NEW CALEDONIA" |
code: "NZL", |
name: "NEW ZEALAND" |
code: "NER", |
name: "NIGER" |
code: "NGA", |
name: "NIGERIA" |
code: "MKD", |
name: "North Macedonia" |
code: "NOR", |
name: "NORWAY" |
code: "OMN", |
name: "OMAN" |
code: "PAK", |
name: "PAKISTAN" |
code: "PNG", |
name: "PAPUA NEW GUINEA" |
code: "PRY", |
name: "PARAGUAY" |
code: "PER", |
name: "PERU" |
code: "PHL", |
name: "PHILIPPINES" |
code: "POL", |
name: "POLAND" |
code: "PRT", |
name: "PORTUGAL" |
code: "QAT", |
name: "QATAR" |
code: "REU", |
name: "RÉUNION" |
code: "ROM", |
name: "ROMANIA" |
code: "RWA", |
name: "RWANDA" |
code: "KNA", |
name: "SAINT KITTS AND NEVIS" |
code: "LCA", |
name: "SAINT LUCIA" |
code: "SPM", |
name: "SAINT PIERRE AND MIQUELON" |
code: "VCT", |
name: "SAINT VINCENT AND THE GRENADINES" |
code: "SMR", |
name: "SAN MARINO" |
code: "STP", |
name: "SAO TOME AND PRINCIPE" |
code: "SAU", |
name: "SAUDI ARABIA" |
code: "SEN", |
name: "SENEGAL" |
code: "SYC", |
name: "SEYCHELLES" |
code: "SLE", |
name: "SIERRA LEONE" |
code: "SGP", |
name: "SINGAPORE" |
code: "SVK", |
name: "SLOVAKIA" |
code: "SVN", |
name: "SLOVENIA" |
code: "SLB", |
name: "SOLOMON ISLANDS" |
code: "ZAF", |
name: "SOUTH AFRICA" |
code: "KOR", |
name: "SOUTH KOREA" |
code: "ESP", |
name: "SPAIN" |
code: "LKA", |
name: "SRI LANKA" |
code: "SUR", |
name: "SURINAME" |
code: "SWE", |
name: "SWEDEN" |
code: "SW", |
name: "SWITZERLAND" |
code: "TWN", |
name: "TAIWAN" |
code: "TJK", |
name: "TAJIKISTAN" |
code: "TZA", |
name: "TANZANIA" |
code: "THA", |
name: "THAILAND" |
code: "TGO", |
name: "TOGO" |
code: "TTO", |
name: "TRINIDAD AND TOBAGO" |
code: "TUN", |
name: "TUNISIA" |
code: "TUR", |
name: "TURKEY" |
code: "TCA", |
name: "TURKS AND CAICOS ISLANDS" |
code: "ARE", |
name: "UNITED ARAB EMIRATES" |
code: "GBR", |
name: "UNITED KINGDOM" |
code: "USA", |
name: "UNITED STATES" |
code: "URY", |
name: "URUGUAY" |
code: "UZB", |
name: "UZBEKISTAN" |
code: "VUT", |
name: "VANUATU" |
code: "VAT", |
name: "VATICAN CITY" |
code: "VEN", |
name: "VENEZUELA" |
code: "VNM", |
name: "VIETNAM" |
code: "ESH", |
name: "WESTERN SAHARA" |
code: "ZMB", |
name: "ZAMBIA" |
Country to Area passing values |
---|
area: "WorldwideEx" |
country: "ANDORRA" |
area: "WorldwideEx" |
country: "ANGOLA" |
area: "WorldwideEx" |
country: "ANGUILLA" |
area: "WorldwideEx" |
country: "ANTIGUA AND BARBUDA" |
area: "WorldwideEx" |
country: "ARGENTINA" |
area: "WorldwideEx" |
country: "ARMENIA" |
area: "AsiaPacific" |
country: "AUSTRALIA" |
area: "WorldwideEx" |
country: "AUSTRIA" |
area: "WorldwideEx" |
country: "AZERBAIJAN" |
area: "WorldwideEx" |
country: "BAHRAIN" |
area: "AsiaPacific" |
country: "BANGLADESH" |
area: "WorldwideEx" |
country: "BELGIUM" |
area: "WorldwideEx" |
country: "BELIZE" |
area: "WorldwideEx" |
country: "BENIN" |
area: "WorldwideEx" |
country: "BERMUDA" |
area: "AsiaPacific" |
country: "BHUTAN" |
area: "WorldwideEx" |
country: "BOLIVIA" |
area: "WorldwideEx" |
country: "BOSNIA–HERZEGOVINA" |
area: "WorldwideEx" |
country: "BRAZIL" |
area: "WorldwideEx" |
country: "BRITISH VIRGIN ISLANDS" |
area: "AsiaPacific" |
country: "BRUNEI" |
area: "WorldwideEx" |
country: "BULGARIA" |
area: "WorldwideEx" |
country: "BURKINA FASO" |
area: "WorldwideEx" |
country: "BURUNDI" |
area: "WorldwideEx" |
country: "CAMEROON" |
area: "Worldwide" |
country: "CANADA" |
area: "WorldwideEx" |
country: "CAYMAN ISLANDS" |
area: "WorldwideEx" |
country: "CENTRAL AFRICAN REPUBLIC" |
area: "WorldwideEx" |
country: "CHAD" |
area: "WorldwideEx" |
country: "CHANNEL ISLANDS" |
area: "WorldwideEx" |
country: "CHILE" |
area: "WorldwideEx" |
country: "COLOMBIA" |
area: "WorldwideEx" |
country: "COMOROS" |
area: "AsiaPacific" |
country: "COMBODIA" |
area: "WorldwideEx" |
country: "COSTA RICA" |
area: "WorldwideEx" |
country: "CROATIA" |
area: "WorldwideEx" |
country: "CYPRUS" |
area: "WorldwideEx" |
country: "CZECH REPUBLIC" |
area: "WorldwideEx" |
country: "DEM. REP. CONGO" |
area: "WorldwideEx" |
country: "DENMARK" |
area: "WorldwideEx" |
country: "DJIBOUTI" |
area: "WorldwideEx" |
country: "DOMINICA" |
area: "WorldwideEx" |
country: "DOMINICAN REPUBLIC" |
area: "AsiaPacific" |
country: "EAST TIMOR" |
area: "WorldwideEx" |
country: "ECUADOR" |
area: "WorldwideEx" |
country: "EGYPT" |
area: "WorldwideEx" |
country: "EL SALVADOR" |
area: "WorldwideEx" |
country: "EQUATORIAL GUINEA" |
area: "WorldwideEx" |
country: "ERITREA" |
area: "WorldwideEx" |
country: "ESTONIA" |
area: "WorldwideEx" |
country: "ETHIOPIA" |
area: "WorldwideEx" |
country: "FALKLAND ISLANDS" |
area: "WorldwideEx" |
country: "FAROE ISLANDS" |
area: "WorldwideEx" |
country: "FIJI" |
area: "WorldwideEx" |
country: "FINLAND" |
area: "WorldwideEx" |
country: "FRANCE" |
area: "WorldwideEx" |
country: "FRENCH GUIANA" |
area: "WorldwideEx" |
country: "FRENCH POLYNESIA" |
area: "WorldwideEx" |
country: "GABON" |
area: "WorldwideEx" |
country: "GAMBIA" |
area: "WorldwideEx" |
country: "GEORGIA" |
area: "WorldwideEx" |
country: "GERMANY" |
area: "WorldwideEx" |
country: "GIBRALTAR" |
area: "WorldwideEx" |
country: "GREECE" |
area: "WorldwideEx" |
country: "GREENLAND" |
area: "WorldwideEx" |
country: "GRENADA" |
area: "WorldwideEx" |
country: "GUADELOUPE" |
area: "WorldwideEx" |
country: "GUATEMALA" |
area: "WorldwideEx" |
country: "GUINEA" |
area: "WorldwideEx" |
country: "GUINEA-BISSAU" |
area: "WorldwideEx" |
country: "GUYANA" |
area: "WorldwideEx" |
country: "HAITI" |
area: "WorldwideEx" |
country: "HONDURAS" |
area: "AsiaPacific" |
country: "HONG KONG" |
area: "WorldwideEx" |
country: "HUNGARY" |
area: "WorldwideEx" |
country: "ICELAND" |
area: "AsiaPacific" |
country: "INDIA" |
area: "AsiaPacific" |
country: "INDONESIA" |
area: "WorldwideEx" |
country: "IRELAND" |
area: "WorldwideEx" |
country: "ISLE OF MAN" |
area: "WorldwideEx" |
country: "ISRAEL" |
area: "WorldwideEx" |
country: "ITALY" |
area: "WorldwideEx" |
country: "IVORY COAST" |
area: "AsiaPacific" |
country: "JAPAN" |
area: "WorldwideEx" |
country: "JORDAN" |
area: "AsiaPacific" |
country: "KAZAKHSTAN" |
area: "WorldwideEx" |
country: "KENYA" |
area: "WorldwideEx" |
country: "KUWAIT" |
area: "AsiaPacific" |
country: "KYRGYZSTAN" |
area: "AsiaPacific" |
country: "LAOS" |
area: "WorldwideEx" |
country: "LATVIA" |
area: "WorldwideEx" |
country: "LEBANON" |
area: "WorldwideEx" |
country: "LESOTHO" |
area: "WorldwideEx" |
country: "LIBERIA" |
area: "WorldwideEx" |
country: "LIBYA" |
area: "WorldwideEx" |
country: "LIECHTENSTEIN" |
area: "WorldwideEx" |
country: "LITHUANIA" |
area: "WorldwideEx" |
country: "LUXEMBOURG" |
area: "AsiaPacific" |
country: "MACAO" |
area: "WorldwideEx" |
country: "MADAGASCAR" |
area: "AsiaPacific" |
country: "MAINLAND CHINA" |
area: "WorldwideEx" |
country: "MALAWI" |
area: "Domestic" |
country: "MALAYSIA" |
area: "AsiaPacific" |
country: "MALDIVES" |
area: "WorldwideEx" |
country: "MALI" |
area: "WorldwideEx" |
country: "MALTA" |
area: "WorldwideEx" |
country: "MARSHALL ISLANDS" |
area: "WorldwideEx" |
country: "MARTINIQUE" |
area: "WorldwideEx" |
country: "MAURITANIA" |
area: "WorldwideEx" |
country: "MAYOTTE" |
area: "WorldwideEx" |
country: "MEXICO" |
area: "WorldwideEx" |
country: "MOLDOVA" |
area: "WorldwideEx" |
country: "MONACO" |
area: "AsiaPacific" |
country: "MONGOLIA" |
area: "WorldwideEx" |
country: "MONTSERRAT" |
area: "WorldwideEx" |
country: "MOROCCO" |
area: "WorldwideEx" |
country: "MOZAMBIQUE" |
area: "AsiaPacific" |
country: "MYANMAR" |
area: "WorldwideEx" |
country: "NAMIBIA" |
area: "AsiaPacific" |
country: "NEPAL" |
area: "WorldwideEx" |
country: "NETHERLANDS" |
area: "WorldwideEx" |
country: "NEW CALEDONIA" |
area: "AsiaPacific" |
country: "NEW ZEALAND" |
area: "WorldwideEx" |
country: "NIGER" |
area: "WorldwideEx" |
country: "NIGERIA" |
area: "WorldwideEx" |
country: "North Macedonia" |
area: "WorldwideEx" |
country: "NORWAY" |
area: "WorldwideEx" |
country: "OMAN" |
area: "WorldwideEx" |
country: "OTHER" |
area: "AsiaPacific" |
country: "PAKISTHAN" |
area: "WorldwideEx" |
country: "PAPUA NEW GUINEA" |
area: "WorldwideEx" |
country: "PARAGUAY" |
area: "WorldwideEx" |
country: "PERU" |
area: "AsiaPacific" |
country: "PHILIPPINES" |
area: "WorldwideEx" |
country: "POLAND" |
area: "WorldwideEx" |
country: "PORTUGAL" |
area: "WorldwideEx" |
country: "QATAR" |
area: "WorldwideEx" |
country: "RÉUNION" |
area: "WorldwideEx" |
country: "ROMANIA" |
area: "WorldwideEx" |
country: "RWANDA" |
area: "WorldwideEx" |
country: "SAINT KITTS AND NEVIS" |
area: "WorldwideEx" |
country: "SAINT LUCIA" |
area: "WorldwideEx" |
country: "SAINT PIERRE AND MIQUELON" |
area: "WorldwideEx" |
country: "SAINT VINCENT AND THE GRENADINES" |
area: "WorldwideEx" |
country: "SAN MARINO" |
area: "WorldwideEx" |
country: "SAO TOME AND PRINCIPE" |
area: "WorldwideEx" |
country: "SAUDI ARABIA" |
area: "WorldwideEx" |
country: "SENEGAL" |
area: "WorldwideEx" |
country: "SEYCHELLES" |
area: "WorldwideEx" |
country: "SIERRA LEONE" |
area: "AsiaPacific" |
country: "SINGAPORE" |
area: "WorldwideEx" |
country: "SLOVAKIA" |
area: "WorldwideEx" |
country: "SLOVENIA" |
area: "WorldwideEx" |
country: "SOLOMON ISLANDS" |
area: "WorldwideEx" |
country: "SOUTH AFRICA" |
area: "AsiaPacific" |
country: "SOUTH KOREA" |
area: "WorldwideEx" |
country: "SLOVENIA" |
area: "WorldwideEx" |
country: "SPAIN" |
area: "AsiaPacific" |
country: "SRI LANKA" |
area: "WorldwideEx" |
country: "SURINAME" |
area: "WorldwideEx" |
country: "SWEDEN" |
area: "WorldwideEx" |
country: "SWITZERLAND" |
area: "AsiaPacific" |
country: "TAIWAN" |
area: "WorldwideEx" |
country: "TAJIKISTAN" |
area: "WorldwideEx" |
country: "TANZANIA" |
area: "AsiaPacific" |
country: "THAILAND" |
area: "AsiaPacific" |
country: "TIBET" |
area: "WorldwideEx" |
country: "TOGO" |
area: "WorldwideEx" |
country: "TRINIDAD AND TOBAGO" |
area: "WorldwideEx" |
country: "TUNISIA" |
area: "WorldwideEx" |
country: "TURKEY" |
area: "WorldwideEx" |
country: "TURKS AND CAICOS ISLANDS" |
area: "WorldwideEx" |
country: "UKRAINE" |
area: "WorldwideEx" |
country: "UNITED ARAB EMIRATES" |
area: "WorldwideEx" |
country: "UNITED KINGDOM" |
area: "Worldwide" |
country: "UNITED STATES" |
area: "WorldwideEx" |
country: "URUGUAY" |
area: "AsiaPacific" |
country: "UZBEKISTAN" |
area: "WorldwideEx" |
country: "VANUATU" |
area: "WorldwideEx" |
country: "VATICAN CITY" |
area: "WorldwideEx" |
country: "VENEZUELA" |
area: "AsiaPacific" |
country: "VIETNAM" |
area: "WorldwideEx" |
country: "WESTERN SAHARA" |
area: "WorldwideEx" |
country: "ZAMBIA" |
Integration to Production
You need to generate a new Application and API Key from our production API Portal at apiportal.tuneprotect.com. You can self-signup via the production API Portal (reach out to us to tell that you have done so), and further credentials (if necessary) will be provided by the Tune Protect team.
Once the necessary approvals are given for signup and API subscription, call api.tuneprotect.com instead of apiuat.tuneprotect.com to reach the production APIs.
Appendix
Product Code Mapping:
Product | Product Code |
---|---|
Motor Easy | MOTOREASY |
Home Easy | HOHH |
Pro-Health Medical | Pro-Health |
Travel Easy | TRAVELEASY |
PA Easy | PAEASY |
Sports+ | SPORTSPLUS |
Dental Easy | DENTALEASY |
Guard Easy | GUARDEASY |
Ride Easy | RIDEEASY |
EasyCare PA | EASYPA |
Travel Inbound | TRAVELINBOUND |
Home Shield | HOME-SHIELD |
Critical Illness | CRITICALSAFE |
Bike Easy | MOTORCYCLE |
Location Mapping Values
State | Value to be Passed |
---|---|
Johor | Johor |
Kedah | Kedah |
Kelantan | Kelantan |
Melaka | Melaka |
Negeri Sembilan | Negeri_Sembilan |
Pahang | Pahang |
Perak | Perak |
Perlis | Perlis |
Pulau Pinang | Pulau_Pinang |
Sabah | Sabah |
Sarawak | Sarawak |
Selangor | Selangor |
Terengganu | Terengganu |
Wilayah Persekutuan | Wilayah_Persekutuan |
Payment Method – Mappings
- Credit Card
- FPX
- EPP (Installment Payment)
Details Quotation – Mappings
No | Rate Key | Description |
---|---|---|
1 | BAPA | Base Premium Amount |
1.1 | LOAD | Loading (if applicable) |
1.2 | NCD | - NCD |
1.3 | NCDPerc | - NCD% |
2 | TOTALEXTRAS | Extra Benefits |
2.1 | PAYDOPTION | PAYD |
2.2 | windScreen | Wind Screen |
2.3 | sprayPainting | Spray Painting |
2.4 | inconvenienceAllowance | Inconvenience Allowance |
2.5 | llp | Legal Liability to Passengers |
2.6 | src | Strike, riot & civil commotion |
2.7 | special Perils | special Perils |
2.8 | llop | Legal Liability of Passengers |
2.9 | rideEasy | Ride Easy |
2.10 | driver | Additional Driver |
3 | GROSS | Net Premium |
3.1 | ONLINEDISC | -ONLINE REBATE |
3.2 | ONLINEDISCPERC | -ONLINE REBATE% |
3.3 | SST | SST |
3.4 | SSTPerc | SST (%) |
3.5 | SD_ME | STAMP DUTY(MOTOR EASY) |
3.6 | SD_RE | STAMP DUTY(RIDE EASY) |
4 | TotalAmountPayable | TOTAL PREMIUM |
4.1 | EXCESS | EXCESS AMOUNT |
API parameter values:
API | Parameter | Parameter Value |
---|---|---|
Update Quote | gender | Male, Female |
Errors
The TuneProtect API uses the following error codes:
SL.NO. | ERROR CODES | TITLE | MESSAGE |
---|---|---|---|
1 | TAOS_ERROR_ PREMIUM_01 |
NVIC not found | Thank you for choosing Tune Protect Motor Easy. Unfortunately, we can't process your request. Please try again later or contact us for further assistance. |
2 | TAOS_ERROR _PREMIUM_05 |
Error | Sum insured exceed acceptance limit. |
3 | TAOS_ERROR _PREMIUM_10 |
Authentication failed | Thank you for choosing Tune Protect Motor Easy. Unfortunately, we can't process your request. Please try again later or contact us for further assistance. |
4 | TAOS_ERROR _PREMIUM_11 |
Error | Please select Vehicle Location |
5 | TAOS_ERROR _PREMIUM_12 |
Invalid Vehicle Number | Please re-enter your Vehicle Number or contact us for further assistance. |
6 | TAOS_ERROR _PREMIUM_13 |
Invalid ID number. | Please re-enter your ID number or contact us for further assistance. |
7 | TAOS_ERROR _PREMIUM_14 |
Renewal date exceeds 60 days | Thank you for choosing Tune Protect Motor Easy. Unfortunately, we can't process your request as your motor insurance renewal date is more than 60 days away. |
8 | TAOS_ERROR _PREMIUM_15 |
Exceeded policy renewal period | You have exeeded the policy renewal period of 60 days and will not be able to make your renewal online. Please contact us for further assistance. |
9 | TAOS_ERROR _PREMIUM_16 |
Vehicle engine capacity exceeded | Thank you for choosing Tune Protect Motor Easy. Unfortunately, we do not accept vehicles above 2500 CC. |
10 | TAOS_ERROR _PREMIUM_17 |
Vehicle is older than 15 years | Thank you for choosing Tune Protect Motor Easy. Unfortunately, we do not accept vehicles above 15 years of age. |
11 | TAOS_ERROR _PREMIUM_21 |
Error | Thank you for choosing Tune Protect Motor Easy. Unfortunately, we can't process your request right now. Please try again later. |
12 | TAOS_ERROR _PREMIUM_99 |
Error | Thank you for choosing Tune Protect Motor Easy. Unfortunately, we can't process your request right now. Please try again later or contact us for further assistance. |
13 | TAOS_ERROR _QUOTATION_10 |
Error | Thank you for choosing Tune Protect Motor Easy. Unfortunately, we can't process your request. Please try again later or contact us for further assistance. |
14 | TAOS_ERROR _QUOTATION_11 |
Please select Vehicle Location | Thank you for choosing Tune Protect Motor Easy. Unfortunately, we can't process your request. Please try again later or contact us for further assistance. |
15 | TAOS_ERROR _PURCHASE_10 |
Error | Thank you for choosing Tune Protect Motor Easy. Unfortunately, we can't process your request. Please try again later or contact us for further assistance. |
16 | TAOS_ERROR _PURCHASE_11 |
Error | Please select Vehicle Location |
17 | TAOS_ERROR _PURCHASE_09 |
JPJ Status Timed Out | Thank you for choosing Tune Protect Motor Easy. Unfortunately, we can't process your request. Please try again later or contact us for further assistance. |
18 | TAOS_ERROR _PURCHASE_07 |
Email address is empty! | Please enter a valid email address. |
19 | TAOS_ERROR _PURCHASE_04 |
Policy Creation failed | Thank you for choosing Tune Protect Motor Easy. Unfortunately, we can't process your request right now. Please try again later. |
20 | TAOS_ERROR _PURCHASE_08 |
JPJ Submission Failed | Thank you for choosing Tune Protect Motor Easy. Unfortunately, we can't process your request. Please contact us for further assistance. |
21 | TAOS_ERROR _PURCHASE_06 |
Report generation failed | Thank you for choosing Tune Protect Motor Easy. Unfortunately, we can't process your request. Please contact us for further assistance. |
22 | TAOS_ERROR _VIX_01 |
No NVIC | Thank you for choosing Tune Motor Easy. Unfortunately, we cannot process your request. Please Contact us for further assistance. |
23 | TAOS_ERROR _VIX_02 |
Error | Thank you for choosing Tune Protect Motor Easy. Unfortunately, we can't process your request. Please try again later or contact us for further assistance. |
24 | TAOS_ERROR _VIX_03 |
Error | Thank you for choosing Tune Protect Motor Easy. Unfortunately, we can't process your request. Please try again later or contact us for further assistance. |
25 | TAOS_ERROR _VIX_04 |
Error | Thank you for choosing Tune Protect Motor Easy. Unfortunately, we can't process your request. Please try again later or contact us for further assistance. |
26 | TAOS_ERROR _VIX_05 |
Error | Toyota models – Land Cruiser, Harrier, Hilux, Alphard, Vellfire, Fortuner; Mitsubishi models – Triton, Storm; and all sports models and high performance models are not acceptable |
27 | TAOS_ERROR _VIX_06 |
Error | Thank you for choosing Tune Protect Motor Easy. Unfortunately, we can't process your request. Please try again later or contact us for further assistance. |
28 | TAOS_ERROR _VIX_07 |
Error | Thank you for choosing Tune Protect Motor Easy. Unfortunately, we can't process your request. Please try again later or contact us for further assistance. |
29 | TAOS_ERROR _VIX_08 |
Error | Thank you for choosing Tune Protect Motor Easy. Unfortunately, we can't process your request. Please try again later or contact us for further assistance. |
30 | TAOS_ERROR _VIX_09 |
Error | Thank you for choosing Tune Protect Motor Easy. Unfortunately, we can't process your request. Please try again later or contact us for further assistance. |
31 | TAOS_ERROR _VIX_10 |
Error | Thank you for choosing Tune Protect Motor Easy. Unfortunately, we can't process your request. Please try again later or contact us for further assistance. |
32 | TAOS_ERROR _VIX_11 |
Error | Thank you for choosing Tune Protect Motor Easy. Unfortunately, we can't process your request. Please try again later or contact us for further assistance. |
33 | TAOS_ERROR _VIX_12 |
Vehicle not found | Please enter a valid Vehicle Registration Number. |
34 | TAOS_ERROR _VIX_13 |
Invalid NRIC | Please re-enter your NRIC number or contact us for further assistance. |
35 | TAOS_ERROR _VIX_14 |
Renewal date exceeds 60 Days | Thank you for choosing Tune Protect Motor Easy. Unfortunately, we can't process your request as your motor insurance renewal date is more than 60 days away. |
36 | TAOS_ERROR _VIX_15 |
Error | Thank you for choosing Tune Protect Motor Easy. Unfortunately, we can't process your request. Please try again later or contact us for further assistance. |
37 | TAOS_ERROR _VIX_16 |
Error | Thank you for choosing Tune Protect Motor Easy. Unfortunately, we cannot process your request because your vehicle engine capacity(CC) is more than 2500. Please Contact us https://www.tuneprotect.com/corporate/ malaysia/contact-us/?enquiry_type =Motor%20Online%20Enquiry for further assistance. |
38 | TAOS_ERROR _VIX_17 |
Vehicle Age more then 15 years. | Thank you for choosing Tune Protect Motor Easy. Unfortunately, we can't process your request. Please try again later or contact us for further assistance. |
39 | TAOS_ERROR _VIX_18 |
Error | Thank you for choosing Tune Protect Motor Easy. Unfortunately, we can't process your request. Please try again later or contact us for further assistance. |
40 | TAOS_ERROR _VIX_19 |
Error | Thank you for choosing Tune Protect Motor Easy. Unfortunately, we can't process your request. Please try again later or contact us for further assistance. |
41 | TAOS_ERROR _VIX_20 |
Error | Thank you for choosing Tune Protect Motor Easy. Unfortunately, we can't process your request. Please try again later or contact us for further assistance. |
42 | TAOS_ERROR _VIX_21 |
NCD Lookup Failure | Thank you for choosing Tune Protect Motor Easy. Unfortunately, we can't process your request. Please try again later or contact us for further assistance. |
43 | TAOS_ERROR _VIX_22 |
Error | Thank you for choosing Tune Protect Motor Easy. Unfortunately, we can't process your request. Please try again later or contact us for further assistance. |
44 | TAOS_ERROR _VIX_23 |
Error | Thank you for choosing Tune Protect Motor Easy. Unfortunately, we can't process your request. Please try again later or contact us for further assistance. |
45 | TAOS_ERROR _VIX_24 |
Error | Thank you for choosing Tune Protect Motor Easy. Unfortunately, we can't process your request. Please try again later or contact us for further assistance. |
46 | TAOS_ERROR _VIX_25 |
Error | Thank you for choosing Tune Protect Motor Easy. Unfortunately, we can't process your request. Please try again later or contact us for further assistance. |
47 | TAOS_QUOTE _EXPIRED |
Taos quote object not found | Taos quote object not found |
48 | AOS_NO_PLAN | Taos plan not found | Taos plan not found |
49 | INVALID_ PARAMETER |
The dob field doesn't match with the nric data | The dob field doesn't match with the nric data |
50 | GET_PREMIUM _AMOUNT _API_ERROR |
Taos get premium API error | Taos get premium API error. |
51 | CHANNEL PARTNER APPLICATION_ SETTINGS _NOT_FOUND |
Channel partner application settings not found | Channel partner application settings not found. |
52 | TAOS_MAL FORMED_ URL_ERROR |
Taos malformed URL error. | Taos malformed URL error. |
53 | API_CONNECTION _ERROR |
Taos API connection error. | Taos API connection error. |
54 | TAOS_CREATE _QUOTATION _ERROR |
Create quotation API error. | Create quotation API error. |
55 | QUOTE_NOT _FOUND |
Create Quotation failed |
Create Quotation failed |
56 | CREATE POLICY API_ERROR |
Taos create policy API failed | Taos create policy API failed |
57 | POLICY_CREATION _FAILED |
Create Policy failed | Create Policy failed |
58 | VEHICLE_DETAILS _MISSING |
Vehicle Details | Vehicle Details |
59 | FETCH_ VEHICLE_ DETAILS_ERROR |
Fetch vehicle details API error. | Fetch vehicle details API error. |
60 | VEHICLE_ VARIABLE _NOT_FOUND |
Vehicle variant not found | Vehicle variant not found |
61 | GET_PREMIUM _FAILED |
Get premium failed | Get premium failed |
62 | GET_PREMIUM _AMOUNT _API_ERROR |
Taos get premium API error. | Taos get premium API error. |
63 | VEHICLE _VARIABLE _NOT_FOUND |
Vehicle number not given | Vehicle number not given |
64 | NRIC_NOT_ FOUND |
NRIC not given | NRIC not given |
65 | LOCATION_NOT_ FOUND |
location not given | location not given |
66 | TAOS_QUOTE AMOUNT _MISMATCH |
Create quotation failed. | Create quotation failed. TAOS quote amount mismatch |
67 | VEHICLE_ VARIANT _NOT_MATC HING_FOR _PRIVATE_CAR |
Invalid vehicle variant | Invalid vehicle variant |
68 | DOB_NOT_ VALID |
Invalid Date Of Birth |
Invalid Date Of Birth |
69 | SECURITY_ QUESTION VERIFICATION FAILED |
Incorrect secu rity answer |
You have entered the wrong answer. Your account will be locked if you continue to input the wrong answer. Number of attempts remaining is {remainingCount}. |
70 | ACCOUNT_ TEMPO RARILY_ LOCKED |
Account tempo rarily locked |
Your account has been temporarily locked due to multiple wrong PIN entries. Please try again after {hours} hours {minutes} minutes {seconds} seconds. |
71 | WRONG_ MULTIPLE _TAC |
Account tempo rarily locked |
Account temporarily locked |
72 | VERIFIC ATION_FAILED |
TAC verifica tion failed |
The TAC you have entered is incorrect. Please check and try again. |
73 | TAC_ EXPIRED |
TAC expired | Please request for a new TAC and try again. |
74 | TAC_ALR EADY_SENT |
TAC alr eady sent |
We've already sent you a TAC on your previous request. Please try again later. |
75 | USER_ NOT_EXISTS |
Oops, we can’t find your details! | This phone number can't be found in our system. Please log in with a registered phone number. |
76 | NO_TAC_SENT | No TAC Sent |
We didn’t receive your TAC request. Please request for a new TAC. |
77 | NULL_QUES TION_ANSWER |
Oops, something went wrong! |
Your Security Question answer is empty. |
78 | NOT_REGI STERED |
NOT_REGI STERED |
Please create an account to proceed. |
79 | INVALID_ PASSWORD |
INVALID_ PASSWORD |
Please key in the correct PIN |
80 | ALREADY_USED | ALREADY_USED | You cannot set a previously used PIN. Please choose a new one |
81 | PARTNER_ NOT_EXISTS |
PARTNER_ NOT_EXISTS |
There was an error in processing your request. Please try again. |
82 | EXISTING _USERNAME |
EXISTING _USERNAME |
Please set a different Username |
83 | EXISTING _EMAIL |
EXISTING _EMAIL |
|
84 | INVALID _USERID |
INVALID _USERID |
Please try again or contact us for further assistance. |
85 | INVALID _USERID |
INVALID _USERID |
Please try again or contact us for further assistance. |
86 | NULL_ URL |
NULL_ URL |
We were not able to process your request. Please try again. |
87 | NEW_PASS WORD_EMPTY |
NEW_PASS WORD_EMPTY |
Please fill in your New Password |
88 | CURRENT PASSWORD EMPTY |
CURRENT_ PASSWORD_ EMPTY |
Please key in your password. |
89 | ALREADY_ USED_ PASSWORD |
ALREADY USED PASSWORD |
Looks like you've already used this password. Please select another. |
90 | INVALID_ CURRENT_ PASSWORD |
INVALID_ CURRENT_ PASSWORD |
Oops, the password you entered was incorrect! Please try again. |
91 | UPDATE_ FAILED |
UPDATE_ FAILED |
We were not able to save your details. Please try again. |
92 | QUOTE_NOT _FOUND |
QUOTE_NOT_ FOUND |
Sorry, we were not able to process your request. Please try again later. |
93 | CUSTOMER_ NOT_FOUND |
CUSTOMER_ NOT_FOUND |
We were unable to find your details in our system. Please try again! |
94 | SAVE_ FAILED |
SAVE_ FAILED |
We were not able to save your details. Please try again. |
95 | USER_NOT_ FOUND |
USER_NOT_ FOUND |
Sorry, we were not able to find your details. |
96 | CUSTOMER_ DETAILS_NOT_ FOUND |
CUSTOMER_ DETAILS_NOT_ FOUND |
We were unable to find your details in our system. Please try again! |
97 | QUOTE_OPTION _NOT_FOUND |
Oops, something went wrong! |
We were not able to process your request. Please contact us for further assistance. |
98 | INVALID_ VEHICLE_REGISTR ATION_NUMBER |
Invalid vehi cle registrati on number |
You have entered an invalid vehicle registration number. Please try again with a valid registration number. |
99 | INVALID_ NRIC_NUMBER |
Invalid NRIC number |
Please enter your NRIC number again or contact us for further assistance. |
100 | TAC_VERIF ICATION_FAILED |
Tac Verif ication failed |
The TAC you have entered is incorrect. Please enter the correct TAC. |
101 | INVALID_EN GINE_CAPACITY |
Invalid en gine capacity |
Your vehicle engine capacity (CC) is more than 2500. Currently, we do not cover vehicles above 2500 CC. |
102 | GET_PREMIUM _FAILED |
Unable to get Premium |
We were unable to get the Premium for this vehicle. Please try again. |