curl -X POST https://api.homeaccount.com/budget \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "X-CSRF-Token: YOUR_CSRF_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"account_id": "123e4567-e89b-12d3-a456-426614174000",
"category_id": "987fcdeb-51a2-43d7-9f12-345678901234",
"amount": 50000,
"period": "monthly",
"alert_threshold": 85
}'
{
"success": true,
"data": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"account_id": "123e4567-e89b-12d3-a456-426614174000",
"category_id": "987fcdeb-51a2-43d7-9f12-345678901234",
"amount": 50000,
"period": "monthly",
"alert_threshold": 85,
"created_at": "2026-03-05T10:30:00.000Z",
"updated_at": "2026-03-05T10:30:00.000Z"
}
}
Create a new budget for a category
curl -X POST https://api.homeaccount.com/budget \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "X-CSRF-Token: YOUR_CSRF_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"account_id": "123e4567-e89b-12d3-a456-426614174000",
"category_id": "987fcdeb-51a2-43d7-9f12-345678901234",
"amount": 50000,
"period": "monthly",
"alert_threshold": 85
}'
{
"success": true,
"data": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"account_id": "123e4567-e89b-12d3-a456-426614174000",
"category_id": "987fcdeb-51a2-43d7-9f12-345678901234",
"amount": 50000,
"period": "monthly",
"alert_threshold": 85,
"created_at": "2026-03-05T10:30:00.000Z",
"updated_at": "2026-03-05T10:30:00.000Z"
}
}
weekly - Budget resets every weekmonthly - Budget resets every monthyearly - Budget resets every yearShow Budget object
weekly, monthly, or yearlycurl -X POST https://api.homeaccount.com/budget \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "X-CSRF-Token: YOUR_CSRF_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"account_id": "123e4567-e89b-12d3-a456-426614174000",
"category_id": "987fcdeb-51a2-43d7-9f12-345678901234",
"amount": 50000,
"period": "monthly",
"alert_threshold": 85
}'
{
"success": true,
"data": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"account_id": "123e4567-e89b-12d3-a456-426614174000",
"category_id": "987fcdeb-51a2-43d7-9f12-345678901234",
"amount": 50000,
"period": "monthly",
"alert_threshold": 85,
"created_at": "2026-03-05T10:30:00.000Z",
"updated_at": "2026-03-05T10:30:00.000Z"
}
}
400 - Invalid request parameters or budget already exists for category401 - Missing or invalid authentication token403 - Invalid CSRF token500 - Internal server error