Save or update a fee structure along with its details.
POST /fees/structure/save
structureData (object) - The main structure data.group_id (int) - The ID of the fee group.class_id (int) - The ID of the class.class_level (string) - The level of the class (e.g., "10").due_date (date) - The due date for the fee structure.academic_year_id (int) - The ID of the academic year.structDetails (array) - An array of fee structure details.fee_category_id (int) - The ID of the fee category.amount (decimal) - The amount for the fee category.curl -X POST https://your-domain.com/fees/structure/save \
-H "Content-Type: application/json" \
-d '{
"structureData": {
"group_id": 1,
"class_id": 2,
"class_level": "10",
"due_date": "2024-09-01",
"academic_year_id": 3
},
"structDetails": [
{
"fee_category_id": 1,
"amount": 500.00
},
{
"fee_category_id": 2,
"amount": 300.00
}
]
}'
Delete a fee structure by its ID.
POST /fees/structure/delete
fee_structure_id (int) - The ID of the fee structure to delete.curl -X POST https://your-domain.com/fees/structure/delete \
-H "Content-Type: application/json" \
-d '{
"fee_structure_id": 1
}'
Retrieve a paginated list of fee structures.
POST /fees/structure/list
offset (int) - The number of records to skip. Default is 0.limit (int) - The number of records to return. Default is 10.curl -X POST https://your-domain.com/fees/structure/list \
-H "Content-Type: application/json" \
-d '{
"offset": 0,
"limit": 10
}'
Retrieve details of a specific fee structure by its ID.
POST /fees/structure/get
fee_structure_id (int) - The ID of the fee structure to retrieve.curl -X POST https://your-domain.com/fees/structure/get \
-H "Content-Type: application/json" \
-d '{
"fee_structure_id": 1
}'