Validate Customer Identifier
curl --request POST \
--url https://api-local.handle.ng/api/v1/bill-payment/validate-customer \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"category": "GOVERNMENT",
"billerCode": "FRSC",
"recipientId": "KJA-829-AA",
"params": {
"billPaymentProductId": "NOTICE_OF_OFFENCE"
}
}
'import requests
url = "https://api-local.handle.ng/api/v1/bill-payment/validate-customer"
payload = {
"category": "GOVERNMENT",
"billerCode": "FRSC",
"recipientId": "KJA-829-AA",
"params": { "billPaymentProductId": "NOTICE_OF_OFFENCE" }
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
category: 'GOVERNMENT',
billerCode: 'FRSC',
recipientId: 'KJA-829-AA',
params: {billPaymentProductId: 'NOTICE_OF_OFFENCE'}
})
};
fetch('https://api-local.handle.ng/api/v1/bill-payment/validate-customer', 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-local.handle.ng/api/v1/bill-payment/validate-customer",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'category' => 'GOVERNMENT',
'billerCode' => 'FRSC',
'recipientId' => 'KJA-829-AA',
'params' => [
'billPaymentProductId' => 'NOTICE_OF_OFFENCE'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api-local.handle.ng/api/v1/bill-payment/validate-customer"
payload := strings.NewReader("{\n \"category\": \"GOVERNMENT\",\n \"billerCode\": \"FRSC\",\n \"recipientId\": \"KJA-829-AA\",\n \"params\": {\n \"billPaymentProductId\": \"NOTICE_OF_OFFENCE\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api-local.handle.ng/api/v1/bill-payment/validate-customer")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"category\": \"GOVERNMENT\",\n \"billerCode\": \"FRSC\",\n \"recipientId\": \"KJA-829-AA\",\n \"params\": {\n \"billPaymentProductId\": \"NOTICE_OF_OFFENCE\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-local.handle.ng/api/v1/bill-payment/validate-customer")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"category\": \"GOVERNMENT\",\n \"billerCode\": \"FRSC\",\n \"recipientId\": \"KJA-829-AA\",\n \"params\": {\n \"billPaymentProductId\": \"NOTICE_OF_OFFENCE\"\n }\n}"
response = http.request(request)
puts response.read_body{
"isValid": true,
"customerName": "ADEWALE AYODEJI PETERS",
"address": "14 ADEOLA ODEKU STREET, VICTORIA ISLAND, LAGOS",
"meterNumber": "0219927013063",
"billerCode": "AEDC",
"outstandingAmount": 0,
"metadata": {
"accountType": "PREPAID",
"district": "WUSE",
"tariffCode": "A1-R2"
}
}Handle VAS & Bill Payments
Validate Customer Identifier
Verify customer account numbers, electricity meter numbers, smartcard IUCs, and student matric numbers.
POST
/
bill-payment
/
validate-customer
Validate Customer Identifier
curl --request POST \
--url https://api-local.handle.ng/api/v1/bill-payment/validate-customer \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"category": "GOVERNMENT",
"billerCode": "FRSC",
"recipientId": "KJA-829-AA",
"params": {
"billPaymentProductId": "NOTICE_OF_OFFENCE"
}
}
'import requests
url = "https://api-local.handle.ng/api/v1/bill-payment/validate-customer"
payload = {
"category": "GOVERNMENT",
"billerCode": "FRSC",
"recipientId": "KJA-829-AA",
"params": { "billPaymentProductId": "NOTICE_OF_OFFENCE" }
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
category: 'GOVERNMENT',
billerCode: 'FRSC',
recipientId: 'KJA-829-AA',
params: {billPaymentProductId: 'NOTICE_OF_OFFENCE'}
})
};
fetch('https://api-local.handle.ng/api/v1/bill-payment/validate-customer', 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-local.handle.ng/api/v1/bill-payment/validate-customer",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'category' => 'GOVERNMENT',
'billerCode' => 'FRSC',
'recipientId' => 'KJA-829-AA',
'params' => [
'billPaymentProductId' => 'NOTICE_OF_OFFENCE'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api-local.handle.ng/api/v1/bill-payment/validate-customer"
payload := strings.NewReader("{\n \"category\": \"GOVERNMENT\",\n \"billerCode\": \"FRSC\",\n \"recipientId\": \"KJA-829-AA\",\n \"params\": {\n \"billPaymentProductId\": \"NOTICE_OF_OFFENCE\"\n }\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api-local.handle.ng/api/v1/bill-payment/validate-customer")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"category\": \"GOVERNMENT\",\n \"billerCode\": \"FRSC\",\n \"recipientId\": \"KJA-829-AA\",\n \"params\": {\n \"billPaymentProductId\": \"NOTICE_OF_OFFENCE\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-local.handle.ng/api/v1/bill-payment/validate-customer")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"category\": \"GOVERNMENT\",\n \"billerCode\": \"FRSC\",\n \"recipientId\": \"KJA-829-AA\",\n \"params\": {\n \"billPaymentProductId\": \"NOTICE_OF_OFFENCE\"\n }\n}"
response = http.request(request)
puts response.read_body{
"isValid": true,
"customerName": "ADEWALE AYODEJI PETERS",
"address": "14 ADEOLA ODEKU STREET, VICTORIA ISLAND, LAGOS",
"meterNumber": "0219927013063",
"billerCode": "AEDC",
"outstandingAmount": 0,
"metadata": {
"accountType": "PREPAID",
"district": "WUSE",
"tariffCode": "A1-R2"
}
}Validates a customer’s recipient identifier before initiating a payment. This verifies that the recipient account exists, belongs to the correct tariff, and returns customer name and outstanding balances.
Common Validation Use Cases
- Electricity Meters: Verify prepaid or postpaid meter number against DisCo databases before vending energy units.
- Cable TV Smartcards: Validate IUC/Smartcard numbers against MultiChoice/StarTimes to retrieve customer name, current bouquet, and due date.
- Education / Exam Portals: Validate student matriculation or registration numbers for tuition and exam fee settlements.
- Betting Accounts: Confirm player user ID before wallet funding.
Authorizations
Body
application/json
Available options:
GOVERNMENT, ELECTRICITY, AIRTIME, DATA, INTERNET, CABLE_TV, UTILITIES, EDUCATION, FLIGHTS, BETTING, GAMING, SOLAR, TRANSPORT, ESIM, TAXES, HOSPITALS, INSURANCE, RELIGIOUS, ASSOCIATIONS, FINANCIAL_SERVICES, CREDIT_LOANS, MICRO_PENSIONS, INVOICE, GIFT_CARDS, SHOPPING, FOOD_DINING, LIFESTYLE_BEAUTY, HOME_LIVING Example:
"GOVERNMENT"
Response
200 - application/json
Customer verification details