curl --request GET \
--url http://localhost:5000/api/finance/list
[
{
"_id": "64c5d8b3e2f1a0b4c5d6e7f8",
"studentId": "64a1f2c3e4b0d5f6a7b8c9d0",
"amount": 250,
"status": "PENDING",
"__v": 0
},
{
"_id": "64c5d8b3e2f1a0b4c5d6e7f9",
"studentId": "64a1f2c3e4b0d5f6a7b8c9d2",
"amount": 500,
"status": "PAID",
"__v": 0
},
{
"_id": "64c5d8b3e2f1a0b4c5d6e7fa",
"studentId": "64a1f2c3e4b0d5f6a7b8c9d3",
"amount": 175,
"status": "OVERDUE",
"__v": 0
}
]
Finance
List fees
Retrieve all fee records in the system.
GET
/
api
/
finance
/
list
curl --request GET \
--url http://localhost:5000/api/finance/list
[
{
"_id": "64c5d8b3e2f1a0b4c5d6e7f8",
"studentId": "64a1f2c3e4b0d5f6a7b8c9d0",
"amount": 250,
"status": "PENDING",
"__v": 0
},
{
"_id": "64c5d8b3e2f1a0b4c5d6e7f9",
"studentId": "64a1f2c3e4b0d5f6a7b8c9d2",
"amount": 500,
"status": "PAID",
"__v": 0
},
{
"_id": "64c5d8b3e2f1a0b4c5d6e7fa",
"studentId": "64a1f2c3e4b0d5f6a7b8c9d3",
"amount": 175,
"status": "OVERDUE",
"__v": 0
}
]
Returns an array of all fee records stored in the database.
No authentication is required to call this endpoint.
This endpoint returns all fee records without any server-side filtering. To view fees for a specific student, retrieve the full list and filter by
studentId on the client side.Response
Returns an array of fee objects.string
The unique MongoDB ObjectId of the fee record.
string
The MongoDB ObjectId of the student the fee is assigned to.
number
The monetary amount of the fee.
string
The current payment status of the fee (e.g.,
PENDING, PAID, OVERDUE).number
Internal MongoDB document version key.
curl --request GET \
--url http://localhost:5000/api/finance/list
[
{
"_id": "64c5d8b3e2f1a0b4c5d6e7f8",
"studentId": "64a1f2c3e4b0d5f6a7b8c9d0",
"amount": 250,
"status": "PENDING",
"__v": 0
},
{
"_id": "64c5d8b3e2f1a0b4c5d6e7f9",
"studentId": "64a1f2c3e4b0d5f6a7b8c9d2",
"amount": 500,
"status": "PAID",
"__v": 0
},
{
"_id": "64c5d8b3e2f1a0b4c5d6e7fa",
"studentId": "64a1f2c3e4b0d5f6a7b8c9d3",
"amount": 175,
"status": "OVERDUE",
"__v": 0
}
]
⌘I