BETAThis API is in beta. Some endpoints may change before the official release.
Introduction
Welcome to the networkdatasub API documentation. This API allows you to programmatically access our services including airtime purchase, data purchase, and identity verification.
The API is organized around REST principles. All requests should be made over HTTPS, and all response data is returned as JSON.
Base URL: https://www.networkdatasub.com/api
API Overview
The networkdatasub API is organized into the following service groups. All endpoints return JSON responses. Authentication is via Bearer token in the Authorization header unless otherwise noted.
Service
Base Path
Auth
Status
Authentication
/api/auth/*
Public
Available
User
/api/user/*
Token
Available
Wallet
/api/wallet/*
Token
Available
Airtime
/api/airtime/*
Token
Available
Data
/api/data/*
Token
Available
Cable TV
/api/cable/*
Token
Available
Electricity
/api/electricity/*
Token
Available
Recharge Card
/api/recharge-card/*
Token
Available
NIN Verification
/api/verification/nin/*
Token
Available
BVN Verification
/api/verification/bvn/*
Token
Available
Authentication
The networkdatasub API uses token-based authentication. You need to include your API token in the Authorization header of all requests.
Obtaining an API Token
You can generate an API token from your API Tokens page.
Using Your API Token
Include your API token in the Authorization header as follows:
Header Example
Authorization: Token YOUR_API_TOKEN
Testing Authentication
You can test if your authentication is working correctly by making a request to the user endpoint:
All verification endpoints require API Token authentication. Include the token in the Authorization: Token YOUR_API_TOKEN header.
Base URL:https://www.networkdatasub.com/api
PDF Support
All verification endpoints now return PDF documents! Every successful NIN and BVN verification includes the following PDF-related fields in the response:
pdf_base64: Base64-encoded PDF document containing the verification certificate/slip
has_pdf: Boolean indicating whether the PDF was successfully generated (always true on success)
Usage: Decode the pdf_base64 string to get the raw PDF file bytes. The PDF can be saved to disk or displayed directly to the user.
GETGet NIN Verification Pricing
GET https://www.networkdatasub.com/api/verification/nin/pricing
Returns the pricing for different types of NIN verification cards.
POST https://www.networkdatasub.com/api/verification/nin
Verify a National Identification Number (NIN).
Important Note: The system will always charge users for verifications, even when the NIN has been previously verified. For previously verified NINs, the system reuses existing data rather than making a new API call, optimizing costs while maintaining service quality.
Request Parameters
Parameter
Type
Description
ninrequired
string
The 11-digit NIN to verify
card_typerequired
string
Type of verification card (standard, regular, premium)
force_newoptional
boolean
Force a new verification even if one already exists (default is false)
use_real_apioptional
boolean
Force using the real API instead of mock data (default is false)
{
"success": false,
"message": "Insufficient wallet balance. Please fund your wallet to continue.",
"data": {
"required_amount": 100,
"current_balance": 50
}
}
POSTVerify NIN (Card Type Specific)
POST https://www.networkdatasub.com/api/verification/nin/standard
POST https://www.networkdatasub.com/api/verification/nin/regular
POST https://www.networkdatasub.com/api/verification/nin/premium
Verify a National Identification Number (NIN) using card type specific endpoints. These endpoints automatically use the specified card type without requiring the card_type parameter.
Request Parameters
Parameter
Type
Description
ninrequired
string
The 11-digit NIN to verify
force_newoptional
boolean
Force a new verification even if one already exists (default is false)
POST https://www.networkdatasub.com/api/verification/bvn
Verify a Bank Verification Number (BVN).
Important Note: The system will always charge users for verifications, even when the BVN has been previously verified. For previously verified BVNs, the system reuses existing data rather than making a new API call, optimizing costs while maintaining service quality.
Request Parameters
Parameter
Type
Description
bvnrequired
string
The 11-digit BVN to verify
card_typerequired
string
Type of verification card (standard, premium)
provideroptional
string
The verification provider, either "idpass" or "mobilsix" (default is "idpass")
force_newoptional
boolean
Force a new verification even if one already exists (default is false)
use_real_apioptional
boolean
Force using the real API instead of mock data (default is false)
{
"success": false,
"message": "Insufficient wallet balance. Please fund your wallet to continue.",
"data": {
"required_amount": 300,
"current_balance": 100
}
}
POSTVerify BVN (Card Type Specific)
POST https://www.networkdatasub.com/api/verification/bvn/standard
POST https://www.networkdatasub.com/api/verification/bvn/premium
Verify a Bank Verification Number (BVN) using card type specific endpoints. These endpoints automatically use the specified card type without requiring the card_type parameter.
Request Parameters
Parameter
Type
Description
bvnrequired
string
The 11-digit BVN to verify
force_newoptional
boolean
Force a new verification even if one already exists (default is false)