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,
ConfigurationName = "Identity Verification",
CountryCode = "US",
DataFields = new DataFields()
{
PersonInfo = new PersonInfo()
{
FirstGivenName = "Kyle Antwon",
MiddleName = "",
FirstSurName = "Hertz",
},
Document = new Document()
{
DocumentFrontImage = frontImageAsByteArray[],
DocumentBackImage = backImageAsByteArray[],
LivePhoto = livePhotoImageAsByteArray[],
DocumentType = "DrivingLicence"
},
}
};
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)
.configurationName("Identity Verification")
.countryCode("US")
.dataFields(new DataFields()
.personInfo(new PersonInfo()
.firstGivenName("Kyle Antwon")
.middleName("")
.firstSurName("Hertz"))
.document(new Document()
.documentFrontImage("/9j/4QAYRXhpZgAASUkqAAgAAAAA .....IQCEIQCEIQCEIQP/9k=")
.documentBackImage("/9j/4QAYRXhpZgAASUkqAAgAAAAA......LKICIiAiIgIiICIiAiIg//Z")
.documentType("DrivingLicence"));
}}));
//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.

