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.
Creates a new fee record and saves it to the database. Fee records track amounts owed by students and their current payment status.
No authentication is required to call this endpoint.
Request body
The MongoDB ObjectId of the student the fee is assigned to.
The monetary amount of the fee.
The payment status of the fee. Common values: PENDING, PAID, OVERDUE.
Response
Returns the newly created fee object.
The unique MongoDB ObjectId assigned to the fee record.
The MongoDB ObjectId of the student the fee belongs to.
The monetary amount of the fee.
The current payment status of the fee.
Internal MongoDB document version key.
curl --request POST \
--url http://localhost:5000/api/finance/create \
--header 'Content-Type: application/json' \
--data '{
"studentId": "64a1f2c3e4b0d5f6a7b8c9d0",
"amount": 250.00,
"status": "PENDING"
}'
{
"_id": "64c5d8b3e2f1a0b4c5d6e7f8",
"studentId": "64a1f2c3e4b0d5f6a7b8c9d0",
"amount": 250,
"status": "PENDING",
"__v": 0
}