Yaka / UMEME Customer Details
THis is method is used to query for UMEME YAKA Customer Details
Request Type
GET
General Payload
// Sample PHP pay Load
$live_url = "https://silicon-pay.com/yaka_customer_details";
$test_url = "https://silicon-pay.com/test/yaka_customer_details";
$data_req = [
"encryption_key"=>"XXXXXXXXXXX",
"account_number"=>"Customer Reference/ Account Number/ Meter Number"
];
$curl = curl_init();
curl_setopt_array($curl, array(
//Use live url ($live_url) when in production.
CURLOPT_URL => $test_url,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_POSTFIELDS =>json_encode($data_req),
CURLOPT_HTTPHEADER =>array(
'Content-Type: application/json'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
Parameter Description
# | Parameter | Description |
---|---|---|
1 | ||
2 | Account Number | This is the Customer Reference/ Account Number/ Meter Number |
Success Response
When all the payload parameters are correct, You shall a json Response with the customer details
{
"status": 200,
"message": "success",
"customer_name": "XXXXX",
"account_number": "XXXX",
"outstanding_balance":"XXXXXX"
}
Failed Response
When the provided meter number/account number/yaka number is wrong, You shall get a failed notification response
{
"status": 201,
"message": "Failed",
"account_number": "XXXX",
"description": "XXXXX"
}