Endpoints for accessing age group information and rates.
GET /age-groups#
Retrieve all available CPF age groups with contribution and distribution rates.
Response#
Example#
GET /age-group/find#
Find the applicable age group for a specific age.
Query Parameters#
| Parameter | Type | Required | Description |
|---|---|---|---|
age | integer | Yes | Age in years (non-negative) |
Response#
Returns a single AgeGroup object.
Example#
Errors#
| Status | Error |
|---|---|
| 400 | Missing or invalid age parameter |
GET /age/from-birthdate#
Convert a birth date to current age.
Query Parameters#
| Parameter | Type | Required | Description |
|---|---|---|---|
birthDate | string | Yes | Date in MM/YYYY format (e.g., “03/1990”) |
Response#
Example#
Errors#
| Status | Error |
|---|---|
| 400 | Invalid format, future date, or parse errors |