API Documentation
API Reference

Age Groups

Retrieve CPF contribution and distribution rates by age bracket

Endpoints for accessing age group information and rates.

GET /age-groups

Retrieve all available CPF age groups with contribution and distribution rates.

Response

type  = <{
  : string;           // e.g., "35 and below"
  : number;
  ?: number;
  : {
    : number;            // Percentage as decimal
    : number;
  };
  : {
    : number;                  // Ordinary Account %
    : number;                  // Special Account %
    : number;                  // MediSave Account %
  };
}>

Example

curl https://simplycpf.com/api/cpf/age-groups
[
  {
    "description": "35 and below",
    "minAge": 0,
    "maxAge": 35,
    "contributionRate": {
      "employee": 0.2,
      "employer": 0.17
    },
    "distributionRate": {
      "OA": 0.6217,
      "SA": 0.1621,
      "MA": 0.2162
    }
  }
]

GET /age-group/find

Find the applicable age group for a specific age.

Query Parameters

ParameterTypeRequiredDescription
ageintegerYesAge in years (non-negative)

Response

Returns a single AgeGroup object.

Example

curl "https://simplycpf.com/api/cpf/age-group/find?age=45"
{
  "description": "Above 35 to 45",
  "minAge": 36,
  "maxAge": 45,
  "contributionRate": {
    "employee": 0.2,
    "employer": 0.17
  },
  "distributionRate": {
    "OA": 0.5677,
    "SA": 0.1891,
    "MA": 0.2432
  }
}

Errors

StatusError
400Missing or invalid age parameter

GET /age/from-birthdate

Convert a birth date to current age.

Query Parameters

ParameterTypeRequiredDescription
birthDatestringYesDate in MM/YYYY format (e.g., "03/1990")

Response

interface AgeFromBirthdateResponse {
  : string;    // Input birth date
  : number;          // Calculated current age
}

Example

curl "https://simplycpf.com/api/cpf/age/from-birthdate?birthDate=03/1990"
{
  "birthDate": "03/1990",
  "age": 34
}

Errors

StatusError
400Invalid format, future date, or parse errors

On this page