API ReferenceCalculation
Generate CPF projection
Generate multi-year CPF contribution projection with cumulative totals.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
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"
}{
"error": "Rate limit exceeded"
}