NWSC Customer Details
THis is method is used to query for NWSC Customer Details
Request Type
GET
General Payload
// Sample PHP pay Load
$live_url = "https://silicon-pay.com/nwsc_customer_details";
$test_url = "https://silicon-pay.com/test/nwsc_customer_details";
$data_req = [
"encryption_key"=>"XXXXXXXXXX"
"area"=>"Customer Area",
"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 | Area | This is got from the query areas endpoint and selected |
2 | Account Number | This is the Customer Reference/ Account Number/ Meter Number |
Response
When all the payload parameters are correct, You shall a json Response with the customer details
{
"status": 200,
"message": "success",
"customer_name": "xxxx xxxxx xxx",
"account_number": "xxxxx",
"outstanding_balance": "xxxx"
}