Skip to main content
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
  }
]

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/praveenarya123/sps-backend/llms.txt

Use this file to discover all available pages before exploring further.

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.
_id
string
The unique MongoDB ObjectId of the fee record.
studentId
string
The MongoDB ObjectId of the student the fee is assigned to.
amount
number
The monetary amount of the fee.
status
string
The current payment status of the fee (e.g., PENDING, PAID, OVERDUE).
__v
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
  }
]

Build docs developers (and LLMs) love