Skip to content

User - Extra Fees

Base URL: https://your-domain.com

Admin endpoints for managing extra fees/charges. All endpoints require admin/staff authentication.


Fetch All Extra Fees

Retrieve all extra fee configurations.

PropertyValue
EndpointFetch All Extra Fees
MethodGET
URL/api/v1/extra-fees
AuthenticationBearer Token

Request Headers:

HeaderValueRequired
Acceptapplication/jsonYes
AuthorizationBearer your-auth-tokenYes

Success Response (200 OK):

json
{
    "success": true,
    "data": [
        {
            "id": 1,
            "name": "Installation Fee",
            "amount": 500,
            "is_active": true
        }
    ]
}

Fetch Extra Fee

Retrieve details of a specific extra fee.

PropertyValue
EndpointFetch Extra Fee
MethodGET
URL/api/v1/extra-fees/{id}
AuthenticationBearer Token

Success Response (200 OK):

json
{
    "success": true,
    "data": {
        "id": 1,
        "name": "Installation Fee",
        "amount": 500,
        "is_active": true
    }
}

Create Extra Fee

Create a new extra fee configuration.

PropertyValue
EndpointCreate Extra Fee
MethodPOST
URL/api/v1/extra-fees
AuthenticationBearer Token

Request Body:

json
{
    "isp_id": 1,
    "branch_id": 1,
    "user_id": 1,
    "name": "Installation Fee",
    "amount": 500
}
ParameterTypeRequiredDescription
namestringYesFee name
amountdecimalYesFee amount

Success Response (201 Created):

json
{
    "success": true,
    "message": "Extra fee created successfully",
    "data": {
        "id": 1
    }
}

Update Extra Fee

Update an existing extra fee.

PropertyValue
EndpointUpdate Extra Fee
MethodPUT
URL/api/v1/extra-fees/{id}
AuthenticationBearer Token

Request Body:

json
{
    "name": "Updated Fee",
    "amount": 600
}

Success Response (200 OK):

json
{
    "success": true,
    "message": "Extra fee updated successfully"
}

Delete Extra Fee

Delete an extra fee.

PropertyValue
EndpointDelete Extra Fee
MethodDELETE
URL/api/v1/extra-fees/{id}
AuthenticationBearer Token

Success Response (200 OK):

json
{
    "success": true,
    "message": "Extra fee deleted successfully"
}

www.onezeroart.com