Technical Documentation

Complete guides, API references, and tutorials for TrendWave Connect ISP software platform.

Getting Started

Welcome to the TrendWave Connect documentation. This guide will help you set up and configure your ISP billing system.

Prerequisites: PHP 8.0+, MySQL 5.7+, Ubuntu 20.04+, and root access to your server.

System Requirements

Component Minimum Recommended
PHP 8.0 8.2
MySQL 5.7 8.0
RAM 2GB 4GB+
Storage 20GB 50GB+

API Authentication

All API requests require authentication using API keys. Generate your keys from the dashboard.

POST /api/v1/auth/login

Authenticate and receive an access token.

Request Headers:
Content-Type: application/json X-API-Key: your_api_key_here
Request Body:
{ "email": "admin@yourisp.com", "password": "your_password" }
Response:
{ "success": true, "token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9...", "expires_in": 3600 }

Billing API

GET /api/v1/subscribers

Retrieve all subscribers with pagination.

Query Parameters:
Parameter Type Description
page integer Page number (default: 1)
limit integer Items per page (default: 50)
status string Filter by status (active, suspended, terminated)

Mikrotik Integration

Integrate with Mikrotik routers for real-time bandwidth monitoring and subscriber management.

1. Enable API on Mikrotik

/ip service set api disabled=no set api-ssl disabled=no

2. Configure Integration

# In your .env file MIKROTIK_HOST=192.168.88.1 MIKROTIK_USER=admin MIKROTIK_PASS=your_password MIKROTIK_PORT=8728

3. Test Connection

php artisan mikrotik:test-connection

Troubleshooting

Check the following:

  1. Verify your API key is correctly set in headers
  2. Ensure the API key hasn't expired (keys expire after 90 days)
  3. Check if your IP address is whitelisted in the dashboard

Check your M-Pesa API credentials and callback URL configuration.