API ReferenceCalculation
Generate CPF projection
Generate multi-year CPF contribution projection with cumulative totals.
Request Body
application/json
income*number
Monthly income (non-negative)
Range
0 <= valueage*number
Starting age
Range
0 <= valueyears*integer
Number of years to project (1-50)
Range
1 <= value <= 50Response Body
application/json
application/json
curl -X POST "https://loading/api/cpf/projection" \ -H "Content-Type: application/json" \ -d '{ "income": 5000, "age": 30, "years": 5 }'{
"input": {
"income": 0,
"age": 0,
"years": 0
},
"projections": [
{
"year": 0,
"age": 0,
"ageGroup": "string",
"contribution": {
"totalContribution": 0,
"employer": 0,
"employee": 0
},
"cumulative": {
"totalContribution": 0,
"employer": 0,
"employee": 0
}
}
]
}{
"error": "string"
}