API Documentation
API ReferenceCalculation

Generate CPF projection

Generate multi-year CPF contribution projection with cumulative totals.

POST
/projection

Request Body

application/json

income*number

Monthly income (non-negative)

Range0 <= value
age*number

Starting age

Range0 <= value
years*integer

Number of years to project (1-50)

Range1 <= value <= 50

Response 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"
}