<?php // Using cURL POST $key="YOUR-ACCOUNT-KEY"; $customer_id="METER NUMBER OR SMARTCARD NUMBER"; $variation_id="PREPAID or POST PAID"; $service_provider="dstv, gotv, startimes, ikeja-electric, eko-electric, kano-electric, portharcourt-electric, jos-electric, ibadan-electric, kaduna-electric, abuja-electric, enugu-electric, benin-electric, aba-electric, yola-electric"; $response = httpPost("https://api.textng.xyz/bp-verify-customer/" ,array("key"=>"$key","customer_id"=>$customer_id,"variation_id"=>"$variation_id","service_provider"=>"$service_provider")); // using php curlfunction httpPost($url, $data) { $curl =curl_init ($url);curl_setopt ($curl, CURLOPT_POST, true);curl_setopt ($curl, CURLOPT_POSTFIELDS, http_build_query($data));curl_setopt ($curl, CURLOPT_RETURNTRANSFER, true); $response = curl_exec($curl); curl_close($curl);echo $response; } ?>
| Parameters | Example | Description |
|---|---|---|
| Key | XXXXX-XXXX-XXXXX | Your developer API key. This authorizes every request and can be found on your Developer Dashboard. |
| service_provider |
eko-electric | Any of the following service providers; dstv, gotv, startimes, ikeja-electric, eko-electric, kano-electric, portharcourt-electric, jos-electric, ibadan-electric, kaduna-electric, abuja-electric, enugu-electric, benin-electric, aba-electric, yola-electric |
| customer_id |
45053841594 | Customers Meter or Smartcard number (depending on the selected service). |
| variation_id |
PREPAID | PREPAID or POSTPAID service (if allowed). |
{
"status": true ,
"message": "Customer Details Retrieved" ,
"data": {
"service_name": "Eko (EKEDC)",
"customer_id": "45053841594",
"customer_name": " Test Customer Name ",
"customer_address": " X Street 3 Agungi Lekki",
"customer_arrears": "0.0",
"outstanding": "",
"meter_number": "45053841594",
"account_number": "45053841594",
"district": "",
"service_band": "",
"min_purchase_amount": 1000,
"max_purchase_amount": 100000,
"business_unit": "",
"customer_account_type": ""
}
}
{
"status": false ,
"message": "Unable to fetch details at this time",
"reason": ""
}