curl --location --request POST 'https://api.i17.actserv-africa.com/api/v2/risk_adjustment' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"entity_type": "Insurer",
"loss_period_or_underwriting_year": "loss_period",
"percentiles_of_interest": "50, 75, 90, 95",
"process_distribution": "gamma",
"classification_cols": [
"class_of_business"
],
"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
},
{
"class_of_business": "INPATIENT OUTPATIENT",
"loss_period": "2019-08-31",
{
"code": 200,
"msg": "success",
"risk_adjustment": {
"predictive_distribution_of_reserves": [
{
"class_of_business": "ACCIDENT",
"loss_period": "2014-03-31",
"Latest": 16279500,
"Mean Ultimate": 16279500,
"Mean IBNR": 0,
"SD IBNR": 0,
"IBNR 50%": 0,
"IBNR 75%": 0,
"IBNR 90%": 0,
"IBNR 95%": 0,
"Ultimate 50%": 16279500,
"Ultimate 75%": 16279500,
"Ultimate 90%": 16279500,
"Ultimate 95%": 16279500
},
{
"class_of_business": "ACCIDENT",
"loss_period": "2014-06-30",
"Latest": 16780753,
"Mean Ultimate": 16780753,
"Mean IBNR": 0,
"SD IBNR": 0,
"IBNR 50%": 0,
"IBNR 75%": 0,
"IBNR 90%": 0,
"IBNR 95%": 0,
"Ultimate 50%": 16780753,
"Ultimate 75%": 16780753,
"Ultimate 90%": 16780753,
"Ultimate 95%": 16780753
},
{
"class_of_business": "ACCIDENT",
"loss_period": "2014-09-30",
"Latest": 18282858,
"Mean Ultimate": 18282858,
"Mean IBNR": 0,
"SD IBNR": 0,
"IBNR 50%": 0,
"IBNR 75%": 0,
"IBNR 90%": 0,
"IBNR 95%": 0,
"Ultimate 50%": 18282858,
"Ultimate 75%": 18282858,
"Ultimate 90%": 18282858,
"Ultimate 95%": 18282858
},
{
"class_of_business": "ACCIDENT",
"loss_period": "2014-12-31",
"Latest": 8756277,
"Mean Ultimate": 8756277,
"Mean IBNR": 0,
"SD IBNR": 0,
"IBNR 50%": 0,
"IBNR 75%": 0,
"IBNR 90%": 0,
"IBNR 95%": 0,
"Ultimate 50%": 8756277,
"Ultimate 75%": 8756277,
"Ultimate 90%": 8756277,
"Ultimate 95%": 8756277
}
],
"risk_adjustment": [
{
"class_of_business": "ACCIDENT",
"Latest": 430304826.32,
"Mean Ultimate": 442411739.5194,
"Mean IBNR": 12106913.1994,
"IBNR 50%": 3019241.4289,
"IBNR 75%": 13288669.6628,
"IBNR 90%": 37302478.447,
"IBNR 95%": 60273758.329,
"Ultimate 50%": 433324067.7489,
"Ultimate 75%": 443593495.9828,
"Ultimate 90%": 467607304.767,
"Ultimate 95%": 490578584.649,
"Risk Adjustment 50%": -9087671.7705,
"Risk Adjustment 75%": 1181756.4634,
"Risk Adjustment 90%": 25195565.2476,
"Risk Adjustment 95%": 48166845.1296,
"% Ratio Risk Adjustment 50%": "-75.06%",
"% Ratio Risk Adjustment 75%": "9.76%",
"% Ratio Risk Adjustment 90%": "208.11%",
"% Ratio Risk Adjustment 95%": "397.85%"
},
{
"class_of_business": "BIASHARA SALAMA",
"Latest": 427222395,
"Mean Ultimate": 427226566.8282,
"Mean IBNR": 4171.8282,
"IBNR 50%": 1.0159e-147,
"IBNR 75%": 1.2642e-31,
"IBNR 90%": 0.0021,
"IBNR 95%": 115.6134,
"Ultimate 50%": 427222395,
"Ultimate 75%": 427222395,
"Ultimate 90%": 427222395.0021,
"Ultimate 95%": 427222510.6134,
"Risk Adjustment 50%": -4171.8282,
"Risk Adjustment 75%": -4171.8282,
"Risk Adjustment 90%": -4171.8261,
"Risk Adjustment 95%": -4056.2149,
"% Ratio Risk Adjustment 50%": "-100%",
"% Ratio Risk Adjustment 75%": "-100%",
"% Ratio Risk Adjustment 90%": "-100%",
"% Ratio Risk Adjustment 95%": "-97.23%"
},
{
"class_of_business": "DOMESTIC PACKAGE",
"Latest": 181647096.15,
"Mean Ultimate": 181993356.61,
"Mean IBNR": 346260.46,
"IBNR 50%": 211294.1908,
"IBNR 75%": 448261.136,
"IBNR 90%": 798469.3716,
"IBNR 95%": 1118083.1939,
"Ultimate 50%": 181858390.3408,
"Ultimate 75%": 182095357.286,
"Ultimate 90%": 182445565.5216,
"Ultimate 95%": 182765179.3439,
"Risk Adjustment 50%": -134966.2692,
"Risk Adjustment 75%": 102000.676,
"Risk Adjustment 90%": 452208.9117,
"Risk Adjustment 95%": 771822.734,
"% Ratio Risk Adjustment 50%": "-38.98%",
"% Ratio Risk Adjustment 75%": "29.46%",
"% Ratio Risk Adjustment 90%": "130.6%",
"% Ratio Risk Adjustment 95%": "222.9%"
},
{
"class_of_business": "ENGINEERING",
"Latest": 427289677.52,
"Mean Ultimate": 476778428.03,
"Mean IBNR": 49488750.51,
"IBNR 50%": 38157071.9394,
"IBNR 75%": 65112622.3985,
"IBNR 90%": 102254410.0212,
"IBNR 95%": 135190943.9618,
"Ultimate 50%": 465446749.4594,
"Ultimate 75%": 492402299.9185,
"Ultimate 90%": 529544087.5412,
"Ultimate 95%": 562480621.4818,
"Risk Adjustment 50%": -11331678.5706,
"Risk Adjustment 75%": 15623871.8884,
"Risk Adjustment 90%": 52765659.5112,
"Risk Adjustment 95%": 85702193.4517,
"% Ratio Risk Adjustment 50%": "-22.9%",
"% Ratio Risk Adjustment 75%": "31.57%",
"% Ratio Risk Adjustment 90%": "106.62%",
"% Ratio Risk Adjustment 95%": "173.18%"
}
]
}
}