API Documentation
Build on top of Airtime's API to integrate airtime and data top-up functionality into your applications.
API Reference
1. Authentication
POST /api/login
Authenticate user and receive JWT token
POST https://airtime.feezlinkz.com.ng/api/login
Content-Type: application/json
{
"email": "user@example.com",
"password": "password123"
}
Returns JWT token in token field
POST /api/login
Authenticate user and receive JWT token
POST https://airtime.feezlinkz.com.ng/api/login
Content-Type: application/json
{
"email": "user@example.com",
"password": "password123"
}
token field
2. Get Balance
GET /api/balance
Get user's current wallet balance
3. Buy Airtime
POST /api/buy
Purchase airtime for a phone number
POST https://airtime.feezlinkz.com.ng/api/buy
Content-Type: application/json
Authorization: Bearer TOKEN
{
"network": "MTN",
"mobile_number": "08012345678",
"plan": "100",
"category": "buyAirtime",
"amount": 100,
"provider": "vtpass"
}
4. Buy Data
POST /api/buyData
Purchase data bundle for a phone number
5. Transaction History
GET /api/get_transactions
Get user's transaction history