Appearance
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.
| Property | Value |
|---|---|
| Endpoint | Fetch All Extra Fees |
| Method | GET |
| URL | /api/v1/extra-fees |
| Authentication | Bearer Token |
Request Headers:
| Header | Value | Required |
|---|---|---|
Accept | application/json | Yes |
Authorization | Bearer your-auth-token | Yes |
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.
| Property | Value |
|---|---|
| Endpoint | Fetch Extra Fee |
| Method | GET |
| URL | /api/v1/extra-fees/{id} |
| Authentication | Bearer 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.
| Property | Value |
|---|---|
| Endpoint | Create Extra Fee |
| Method | POST |
| URL | /api/v1/extra-fees |
| Authentication | Bearer Token |
Request Body:
json
{
"isp_id": 1,
"branch_id": 1,
"user_id": 1,
"name": "Installation Fee",
"amount": 500
}| Parameter | Type | Required | Description |
|---|---|---|---|
name | string | Yes | Fee name |
amount | decimal | Yes | Fee amount |
Success Response (201 Created):
json
{
"success": true,
"message": "Extra fee created successfully",
"data": {
"id": 1
}
}Update Extra Fee
Update an existing extra fee.
| Property | Value |
|---|---|
| Endpoint | Update Extra Fee |
| Method | PUT |
| URL | /api/v1/extra-fees/{id} |
| Authentication | Bearer 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.
| Property | Value |
|---|---|
| Endpoint | Delete Extra Fee |
| Method | DELETE |
| URL | /api/v1/extra-fees/{id} |
| Authentication | Bearer Token |
Success Response (200 OK):
json
{
"success": true,
"message": "Extra fee deleted successfully"
}