Verify Customer
curl --request GET \
--url https://api.rapidtopup.com.ng/api/v2/b2b/services/verify \
--header 'Authorization: <authorization>'import requests
url = "https://api.rapidtopup.com.ng/api/v2/b2b/services/verify"
headers = {"Authorization": "<authorization>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<authorization>'}};
fetch('https://api.rapidtopup.com.ng/api/v2/b2b/services/verify', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.rapidtopup.com.ng/api/v2/b2b/services/verify",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.rapidtopup.com.ng/api/v2/b2b/services/verify"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<authorization>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.rapidtopup.com.ng/api/v2/b2b/services/verify")
.header("Authorization", "<authorization>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.rapidtopup.com.ng/api/v2/b2b/services/verify")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<authorization>'
response = http.request(request)
puts response.read_body{
"status": "<string>",
"data": {
"customer_name": "<string>",
"account_number": "<string>"
}
}API Reference
Verify Customer
Resolve a smartcard or meter number to a customer name. Mandatory before Cable TV or Electricity purchases.
GET
/
api
/
v2
/
b2b
/
services
/
verify
Verify Customer
curl --request GET \
--url https://api.rapidtopup.com.ng/api/v2/b2b/services/verify \
--header 'Authorization: <authorization>'import requests
url = "https://api.rapidtopup.com.ng/api/v2/b2b/services/verify"
headers = {"Authorization": "<authorization>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<authorization>'}};
fetch('https://api.rapidtopup.com.ng/api/v2/b2b/services/verify', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.rapidtopup.com.ng/api/v2/b2b/services/verify",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.rapidtopup.com.ng/api/v2/b2b/services/verify"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<authorization>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.rapidtopup.com.ng/api/v2/b2b/services/verify")
.header("Authorization", "<authorization>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.rapidtopup.com.ng/api/v2/b2b/services/verify")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<authorization>'
response = http.request(request)
puts response.read_body{
"status": "<string>",
"data": {
"customer_name": "<string>",
"account_number": "<string>"
}
}Request
string
required
Bearer token:
Bearer <api-key>string
required
Service type. Either
cable_tv or electricitystring
required
Provider ID. E.g.
dstv, gotv, startimes, ikeja-electric, eko-electricstring
required
The smartcard number (Cable TV) or meter number (Electricity)
string
Electricity only.
prepaid or postpaid. Defaults to prepaid if not provided.Examples
curl --request GET \
--url 'https://api.rapidtopup.com.ng/api/v2/b2b/services/verify?type=electricity&service_id=ikeja-electric&account_number=04012345678&variation_code=prepaid' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <api-key>'
curl --request GET \
--url 'https://api.rapidtopup.com.ng/api/v2/b2b/services/verify?type=cable_tv&service_id=dstv&account_number=1234567890' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <api-key>'
// Electricity example
const params = new URLSearchParams({
type: 'electricity',
service_id: 'ikeja-electric',
account_number: '04012345678',
variation_code: 'prepaid',
});
const response = await fetch(
`https://api.rapidtopup.com.ng/api/v2/b2b/services/verify?${params}`,
{
method: 'GET',
headers: {
'Accept': 'application/json',
'Authorization': 'Bearer <api-key>',
},
}
);
const data = await response.json();
// { status: 'success', data: { customer_name: 'JOHN DOE', account_number: '04012345678' } }
<?php
use GuzzleHttp\Client;
$client = new Client();
// Electricity example
$response = $client->request('GET', 'https://api.rapidtopup.com.ng/api/v2/b2b/services/verify', [
'headers' => [
'Accept' => 'application/json',
'Authorization' => 'Bearer <api-key>',
],
'query' => [
'type' => 'electricity',
'service_id' => 'ikeja-electric',
'account_number' => '04012345678',
'variation_code' => 'prepaid',
],
]);
$data = json_decode($response->getBody(), true);
echo $data['data']['customer_name']; // "JOHN DOE"
Response
string
success or errorobject
200:
{
"status": "success",
"data": {
"customer_name": "JOHN DOE",
"account_number": "04012345678"
}
}
404:
{
"status": "error",
"message": "Invalid meter number or provider."
}
Integration Flow
1
User enters account number
Collect the meter or smartcard number in your UI.
2
Call GET /services/verify
Pass the account number, service ID, and type to our verification endpoint.
3
Show customer_name prominently
Display the name clearly. E.g. “Recharging account for: JOHN DOE”
4
User confirms
Only proceed if the user confirms the name matches their account.
5
Call POST /purchase
Proceed with the purchase using the same
account_number and service_id.This endpoint is mandatory before any Cable TV or Electricity purchase. Funds sent to the wrong account cannot be reversed.

