API Documentation
API ReferenceCalculation

Calculate CPF contributions

Calculate CPF contributions for a single income amount.

POST
/calculate

Request Body

application/json

income*number

Monthly gross income (non-negative)

Range0 <= value
date?string

Date in YYYY-MM-DD format (defaults to today)

Formatdate
age?number

Age for age-group lookup

Range0 <= value

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