Fee Discounts API Documentation

1. Save Fee Discount

Save or update a fee discount.

Endpoint:

POST /fees/discount/save

Required Parameters:

Example cURL Request:

curl -X POST https://your-domain.com/fees/discount/save \
-H "Content-Type: application/json" \
-d '{
    "discountData": {
        "discount_type": "percentage",
        "discount_value": 15.00,
        "reason": "Early payment discount"
    }
}'

2. Delete Fee Discount

Delete a fee discount by its ID.

Endpoint:

POST /fees/discount/delete

Required Parameters:

Example cURL Request:

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

3. List Fee Discounts

Retrieve a paginated list of fee discounts.

Endpoint:

POST /fees/discount/list

Optional Parameters:

Example cURL Request:

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

4. Get Fee Discount

Retrieve details of a specific fee discount by its ID.

Endpoint:

POST /fees/discount/get

Required Parameters:

Example cURL Request:

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