API ReferenceCalculation
Batch calculate CPF contributions
Calculate CPF contributions for multiple income scenarios (up to 100).
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/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"
}{
"error": "Rate limit exceeded"
}