The Goals API lets you define savings targets with a name, an amount to reach, an optional deadline, a color, and an icon.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/soker90/finper/llms.txt
Use this file to discover all available pages before exploring further.
POST /api/goals/:id/fund and POST /api/goals/:id/withdraw adjust currentAmount in real time. All amounts are rounded to 2 decimal places.
GOAL_COLORS enum
| Hex value |
|---|
#4CAF50 |
#2196F3 |
#9C27B0 |
#FF9800 |
#F44336 |
#00BCD4 |
#795548 |
#607D8B |
#E91E63 |
#FFC107 |
GOAL_ICONS enum
| Icon name |
|---|
DollarOutlined |
HomeOutlined |
CarOutlined |
LaptopOutlined |
HeartOutlined |
RocketOutlined |
GiftOutlined |
BankOutlined |
TrophyOutlined |
StarOutlined |
POST /api/goals
Create a new savings goal.Descriptive label for the goal (e.g.
"Emergency Fund", "Holiday 2025").The amount you want to reach. Must be positive.
Starting balance. Defaults to
0 if omitted. Must be ≥ 0.Target date in ISO 8601 format (e.g.
"2025-12-31"). Optional.Hex colour for the UI indicator. Must be one of the
GOAL_COLORS values listed above.Ant Design icon name. Must be one of the
GOAL_ICONS values listed above.GET /api/goals
List all goals for the authenticated user.GET /api/goals/:id
Retrieve a single goal by ID.Goal ID.
PUT /api/goals/:id
Edit an existing goal. All fields are optional; only provided fields are updated. Note thatcurrentAmount is not editable via this endpoint — use /fund and /withdraw instead.
Goal ID.
New label.
New target amount. Must be positive.
New deadline in ISO 8601 format, or
null to clear.New colour hex from
GOAL_COLORS.New icon name from
GOAL_ICONS.DELETE /api/goals/:id
Permanently delete a goal.Goal ID.
POST /api/goals/:id/fund
Add money to a goal. IncreasescurrentAmount by amount.
Goal ID.
Amount to add. Must be positive.
currentAmount is rounded to 2 decimal places after each fund or withdraw operation.currentAmount.
POST /api/goals/:id/withdraw
Remove money from a goal. DecreasescurrentAmount by amount.
Goal ID.
Amount to withdraw. Must be positive.
currentAmount.