⚠️ Alpha: Please note webhooks are in an early stage of development and are subject to change.
Purpose
Our DVFC Alert webhooks have been created to trigger a webhook whenever an Alert is generated from our verification system. This will enable you to utilise any downstream automation like updates to ongoing verification checks.
Getting set up
W2 Webhooks are an important new feature of our Document Verification & Facial Recognition, in order to make use of them you will need to ensure:
- You are using W2's DVFC 047 system.
- You have informed us of the callback URL you are listening on.
To establish either of these you can reach out to our Support team who can help you get started.
Sample Payload
{
"id" : "case-result-guid",
"caseId" : "case-id-guid",
"dvfcWebResult" : {
"notification" : {
"accountId" : "user.sdkweb.cis",
"resourceId" : "26324621-2688-47c4-904d-3cbc07ed4a56",
"resourceType" : "ONBOARDING",
"event" : "END_ONBOARDING",
"eventDate" : "2017-07-21T17:32:28Z",
"eventData" : {
"businessUid" : "sessionId",
"endpointCode" : "notify-endpoint",
"onboardingStatus" : "SUCCESS",
"withQualityIssues" : "true"
}
},
"onboardingResults" : {
"uid" : "guid-of-the-onboarding",
"status" : "SUCCESS",
"errorCause" : {
"code" : "USER_ERROR",
"details" : "More details about the origin of the error"
},
"result" : {
"uid" : "guid-of-the-onboarding",
"businessId" : "sessionId",
"status" : "SUCCESS",
"analysisResults" : [
{
"code" : "code from the document definition",
"expectedDocTypes" : [
"ID", "P"
],
"listCapturedDocs" : [
"base-64 contents that were captured"
],
"listCapturedDocUids" : [
"list of document ids that were captured"
],
"biometricConsent" : true,
"analysisData" : {
"docType" : "P",
"withQualityIssues" : true,
"owner" : { // only extracted from MRZ documents
"lastNames" : [
"lastName"
],
"firstNames" : [
"firstNames"
],
"birthDate" : {
"day" : 1,
"month" : 10,
"year" : 1990
}
}
},
"captureSource" : "NATIVE_CAMERA"
}
],
"extraData" : {
"missingOptionalDocs" : [
"List of the optional documents codes that the user chose not to capture"
],
"device" : {
"userAgent" : "user-agent of the browser used to do the onboarding"
}
}
},
"message" : "Information message.(Like to warn that the results are not available anymore if delay expired)."
}
}
}Field Breakdown
1. Identification Process
| Property | Notes |
|---|---|
| Id | The id of the case result associated with the notification. |
| CaseId | CaseId of the case associated with the notification. |
| DVFCWebResult | Result of the identification process, consisting of two parts Notificationand OnboardingResults. |
1.1 DVFCWebResult - Notification
This section of the result will contain information about the type of the notification and the general status of the identification session.
| Property | Description |
|---|---|
| AccountId | Unique identifier for the user. |
| AppId | Identifier of the App which triggered the notification. It’ll always be SDK-Web. |
| ResourceId | The unique identifier for the session. |
| ResourceType | The type of the resource, it’ll always be ONBOARDING. |
| Event | The notification event type will be either START_ONBOARDING or END_ONBOARDING. |
| EventDate | Notification creation date. |
| EventData | Notification event data. See 1.1.1 for more information. |
1.1.1 DVFCWebResult - Notification - EventData
Property | Description |
|---|---|
BusinessUid | The session id. |
EndpointCode | The notification endpoint code used. |
OnboardingStatus | The overall status of the identification process. Can be one of the following: |
WithQualityIssues | Flag to indicate if at least one document captured has quality issues (true). |
This happens when the user is not able to push an issue-less document after several tries. |
1.2 DVFCWebResult - OnboardingResults
Status of the onboarding, contains results as well if the onboarding reached the end.
| Property | Description |
|---|---|
| Uid | The unique identifier for the onboarding session. |
| Status | OnboardingStatus as described in 1.1.1. |
| ErrorCause | Cause of the error that terminated the onboarding. See 1.2.1 for more detail. |
| Result | Object containing the final results of the onboarding, once it’s complete. See 1.2.2 for more details. |
| Message | Information message. (Like to warn that the results are not available anymore if delay expired). |
1.2.1 DVFCWebResult - OnboardingResults - ErrorCause
Property | Description |
|---|---|
Code | Code of the error that terminated the onboarding. Can be one of the following: |
Details | More details about the origin of the error. Can be one of the following messages: |
1.2.2 DVFCWebResult - OnboardingResults - Result
Property | Description |
|---|---|
Uid | The unique identifier of the onboarding. |
BusinessUid | The session id for the onboarding. |
Status | Indicate if the onboarding was successful or not. |
AnalysisResults | List of AnalysisResult objects containing the analysis results extracted from a document. See 1.2.3 for more details. |
1.2.3 DVFCWebResult - OnboardingResults - AnalysisResult
Contains the analysis results extracted for a document.
Property | Description |
|---|---|
Code | Code from the DocToCapture description, client-defined capture identifier. |
ExpectedDocTypes | List of expected DocToCaptureType that should be confirmed by the analysis. |
ListCapturedDocs | List containing the document base64 contents that were captured, either one or both sides. |
ListCapturedDocUids | List containing the document ids that were captured, either one or both sides. |
BiometricConsent | The user consent for automated processing of Biometric documents (Only Selfie & Liveness). |
AnalysisData | The data extracted from the analysis. May contain OwnerData if the document carried a MRZ. See 1.2.4 for more details. |
CaptureSource | Source of the captured document. Can be one of the following: -
|
1.2.4 DVFCWebResult - OnboardingResults - AnalysisData
Property | Description |
|---|---|
DocType | -
|
DocType | Flag to indicate if the document captured has quality issues (true). |
Owner | Data related to the document owner (Only extracted from MRZ documents). The object consists of: |
