Calling this method will perform a verification. You can query configuration to get what fields are available to you in each country.
It is also possible to get sample requests from the customer portal.
Sandbox Accounts
If you are configured for a sandbox account make sure to call Get Test Entities to get test data for a country you want to try. Sandbox accounts only use these test entities and so trying to verify with any other data will result in no matches being found.
SDKs
//Example Username: JoeNapoli_API_Demo, Example Password: 05uZuPRCyPi!6
var truliooClient = new TruliooApiClient("JoeNapoli_API_Demo", "05uZuPRCyPi!6");
VerifyRequest request = new VerifyRequest()
{
AcceptTruliooTermsAndConditions = true,
Demo = true,
CleansedAddress = false,
ConfigurationName = "Identity Verification",
ConsentForDataSources = new string[]
{
"Australia Driver License",
"Australia Passport",
"Birth Registry",
"Visa Verification",
"DVS Driver License Search",
"DVS Medicare Search",
"DVS Passport Search",
"DVS Visa Search",
"DVS ImmiCard Search",
"DVS Citizenship Certificate Search",
"DVS Certificate of Registration by Descent Search",
"Credit Agency"
},
CountryCode = "AU",
DataFields = new DataFields()
{
PersonInfo = new PersonInfo()
{
FirstGivenName = "John",
MiddleName = "Henry",
FirstSurName = "Smith",
DayOfBirth = 5,
MonthOfBirth = 3,
YearOfBirth = 1983,
Gender = "M"
},
Location = new Location()
{
BuildingNumber = "10",
UnitNumber = "3",
StreetName = "Lawford",
StreetType = "st",
Suburb = "Doncaster",
StateProvinceCode = "VIC",
PostalCode = "3108"
},
Communication = new Communication()
{
Telephone = "03 9896 8785",
EmailAddress = "[email protected]"
},
DriverLicence = new DriverLicence()
{
Number = "076310691",
State = "VIC",
DayOfExpiry = 3,
MonthOfExpiry = 4,
YearOfExpiry = 2021
},
NationalIds = new NationalId[]
{
new NationalId()
{
Number = "5643513953",
Type = "Health"
}
},
Passport = new Passport()
{
Mrz1 = "P<SAGSMITH<<JOHN<HENRY<<<<<<<<<<<<<<<<<<<<<<",
Mrz2 = "N1236548<1AUS8303052359438740809<<<<<<<<<<54",
Number = "N1236548",
DayOfExpiry = 5,
MonthOfExpiry = 12,
YearOfExpiry = 2018
},
CountrySpecific = new CountrySpecific()
{
{ "AU",
new Dictionary<string, string>()
{
{ "AuImmiCardNumber", "EIS123456" },
{ "CitizenshipAcquisitionDay", "15" },
{ "CitizenshipAcquisitionMonth", "4" },
{ "CitizenshipAcquisitionYear", "1987" },
{ "CountryOfBirth", "Australia" },
{ "FamilyNameAtBirth", "Smith" },
{ "MedicareColor", "Blue" },
{ "MedicareMonthOfExpiry", "12" },
{ "MedicareReference", "2" },
{ "MedicareYearOfExpiry", "2017" },
{ "PassportCountry", "Australia" },
{ "PlaceOfBirth", "Melbourne" },
{ "RegistrationNumber", "565659" },
{ "RegistrationState", "NSW" },
{ "StockNumber", "ACD1234567" }
}
}
}
}
};
VerifyResult result = await truliooClient.Verification
.VerifyAsync(request);//Example Username: JoeNapoli_API_Demo, Example Password: 05uZuPRCyPi!6
ApiClient apiClient = new ApiClient();
apiClient.setUsername("JoeNapoli_API_Demo");
apiClient.setPassword("05uZuPRCyPi!6");
VerificationsApi verificationClient = new VerificationsApi(apiClient);
VerifyRequest request = new VerifyRequest()
.acceptTruliooTermsAndConditions(Boolean.TRUE)
.demo(true)
.cleansedAddress(false)
.configurationName("Identity Verification")
.countryCode("AU")
.consentForDataSources(new ArrayList<>(Arrays.asList(
"Australia Driver License",
"Australia Passport",
"Birth Registry",
"Visa Verification",
"DVS Driver License Search",
"DVS Medicare Search",
"DVS Passport Search",
"DVS Visa Search",
"DVS ImmiCard Search",
"DVS Citizenship Certificate Search",
"DVS Certificate of Registration by Descent Search",
"Credit Agency")))
.dataFields(new DataFields()
.personInfo(new PersonInfo()
.firstGivenName("John")
.middleName("Henry")
.firstSurName("Smith")
.yearOfBirth(1983)
.monthOfBirth(3)
.dayOfBirth(5)
.gender("M"))
.location(new Location()
.postalCode("3108")
.buildingNumber("10")
.unitNumber("3")
.streetName("Lawford")
.streetType("st")
.suburb("Doncaster")
.stateProvinceCode("VIC")
.city("Vancouver"))
.communication(new Communication()
.telephone("03 9896 8785")
.emailAddress("[email protected]"))
.driverLicence(new DriverLicence()
.number("076310691")
.state("VIC")
.dayOfExpiry(3)
.monthOfExpiry(4)
.yearOfExpiry(2021))
.nationalIds(Arrays.asList(new NationalId()
.number("5643513953")
.type("Health")))
.passport(new Passport()
.mrz1("P<SAGSMITH<<JOHN<HENRY<<<<<<<<<<<<<<<<<<<<<<")
.mrz2("N1236548<1AUS8303052359438740809<<<<<<<<<<54")
.number("N1236548")
.dayOfExpiry(5)
.monthOfExpiry(12)
.yearOfExpiry(2018))
.countrySpecific(new HashMap<String, Map<String, String>>(){{
put("AU", new HashMap<String, String>(){{
put("AuImmiCardNumber", "EIS123456");
put("CitizenshipAcquisitionDay", "15");
put("CitizenshipAcquisitionMonth", "4");
put("CitizenshipAcquisitionYear", "1987");
put("CountryOfBirth", "Australia");
put("FamilyNameAtBirth", "Smith");
put("MedicareColor", "Blue");
put("MedicareMonthOfExpiry", "12");
put("MedicareReference", "2");
put("MedicareYearOfExpiry", "2017");
put("PassportCountry", "Australia");
put("PlaceOfBirth", "Melbourne");
put("RegistrationNumber", "565659");
put("RegistrationState", "NSW");
put("StockNumber", "ACD1234567");}});
}}));
//verify
VerifyResult result = verificationClient.verify(request);
//verifyAsync
verificationClient.verifyAsync(request, new ApiCallback<VerifyResult>() {
@Override
public void onFailure(ApiException e, int statusCode, Map<String, List<String>> responseHeaders) {
Logger.getLogger(SdkJavaV1Sample.class.getName()).log(Level.SEVERE, null, e);
}
@Override
public void onSuccess(VerifyResult result, int statusCode, Map<String, List<String>> responseHeaders) {
System.out.println(result); //To change body of generated methods, choose Tools | Templates.
}
@Override
public void onUploadProgress(long bytesWritten, long contentLength, boolean done) {
//To change body of generated methods, choose Tools | Templates.
}
@Override
public void onDownloadProgress(long bytesRead, long contentLength, boolean done) {
//To change body of generated methods, choose Tools | Templates.
}
}); 400Your request could not be processed, there should be more details in the response.
401The user name and password you provided is not valid or you are using an account not configured to be an API user.
408The request took longer to process than we waited.
415You asked for a media type that we do not support. You should request application/json in the Content-Type header.
500An error happened on the server without a specific message.

