API ReferenceCalculation
Calculate CPF contributions
Calculate CPF contributions for a single income amount.
Request Body
application/json
income*number
Monthly gross income (non-negative)
Range
0 <= valuedate?string
Date in YYYY-MM-DD format (defaults to today)
Format
dateage?number
Age for age-group lookup
Range
0 <= valueResponse Body
application/json
application/json
curl -X POST "https://loading/api/cpf/calculate" \ -H "Content-Type: application/json" \ -d '{ "income": 5000, "age": 30 }'{
"contribution": {
"totalContribution": 1850,
"employer": 850,
"employee": 1000
},
"distribution": {
"OA": 1085.5,
"SA": 277.5,
"MA": 487
},
"afterCpfContribution": 4000
}{
"error": "string"
}