Build with Volt-A
Integrate our robust and reliable APIs to power your applications with seamless data, airtime, and utility payments.
API Overview
Welcome to the Volt-A Developers API! Our platform provides a secure and reliable way to integrate data, airtime, and other services into your applications. This documentation will guide you through the process of authentication, endpoint usage, and provide code examples to get you started.
Authentication
All requests to the Volt-A API must be authenticated using a private API key. You must include your API key in the request header as an `Authorization` token.
Authorization: Token YOUR_API_KEY_HERE
API Endpoints
Get User Balance
Retrieves the current balance of your wallet.
https://voltatrade.com.ng/api/v1/get_balance
// Example PHP cURL code for getting balance
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://voltatrade.com.ng/api/v1/get_balance",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
"Authorization: Token YOUR_API_KEY_HERE"
],
]);
$response = curl_exec($curl);
curl_close($curl);
echo $response;
Expected Response (JSON):
{
"status": "success",
"message": "Balance retrieved successfully.",
"balance": 5000.75
}
Purchase Data
Initiates a data purchase for a mobile number.
https://voltatrade.com.ng/api_v1.php
// Example PHP code for data purchase
$curl = curl_init();
$payload = [
"network_id" => 1,
"phone_number" => "09037346247",
"plan_id" => 101,
"ported_number" => true
];
curl_setopt_array($curl, [
CURLOPT_URL => "https://voltatrade.com.ng/api_v1.php",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS => json_encode($payload),
CURLOPT_HTTPHEADER => [
"Authorization: Token YOUR_API_KEY_HERE",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
curl_close($curl);
echo $response;
Request Body (JSON):
{
"network_id": 1,
"phone_number": "09037346247",
"plan_id": 101,
"ported_number": true
}
Expected Response (JSON):
{
"status": "success",
"message": "Data purchase successful.",
"reference": "API_ALZ_1629555678",
"phone_number": "09037346247",
"plan_name": "MTN 1GB Daily",
"amount_charged": 250.00
}
Other Services (Coming Soon)
- Airtime Purchase
- Electricity Payments
- Cable TV Subscriptions
✨ API Assistant Powered by Gemini
Got a question about our API? Ask our AI assistant anything about integration, code examples, or troubleshooting.