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:

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"
}