Secure Citizen Fingerprint Validation
curl --request POST \
--url https://citizen.uat.securecitizen.cloud/Citizen/ValidateFingerPrint \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"ConsentReceived": true,
"IdNumber": "<string>",
"fP1No": 123,
"fP1WSQImage": "<string>",
"CRef": "<string>",
"CacheEnabled": true,
"fP2No": 123,
"fP2WSQImage": "<string>"
}
'import requests
url = "https://citizen.uat.securecitizen.cloud/Citizen/ValidateFingerPrint"
payload = {
"ConsentReceived": True,
"IdNumber": "<string>",
"fP1No": 123,
"fP1WSQImage": "<string>",
"CRef": "<string>",
"CacheEnabled": True,
"fP2No": 123,
"fP2WSQImage": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
ConsentReceived: true,
IdNumber: '<string>',
fP1No: 123,
fP1WSQImage: '<string>',
CRef: '<string>',
CacheEnabled: true,
fP2No: 123,
fP2WSQImage: '<string>'
})
};
fetch('https://citizen.uat.securecitizen.cloud/Citizen/ValidateFingerPrint', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://citizen.uat.securecitizen.cloud/Citizen/ValidateFingerPrint",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'ConsentReceived' => true,
'IdNumber' => '<string>',
'fP1No' => 123,
'fP1WSQImage' => '<string>',
'CRef' => '<string>',
'CacheEnabled' => true,
'fP2No' => 123,
'fP2WSQImage' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://citizen.uat.securecitizen.cloud/Citizen/ValidateFingerPrint"
payload := strings.NewReader("{\n \"ConsentReceived\": true,\n \"IdNumber\": \"<string>\",\n \"fP1No\": 123,\n \"fP1WSQImage\": \"<string>\",\n \"CRef\": \"<string>\",\n \"CacheEnabled\": true,\n \"fP2No\": 123,\n \"fP2WSQImage\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://citizen.uat.securecitizen.cloud/Citizen/ValidateFingerPrint")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"ConsentReceived\": true,\n \"IdNumber\": \"<string>\",\n \"fP1No\": 123,\n \"fP1WSQImage\": \"<string>\",\n \"CRef\": \"<string>\",\n \"CacheEnabled\": true,\n \"fP2No\": 123,\n \"fP2WSQImage\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://citizen.uat.securecitizen.cloud/Citizen/ValidateFingerPrint")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"ConsentReceived\": true,\n \"IdNumber\": \"<string>\",\n \"fP1No\": 123,\n \"fP1WSQImage\": \"<string>\",\n \"CRef\": \"<string>\",\n \"CacheEnabled\": true,\n \"fP2No\": 123,\n \"fP2WSQImage\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"CRef": "<string>",
"Status": "Success",
"Message": "<string>",
"RequestedBy": "<string>",
"AuthorizedBy": "<string>",
"GoldenSource": {
"RetValue": {
"iErrField": 123,
"sErrorField": "<string>",
"sTranIDField": "<string>",
"sIDNField": "<string>",
"sFPInd1Field": "<string>",
"sFPInd2Field": "<string>",
"sFP1ResultField": "<string>",
"sFP2ResultField": "<string>",
"iFP1ScoreField": 123,
"iFP2ScoreField": 123,
"yaPhotoField": "<string>",
"sCallCentreNoField": "<string>"
},
"FingersResponse": [
{
"FingerId": 123,
"WSQ": "<string>",
"Status": 123
}
],
"IdNumber": "<string>",
"UserName": "<string>",
"OfficeName": "<string>",
"StationId": "<string>",
"Timestamp": "<string>",
"TransactionNumber": "<string>",
"CallCentreNoField": "<string>"
},
"OfflineCacheResult": {
"RetValue": {
"iErrField": 123,
"sErrorField": "<string>",
"sTranIDField": "<string>",
"sIDNField": "<string>",
"sFPInd1Field": "<string>",
"sFPInd2Field": "<string>",
"sFP1ResultField": "<string>",
"sFP2ResultField": "<string>",
"iFP1ScoreField": 123,
"iFP2ScoreField": 123,
"yaPhotoField": "<string>",
"sCallCentreNoField": "<string>"
},
"FingersResponse": [
{
"FingerId": 123,
"WSQ": "<string>",
"Status": 123
}
],
"IdNumber": "<string>",
"UserName": "<string>",
"OfficeName": "<string>",
"StationId": "<string>",
"Timestamp": "<string>",
"TransactionNumber": "<string>",
"CallCentreNoField": "<string>"
}
}Biometrics
Secure Citizen Fingerprint Validation
This is a service that validates fingerprint against dha
Secure Citizen Fingerprint Validation
curl --request POST \
--url https://citizen.uat.securecitizen.cloud/Citizen/ValidateFingerPrint \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"ConsentReceived": true,
"IdNumber": "<string>",
"fP1No": 123,
"fP1WSQImage": "<string>",
"CRef": "<string>",
"CacheEnabled": true,
"fP2No": 123,
"fP2WSQImage": "<string>"
}
'import requests
url = "https://citizen.uat.securecitizen.cloud/Citizen/ValidateFingerPrint"
payload = {
"ConsentReceived": True,
"IdNumber": "<string>",
"fP1No": 123,
"fP1WSQImage": "<string>",
"CRef": "<string>",
"CacheEnabled": True,
"fP2No": 123,
"fP2WSQImage": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
ConsentReceived: true,
IdNumber: '<string>',
fP1No: 123,
fP1WSQImage: '<string>',
CRef: '<string>',
CacheEnabled: true,
fP2No: 123,
fP2WSQImage: '<string>'
})
};
fetch('https://citizen.uat.securecitizen.cloud/Citizen/ValidateFingerPrint', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://citizen.uat.securecitizen.cloud/Citizen/ValidateFingerPrint",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'ConsentReceived' => true,
'IdNumber' => '<string>',
'fP1No' => 123,
'fP1WSQImage' => '<string>',
'CRef' => '<string>',
'CacheEnabled' => true,
'fP2No' => 123,
'fP2WSQImage' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://citizen.uat.securecitizen.cloud/Citizen/ValidateFingerPrint"
payload := strings.NewReader("{\n \"ConsentReceived\": true,\n \"IdNumber\": \"<string>\",\n \"fP1No\": 123,\n \"fP1WSQImage\": \"<string>\",\n \"CRef\": \"<string>\",\n \"CacheEnabled\": true,\n \"fP2No\": 123,\n \"fP2WSQImage\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://citizen.uat.securecitizen.cloud/Citizen/ValidateFingerPrint")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"ConsentReceived\": true,\n \"IdNumber\": \"<string>\",\n \"fP1No\": 123,\n \"fP1WSQImage\": \"<string>\",\n \"CRef\": \"<string>\",\n \"CacheEnabled\": true,\n \"fP2No\": 123,\n \"fP2WSQImage\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://citizen.uat.securecitizen.cloud/Citizen/ValidateFingerPrint")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"ConsentReceived\": true,\n \"IdNumber\": \"<string>\",\n \"fP1No\": 123,\n \"fP1WSQImage\": \"<string>\",\n \"CRef\": \"<string>\",\n \"CacheEnabled\": true,\n \"fP2No\": 123,\n \"fP2WSQImage\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"CRef": "<string>",
"Status": "Success",
"Message": "<string>",
"RequestedBy": "<string>",
"AuthorizedBy": "<string>",
"GoldenSource": {
"RetValue": {
"iErrField": 123,
"sErrorField": "<string>",
"sTranIDField": "<string>",
"sIDNField": "<string>",
"sFPInd1Field": "<string>",
"sFPInd2Field": "<string>",
"sFP1ResultField": "<string>",
"sFP2ResultField": "<string>",
"iFP1ScoreField": 123,
"iFP2ScoreField": 123,
"yaPhotoField": "<string>",
"sCallCentreNoField": "<string>"
},
"FingersResponse": [
{
"FingerId": 123,
"WSQ": "<string>",
"Status": 123
}
],
"IdNumber": "<string>",
"UserName": "<string>",
"OfficeName": "<string>",
"StationId": "<string>",
"Timestamp": "<string>",
"TransactionNumber": "<string>",
"CallCentreNoField": "<string>"
},
"OfflineCacheResult": {
"RetValue": {
"iErrField": 123,
"sErrorField": "<string>",
"sTranIDField": "<string>",
"sIDNField": "<string>",
"sFPInd1Field": "<string>",
"sFPInd2Field": "<string>",
"sFP1ResultField": "<string>",
"sFP2ResultField": "<string>",
"iFP1ScoreField": 123,
"iFP2ScoreField": 123,
"yaPhotoField": "<string>",
"sCallCentreNoField": "<string>"
},
"FingersResponse": [
{
"FingerId": 123,
"WSQ": "<string>",
"Status": 123
}
],
"IdNumber": "<string>",
"UserName": "<string>",
"OfficeName": "<string>",
"StationId": "<string>",
"Timestamp": "<string>",
"TransactionNumber": "<string>",
"CallCentreNoField": "<string>"
}
}Authorizations
Body
application/json
Example: true
This is an indicator to audit the fact that the controller has obtained consent from the subject to process their personal information and data as per the regulatory requirements pertaining to local and global privacy and data protection legislation.
Response
Success
Status values (static strings) to be used for external connection management
Available options:
Success, Failure, Unknown, AuthFailure, DataDeserializationError, EmptyResults, ErrorContactSupport, FaceDetectionFailure, FaceComparisonFailure, NoStatusDefined, FaceDetectionQualityTooLow, FaceDetectionTooManyFaces, FaceDetectionNoFacesFound, FaceComparisonError, FaceComparisonNotSame, GoldenSourceImageNull, ProvidedImageNull, GoldenSourceNoFacesFound, ProvidedImageNoFacesFound, GoldenSourceHasTooManyFaces, ProvidedImageHasTooManyFaces, GoldenSourceQualityTooLow, ProvidedImageQualityTooLow, GoldenSourceGUIDIncorrect, ProvidedImageGUIDIncorrect, FaceAPIGeneralError, FaceAPIPublicUrlInputError, FaceBadInput, GoldenSourceIncorrectStringFormat, ProvidedImageIncorrectStringFormat, SAFPSNPROk, SAFPSHANISOk, SAFPSNIISOk, SAFPSNPRSlow, SAFPSHANISSlow, SAFPSNIISSlow, SAFPSFailure, SAFPSPossibleFailure, SAFPSNPRFailure, SAFPSHANISFailure, SAFPSNIISFailure, FaceTooClose, EyesClosed, FaceCloseToBorder, FaceCropped, FaceIsOccluded, FaceNotFound, TooManyFaces, FaceTooSmall, AbsoluteFaceTooSmall, RelativeFaceTooSmall, FaceAngleTooLarge, FailedToPredictLandmarks, Active, CSuccess, AsyncCSuccess, IdentificationNumberInvalid, IdentificationNumberAgeBelow18, UnableToVerifyIdentificationNumberOnDocument, UnableToVerifyIdentificationNumberAtGoldenSource, GoldenSourceUnavailable, MandatoryInformationMissing, NPRSuccess, HANISNotAvailable, InvalidIDNCheckDigitTestNotPassed, NPRNotAvailableOnlyPhotoIsReturned, IDNRIsNotCurrentlyAValidNPRIDNR, IDNRIsMarkedForDeletion 
