Generate Fee Collection Report
curl -X POST http://localhost/api/reports/financial/fee-collection \
-H "Content-Type: application/json" \
-d '{
"filters": {
"academic_year_id": 1,
"class_id": 101,
"student_id": null
},
"downloadFormat": "pdf"
}'
Parameters:
- filters: An object containing filter criteria
- academic_year_id (optional): The academic year ID to filter the report
- class_id (optional): The class ID to filter the report by specific class
- student_id (optional): The student ID to filter the report by specific student
- downloadFormat: The format of the report to download (pdf, excel)
Example Response:
{
"status": 1,
"report": {
"student_data": [
{
"student_id": 123,
"first_name": "John",
"last_name": "Doe",
"class_name": "Grade 10",
"section": "A",
"total_fee": "1000.00",
"total_paid": "800.00",
"outstanding_amount": "200.00"
}
// more student data...
]
},
"download_url": "http://localhost/uploads/your_client_id/reports/financial/fee_collection_report_timestamp.pdf"
}