{
    "success": true,
    "status": 200,
    "message": "Welcome to FurelyBook API Server",
    "data": {
        "name": "FurelyBook Business Ledger REST API",
        "version": "1.0.0",
        "status": "online",
        "php_version": "8.3.33",
        "documentation": "See README.md in Furely-apis directory for full examples and setup guide.",
        "endpoints": {
            "auth": {
                "POST /api/auth/login.php": "Authenticate user with email (pcsuthar@furely.com) and password (Suthar@432;)"
            },
            "system": {
                "GET /api/system/health.php": "Check PHP & MySQL connection health",
                "POST /api/system/reset.php": "Reset database with fresh seed data"
            },
            "dashboard": {
                "GET /api/dashboard/summary.php": "Live financial metrics, net profit, credit ratio, top vendors"
            },
            "transactions": {
                "GET /api/transactions/read.php": "List transactions (supports ?type=credit|debit, ?status=pending|completed, ?vendor_id=..., ?search=..., ?limit=..., ?offset=...)",
                "GET /api/transactions/read_single.php?id={id}": "Get single transaction details",
                "POST /api/transactions/create.php": "Create new transaction (JSON payload: {type, amount, vendorName, role, status, pendingAmount, date, notes})",
                "DELETE /api/transactions/delete.php?id={id}": "Delete transaction & auto-restore vendor balances"
            },
            "vendors": {
                "GET /api/vendors/read.php": "List all vendors / parties (supports ?search=...)",
                "GET /api/vendors/read_single.php?id={id}": "Get vendor details + complete transaction history",
                "POST /api/vendors/create.php": "Create new vendor (JSON payload: {name, phone, role})",
                "PUT /api/vendors/update.php?id={id}": "Update vendor info",
                "DELETE /api/vendors/delete.php?id={id}": "Delete vendor & associated records"
            },
            "roles": {
                "GET /api/roles/read.php": "List all business roles / categories",
                "POST /api/roles/create.php": "Register new role (JSON payload: {name})"
            }
        }
    },
    "timestamp": 1790859643932
}