Skip to main content

Calculate CSM Amortization

  • method: POST
  • headers:
    • content-type: application/json
    • authorization: API Key token
  • endpoint: /csm/lrc/:run_id/csm_amortization

request body payload

  • no_of_months: integer. number of months.
  • classes: array of objects. optional. classes to include in pivot table. defaults to 'All'
  • sub_classes: array of objects. optional. sub classes to include in pivot table. defaults to 'All'

sample request

curl --location 'https://api.i17.actserv-africa.com/api/v2/csm/lrc/{{run-id-here}}/csm_amortization' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer API-KEY-goes-here' \
--data '{
"no_of_months:": 5
}

response payload

  • code: http status of the response
  • msg: message
  • csm_results: an object containing the CSM results:
    • valuation_date
    • csm_amortization
    • pivot_table
    • run_ratios

sample response

{
"code": 200,
"msg": "success",
"csm_results": {
"valuation_date": "2022-12-31",
"csm_amortization": [
{
"policy_no": "01/01/020/00509/2017",
"class": "Engineering",
"sub_class": "Contractors All Risks",
"underwriting_date": "2020-01-01",
"policy_commencement_date": "2020-01-01",
"policy_end_date": "2020-02-29",
"gross_premium_amount": 157024,
"acquisition_costs": 31405,
"cohort_underwriting_year": 2020,
"status": false,
"policy_period": 0,
"remaining_period": 0,
"gmm_csm": 0,
"cu_1": 0,
"cu_2": 0,
"cu_3": 0,
"cu_4": 0,
"cu_5": 0
},
{
"policy_no": "03/01/020/01090/2019",
"class": "Miscellaneous",
"sub_class": "Customs Bonds",
"underwriting_date": "2020-01-03",
"policy_commencement_date": "2020-01-03",
"policy_end_date": "2020-12-22",
"gross_premium_amount": 0,
"acquisition_costs": 0,
"cohort_underwriting_year": 2020,
"status": false,
"policy_period": 0,
"remaining_period": 0,
"gmm_csm": 0,
"cu_1": 0,
"cu_2": 0,
"cu_3": 0,
"cu_4": 0,
"cu_5": 0
}
],
"pivot_table": [
{
"class": "Engineering",
"sub_class": "Contractors All Risks ",
"cu_1": 110647.3195,
"cu_2": 99939.5144,
"cu_3": 110647.3195,
"cu_4": 107078.0512,
"cu_5": 110647.3195
},
{
"class": "Miscellaneous",
"sub_class": "Customs Bonds ",
"cu_1": 10719.1971,
"cu_2": 0,
"cu_3": 0,
"cu_4": 0,
"cu_5": 0

}
],
"run_ratios": [
{
"class": "Engineering",
"measurement": "initial",
"type": "expense",
"2021": 9.8
},
{
"class": "Miscellaneous",
"measurement": "initial",
"type": "locked_interest_rate",
"2021": 16
}
]
}
}