API ReferenceCalculation
Batch calculate CPF contributions
Calculate CPF contributions for multiple income scenarios (up to 100).
Request Body
application/json
scenarios*
Array of calculation scenarios (1-100)
Items
1 <= items <= 100Response Body
application/json
application/json
curl -X POST "https://loading/api/cpf/calculate/batch" \ -H "Content-Type: application/json" \ -d '{ "scenarios": [ { "income": 4000 }, { "income": 6000 }, { "income": 8000 } ] }'[
{
"contribution": {
"totalContribution": 0,
"employer": 0,
"employee": 0
},
"distribution": {
"OA": 0,
"SA": 0,
"MA": 0
},
"afterCpfContribution": 0
}
]{
"error": "string"
}