URA PRN Customer Details
THis is method is used to query for URA PRN Customer Details
Request Type
GET
General Payload
// Sample PHP pay Load
$live_url = "https://silicon-pay.com/ura_customer_details";
$test_url = "https://silicon-pay.com/test/ura_customer_details";
$data_req = [
"encryption_key"=>"XXXXXXXXXXX",
"prn"=>"URA PRN of the Customer"
];
$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 | prn | This is the PRN of the customer provided by URA |
Success Response
When all the payload parameters are correct, You shall a json Response with the customer details
{
"status" 200,
"message": "success"
"tax_payer_name":"XXXXX";
"tax_payer_prn": "XXXXX";
"amount_due:XXXXX;
"tax_payer_tin":"XXXXXX";
}
Failed Response
When the provided PRN provided is invalid or there is a network problem, You shall get a failed notification response with a description.
{
"status": 201,
"message": "Failed",
"account_number": "XXXXX",
"description": "XXXXX"
}