Rating Engine

get
Get Policy Quotes

https://api.tint.ai/v2/policy/:policyId/quotes
You should call this endpoint whenever you need to display the insurance options (generally when the user is logged and has chosen an asset to rent). Through this call, you would be able to retrieve the recommended price and the plan details your UI needs.
Request
Response
Request
Path Parameters
policyId
required
string
Calculate the quotes for the given policy ID.
Response
200: OK
List of quotes calculated for the given policy.
[
{
"id": "eb3faaac-f7a7-476d-a6c8-18e071426efb",
"calculated_premium": 125.13,
"insurance_plan": {
"id": "f2b16261-1659-4f28-bd7f-0a4f56f70417",
"name": "Platinum",
"custom_attributes": { "state": "CA" }
},
"coverages": {
"physical-damage": {
"name": "Physical Damage",
"description": null,
"premium": 120.13,
"deductible": 500,
"limit": 89000,
"security_deposit": 0,
"custom_attributes": {}
},
"third-party-liability": {
"name": "Third-party liability",
"description": null,
"premium": 0,
"deductible": 0,
"limit": 1000000,
"security_deposit": 0,
"custom_attributes": {}
},
"roadside-assistance": {
"name": "Roadside assistance",
"description": null,
"premium": 5,
"deductible": 0,
"limit": 200,
"security_deposit": 0,
"custom_attributes": {}
}
}
}
]