RAW Request Body
custom_code={custom_code}&class={class}&client_type={client_type}&client_discount={client_discount}&year_manufacture={year_manufacture}&model={model}&cc={cc}&est_value={est_value}&drivers_occupation={drivers_occupation}&drivers_age={drivers_age}&drivers_penalty={drivers_penalty}&drivers_experience={drivers_experience}&drivers_accident={drivers_accident}&drivers_suspension={drivers_suspension}&drivers_claim={drivers_claim}
custom_code string(64)
Optionally, specify a code for identify the response (e.g. your quote id / no.).
class integer(1)
Class of Insurance, 1 = Comprehensive (including Third-party) / 2 = Third-party Only.
client_type integer(1)
Client Type, 1 = Individual Client / 2 = Company Client
client_discount integer(3)
Optionally apply a discount for your client, default 0 (e.g. 10).
year_manufacture date(Y)
Between 16 years ago from today (e.g. 2021).
model integer(5)
Car Model id, retrieved from the getModels service (model_id).
cc integer(4)
Cylinder Capacity, retrieved from the getModels service (cc) +/-5%.
est_value integer(7)
Estimated Value, only required for Comprehensive (e.g. 100000).
drivers_occupation integer(3)
Occupation id, retrieved from the getOccupations service (occupation_id)
drivers_age integer(2)
Age of the driver (e.g. 35).
drivers_experience integer(2)
Driving experience of the driver, (e.g. 3)
drivers_penalty integer(2)
Penalty record(s) of the driver in the last 3 years (e.g. 0).
drivers_accident integer(2)
Accident record(s) of the driver in the last 3 years, 0 = No / 1 = Yes.
drivers_suspension integer(1)
License suspension of the driver in the last 3 years, 0 = No / 1 = Yes.
drivers_claim integer(1)
Having claims history of the driver in the last 3 years, 0 = No / 1 = Yes.
Header
Response
{
"status": 200,
"datetime": "2022-03-01 17:04:10",
"authorized": true,
"message": "The request was successfully completed",
"result": {
"referral": false,
"custom_code": "",
"class_name": "Third-party",
"client_type": "Individual Client",
"drivers": [
{
"occupation": "Logistics, Shipping, Transportation",
"age": "25-39",
"experience": "3+",
"penalty": "0",
"accident": "No",
"suspension": "No",
"claim": "No"
}
],
"premiums": {
"gross_premium_amt": "5000.00",
"cp_discount_pct": "0.00",
"cp_discount_amt": "0.00",
"mib_pct": "0.00",
"mib_amt": "0.00",
"levy_pct": "0.1",
"levy_amt": "5.00",
"total_premium_amt": "5005.00",
"commission_pct": "60.00",
"commission_amt": "3000.00"
},
"excesses": [
{
"code": "tppd_excess",
"description": "Third Party Property Damage",
"amt": "11000.00"
},
{
"code": "tppd_young_driver_excess",
"description": "TPPD Young Driver",
"amt": "11000.00"
},
{
"code": "tppd_inexperienced_driver_excess",
"description": "TPPD Inexperienced Driver",
"amt": "11000.00"
},
{
"code": "tppd_unnamed_driver_excess",
"description": "TPPD Unnamed Driver",
"amt": "11000.00"
}
]
}
}
referral boolean
If referral is equal to `true`, that means the premiums of the quote are not certain.
custom_code string(64)
Return your custom_code.
class_name string(13)
The class name of insurance.
client_type string(18)
Description of the client type.
drivers [object]
occupation string
Description of the occupation.
age string(5)
Age range of the driver.
experience string(5)
Description of the driving experience.
penalty string(5)
A number or a range of the penalty record(s).
accident string(3)
Description of the accident record.
suspension string(3)
Description of the license suspension record.
claim string(3)
Description of the claim record.
premiums object
gross_premium_amt string
cp_discount_pct string
The percentage of client discount.
cp_discount_amt string
Amount of client discount.
mib_pct string
mib_amt string
levy_pct string
levy_amt string
total_premium_amt string
commission_pct string
commission_amt string
excesses [object]
code string(32)
A unique excess code.
description string
Description of excess.
amt string(8)
Amount of excess.