Fee Structures API Documentation

1. Save Fee Structure

Save or update a fee structure along with its details.

Endpoint:

POST /fees/structure/save

Required Parameters:

Example cURL Request:

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
        }
    ]
}'

2. Delete Fee Structure

Delete a fee structure by its ID.

Endpoint:

POST /fees/structure/delete

Required Parameters:

Example cURL Request:

curl -X POST https://your-domain.com/fees/structure/delete \
-H "Content-Type: application/json" \
-d '{
    "fee_structure_id": 1
}'

3. List Fee Structures

Retrieve a paginated list of fee structures.

Endpoint:

POST /fees/structure/list

Optional Parameters:

Example cURL Request:

curl -X POST https://your-domain.com/fees/structure/list \
-H "Content-Type: application/json" \
-d '{
    "offset": 0,
    "limit": 10
}'

4. Get Fee Structure

Retrieve details of a specific fee structure by its ID.

Endpoint:

POST /fees/structure/get

Required Parameters:

Example cURL Request:

curl -X POST https://your-domain.com/fees/structure/get \
-H "Content-Type: application/json" \
-d '{
    "fee_structure_id": 1
}'