Appearance
Subscriber
Base URL:
https://your-domain.com
Subscriber-specific endpoints for mobile app. All endpoints require subscriber authentication.
Subscriber Profile
Get the authenticated subscriber's basic profile information.
| Property | Value |
|---|---|
| Endpoint | Subscriber Profile |
| Method | GET |
| URL | /api/v1/subscriber/profile |
| Authentication | Bearer Token (Subscriber) |
Request Headers:
| Header | Value | Required |
|---|---|---|
Accept | application/json | Yes |
Authorization | Bearer subscriber-token | Yes |
Request Body: None
Success Response (200 OK):
json
{
"success": true,
"data": {
"id": 1,
"username": "subscriber1",
"fullname": "John Doe",
"email": "[email protected]",
"phone": "01712345678",
"address": "123 Main Street, Dhaka",
"package_id": 1,
"package_name": "10MB Package",
"expiration_date": "2025-12-31 23:59:59",
"status": "active",
"balance": 500.00,
"created_at": "2024-01-15 10:30:00"
}
}Error Response (401 Unauthorized):
json
{
"success": false,
"message": "Unauthenticated"
}Subscriber Profile Details (Mobile App)
Get comprehensive subscriber profile details including package info, usage statistics, and account status for mobile app display.
| Property | Value |
|---|---|
| Endpoint | Subscriber Profile Details |
| Method | GET |
| URL | /api/v1/subscriber/profile-details |
| Authentication | Bearer Token (Subscriber) |
Request Headers:
| Header | Value | Required |
|---|---|---|
Accept | application/json | Yes |
Authorization | Bearer subscriber-token | Yes |
Request Body: None
Success Response (200 OK):
json
{
"success": true,
"data": {
"subscriber": {
"id": 1,
"username": "subscriber1",
"fullname": "John Doe",
"email": "[email protected]",
"phone": "01712345678",
"address": "123 Main Street, Dhaka",
"identity": "1234567890",
"status": "active"
},
"package": {
"id": 1,
"name": "10MB Package",
"price": 1000,
"validity_days": 30,
"bandwidth_up": "10M",
"bandwidth_down": "10M"
},
"subscription": {
"expiration_date": "2025-12-31 23:59:59",
"days_remaining": 30,
"is_expired": false
},
"balance": 500.00,
"usage": {
"total_download": "15.5 GB",
"total_upload": "2.3 GB",
"session_count": 45
},
"isp": {
"name": "Your ISP Name",
"logo": "https://your-domain.com/logo.png",
"support_phone": "01700000000"
}
}
}Error Response (401 Unauthorized):
json
{
"success": false,
"message": "Unauthenticated"
}