Skip to main content

ProfessionalIndemnityQuotationDto

Get policy quote for Professional Indemnity policy. This endpoint allows you to professional indemnnity policy quote.

POST /api/v1/get-quote

Path param

authorization : *bearer
REQUEST BODY SCHEMA: application/json


NameDescriptionRequiredType
assetsPolicy assets details RequiredArray of Objects
coverTypeRecommended if policy has a coverType. It must provided in additional to policyType, otherwise quotation results might be wrong because wrong products will be queriedNot Requiredstring
policyTypeType of policy. Enum: "AUTO" "BANKERS_INDEMNITY" "BLANKET_BOND" "BONDS" "BOILER_OR_PRESSURE_VESSEL" "BURGLARY" "BUSINESS_INTERRUPTION"Not Requiredstring
currencyPolicy currency code. Refer to/currencies for available currencies. Enum: "GHS" "GBP" "USD" "EUR" Requiredstring
endDatePolicy end date in iso8601 format Requiredstring
productIdTo get quotation for a single known product, provide the productId. If neither productIds or productId is not provided, the product will be selected based on the policyType and or coverTypeNot Requiredstring
productIdsList of product ids. Selected products MUST have the same category & subcategory. If productIds are not provided, the product will be selected based on the productCategory and or productSubcategoryNot RequiredArray of strings
startDatePolicy start date in iso8601 format Requiredstring
fleetDiscountRateFleets discount rate. Default: 0Not Requiredobject
exchangeRateCurrent exchange rate. Default: 1Not Requirednumber

Response

CodeDescription
200Quote details
409Unauthorized

Request Sample

Content type
application/json
Example: ProfessionalIndemnityQuotationDto
[
{
"currency": "GHC",
"startDate": "2020-01-01T00:00:00.000Z",
"endDate": "2020-12-01T00:00:00.000Z",
"exchangeRate": 1,
"productIds": [
"619c0911b46b424f5f3e470f"
],
"productId": "619c0911b46b424f5f3e470f",
"policyType": "AUTO",
"coverType": "COMPREHENSIVE",
"assets": [
+ { .. }
]
}
...
]

Response Sample

Content type
application/json
Example: ProfessionalIndemnityQuotationRespDto
[
{
"assets": [ ],
"policy": {
"currency": "GHC",
"startDate": "2020-01-01T00:00:00.000Z",
"endDate": "2020-12-01T00:00:00.000Z",
"exchangeRate": 1,
"productIds": [],
"productId": "619c0911b46b424f5f3e470f",
"policyType": "AUTO",
"coverType": "COMPREHENSIVE",
"assets": []
},
"summary": {
"premium": 0,
"stickerFee": 0,
"commercialLevy": 0,
"basicPremium": 0,
"basicRate": 0
},
"product": {
"name": "Motor Insurance",
"code": "CLAGC",
"description": "lorem ipsum dolor sit amet",
"premiumRates": { },
"category": "AUTO",
"subCategory": "COMPREHENSIVE",
"benefits": [],
"otherCommission": {},
"status": "ACTIVE",
"distribution": "OFFLINE",
"id": "619c0911b46b424f5f3e470f",
"assignedTo": [],
"insurer": {},
"createdAt": "2020-05-05T00:00:00.000Z",
"assignedAt": "2020-05-05T00:00:00.000Z",
"updatedAt": "2020-05-05T00:00:00.000Z",
"createdBy": {},
"assignedBy": {},
"standardCommission": {},
"overriderCommission": {}
}
}
...
]