H

HasNet

API

For Developer Use Only

Powerful Payment API

Seamlessly integrate HasNet's comprehensive payment solutions. Handle airtime, data, electricity, cable TV, and educational services with a single, reliable API.

Why Choose HasNet API?

Enterprise-grade payment infrastructure for your business

Lightning Fast

Sub-second API response times with 99.9% uptime SLA

🔒
Bank-Level Security

Enterprise-grade encryption and token authentication

📱
Multi-Service

Airtime, data, electricity, cable TV, exam pins & more

🔄
Simple Integration

RESTful API with clear documentation & code samples

📊
Real-Time Dashboard

Monitor transactions and balances in real-time

💬
Expert Support

24/7 developer support and technical assistance

API Endpoints

Click on any endpoint to explore request details and examples

Check Balance

GET

Retrieve your current wallet balance

https://hasnet.com.ng/api/user/
Headers
Copy Authorization: Token your-api-key-here Content-Type: application/json
Example Request
Copy curl -X GET 'https://hasnet.com.ng/api/user/' \ -H 'Authorization: Token your-api-key' \ -H 'Content-Type: application/json'

Airtime

POST

Purchase airtime for any network provider

https://hasnet.com.ng/api/airtime/
Headers
Copy Authorization: Token your-api-key-here Content-Type: application/json
Example Request
Copy curl -X POST 'https://hasnet.com.ng/api/airtime/' \ -H 'Authorization: Token your-api-key' \ -d '{"phone":"08012345678","amount":100}'

Data Bundles

POST

Purchase data bundles for any network

https://hasnet.com.ng/api/data/
Headers
Copy Authorization: Token your-api-key-here Content-Type: application/json

Verify Cable

GET

Verify cable TV subscriber details

https://hasnet.com.ng/cabletv/verify/
Headers
Copy Authorization: Token your-api-key-here Content-Type: application/json

Cable TV

POST

Purchase cable TV subscriptions

https://hasnet.com.ng/cabletv/
Headers
Copy Authorization: Token your-api-key-here Content-Type: application/json

Electricity

POST

Purchase electricity tokens

https://hasnet.com.ng/api/electricity/
Headers
Copy Authorization: Token your-api-key-here Content-Type: application/json

Verify Electricity

GET

Verify electricity meter details

https://hasnet.com.ng/api/electricity/verify/
Headers
Copy Authorization: Token your-api-key-here Content-Type: application/json

Exam PIN

POST

Generate exam PINs for students

https://hasnet.com.ng/api/exam/
Headers
Copy Authorization: Token your-api-key-here Content-Type: application/json

Data PIN

POST

Generate and manage data pins

https://hasnet.com.ng/api/datapin/
Headers
Copy Authorization: Token your-api-key-here Content-Type: application/json

Recharge PIN

POST

Generate and manage recharge pins

https://hasnet.com.ng/api/rechargepin/
Headers
Copy Authorization: Token your-api-key-here Content-Type: application/json

Get Started in Minutes

Follow these simple steps to integrate HasNet API

01
Generate API Key

Create your unique API key from the developer dashboard

02
Add Authentication

Include your API key in the Authorization header

03
Make Your First Call

Start making API calls using our documented endpoints