Calculate Discount Component
- method: POST
- headers:
- content-type: application/json
- authorization: API Key token
- endpoint:
/discount_component
request body payload
claims_triangles: array of objects. claims triangle data.yield_curve: array of objects. yield curve data.classification_cols: array of objects. classification columns. Must be column names in claims triangles.loss_period: string. loss period column. Must be a column name in claims triangles.months_in_period: integer. number of months in a period. either1,3,6or12.payment_assumption: integer. payment assumption. either0.5or1.
sample request
curl --location 'https://api.i17.actserv-africa.com/api/v2/discount_component' \
--header 'Authorization: Bearer API-KEY-goes-here' \
--data-raw '{
"classification_cols": ["class_of_business"],
"loss_period": "loss_period",
"months_in_period": 3,
"payment_assumption": 0.5,
"claims_triangles": [
{
"class_of_business": "INPATIENT OUTPATIENT",
"loss_period": "2019-05-31",
"0": 0,
"1": 0,
"2": 0,
"3": 0,
"4": 0,
"5": 0,
"6": 0,
"7": 0,
"8": 0,
"9": 0,
"10": 0,
"11": 0,
"12": 0,
"13": 0,
"14": 0,
"15": 0,
"16": 0,
"17": 0,
"18": 0,
"19": 0,
"20": 0,
"21": 0,
"22": 0,
"23": 0,
"24": 0,
"25": 0,
"26": 0,
"27": 0,
"28": 0,
"29": 0,
"30": 0,
"31": 0,
"32": 0,
"33": 0,
"34": 0,
"35": 0,
"36": 0,
"37": 0,
"38": 0,
"39": 0,
"40": 0,
"41": 0,
"42": 0,
"43": 0,
"44": 0,
"45": 0,
"46": 0,
"47": 0,
"48": 0,
"49": 0,
"50": 0,
"51": 0,
"52": 0,
"53": 0,
"54": 0,
"55": 0,
"56": 0,
"57": 0,
"58": 0,
"59": 0,
"60": 0,
"61": 0,
"62": 0,
"63": 0,
"64": 0,
"65": 0
},
{
"class_of_business": "INPATIENT OUTPATIENT",
"loss_period": "2019-06-30",
"0": 0,
"1": 0,
"2": 0,
"3": 0,
"4": 0,
"5": 0,
"6": 0,
"7": 0,
"8": 0,
"9": 0,
"10": 0,
"11": 0,
"12": 0,
"13": 0,
"14": 0,
"15": 0,
"16": 0,
"17": 0,
"18": 0,
"19": 475,
"20": 0,
"21": 3595,
"22": 0,
"23": 171,
"24": 0,
"25": 0,
"26": 0,
"27": 0,
"28": 0,
"29": 0,
"30": 0,
"31": 0,
"32": 0,
"33": 0,
"34": 0,
"35": 0,
"36": 0,
"37": 0,
"38": 0,
"39": 0,
"40": 0,
"41": 0,
"42": 0,
"43": 0,
"44": 0,
"45": 0,
"46": 0,
"47": 0,
"48": 0,
"49": 0,
"50": 0,
"51": 0,
"52": 0,
"53": 0,
"54": 0,
"55": 0,
"56": 0,
"57": 0,
"58": 0,
"59": 0,
"60": 0,
"61": 0,
"62": 0,
"63": 0,
"64": 0
},
{
"class_of_business": "INPATIENT OUTPATIENT",
"loss_period": "2019-07-31",
"0": 0,
"1": 0,
"2": 0,
"3": 0,
"4": 0,
"5": 0,
"6": 0,
"7": 1925,
"8": 0,
"9": 0,
"10": 0,
"11": 0,
"12": 0,
"13": 0,
"14": 0,
"15": 0,
"16": 0,
"17": 0,
"18": 195,
"19": 0,
"20": 0,
"21": 0,
"22": 6641,
"23": 6002,
"24": 0,
"25": 0,
"26": 0,
"27": 0,
"28": 0,
"29": 0,
"30": 0,
"31": 0,
"32": 0,
"33": 0,
"34": 0,
"35": 0,
"36": 0,
"37": 0,
"38": 0,
"39": 0,
"40": 0,
"41": 0,
"42": 0,
"43": 0,
"44": 0,
"45": 0,
"46": 0,
"47": 0,
"48": 0,
"49": 0,
"50": 0,
"51": 0,
"52": 0,
"53": 0,
"54": 0,
"55": 0,
"56": 0,
"57": 0,
"58": 0,
"59": 0,
"60": 0,
"61": 0,
"62": 0,
"63": 0
}
]
}'
response payload
code: http status of the responsemsg: messagediscount_component: an object containing the discount component results.
sample response
{
"code": 200,
"msg": "success",
"discount_component": {
"class_of_business": [
"ACCIDENT",
"BIASHARA SALAMA",
"DOMESTIC PACKAGE",
"ENGINEERING",
"FIRE INDUSTRIAL"
],
"discount_component": [
0.1003,
0.0097,
0.0102,
0.0318,
0.0342
]
}
}