Endpoints for calculating CPF contributions for single income, batch scenarios, and multi-year projections.
POST /calculate#
Calculate CPF contributions for a single income amount.
Request Body#
Response#
Example#
POST /calculate/batch#
Calculate CPF contributions for multiple income scenarios (up to 100).
Request Body#
Constraints#
- Maximum 100 scenarios per request
- Array cannot be empty
Response#
Returns an array of ComputedResult objects matching input scenarios.
Example#
POST /projection#
Project yearly OA, SA, MA and RA balances with contributions, interest, retirement milestones and simplified CPF LIFE estimates. Every response also includes a projections array of yearly contributions with cumulative totals.
The endpoint accepts two request shapes. Use the full request for balance projections with housing, top-up and transfer assumptions. The short request (income, age, years) is kept for backward compatibility.
Request Body#
Constraints#
- Provide
startAgeorbirthDate endAgemust be at leaststartAge- Maximum 50 years per request (inclusive of start and end age)
Response#
Example#
Project from age 30 to 65 with a $500 monthly housing withdrawal and an $8,000 yearly SA top-up:
The response includes the CPF LIFE estimate at 65:
Short request, returning the same response shape: