$tin]; $apikey = 'You do not need it for now, but would be needed to post transactions.'; $headers = [ 'apikey: ' . $apikey, "content-type: application/json" ]; //Make the call $curl = curl_init(); curl_setopt($curl, CURLOPT_POST, 1); curl_setopt($curl, CURLOPT_POSTFIELDS, $validation_request); curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_HTTPHEADER, $headers); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); $result = curl_exec($curl); curl_close($curl); //Parse & view the result $result_parsed = json_decode($result, true); die('
' . print_r($result_parsed, true));