Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The web service will return a JSON fragment with all the details of the person and the overall status of the verification attempt. See Verification Result Variables for a list of the variables and explanations for each of them.

Accessing Image and OCR information for greenID Mobile

Overview

To access image and OCR information from greenID mobile, including but not limited to; raw OCR information, confirmed user information and document images the DocumentImageServiceV2 is used. This webservice provides this information for each combination source attempt for a given verificationId. 

Setup

This is a WSDL based web service and as such is consumed in the normal WSDL way using the below URLs. 

This webservice can be accessed on our test server using: https://test-au.vixverify.com/Registrations-Registrations/DocumentImageServiceV2?wsdl

And in production using: https://au.vixverify.com/Registrations-Registrations/DocumentImageServiceV2?wsdl

Request Parameters

Required Parameters:

accountId - The account code provided to you as a customer for use with greenID

password - The webservice password provided to you as a customer for use with greenID

verificationId - The verificationId of the verification you wish to get the information for.

Optional Parameters:

getConfirmedOcrData - Set to true to get the confirmed ocr data for all combination source attempts.

getRawOcrData - Set to true to get the raw ocr data for all combination source attempts.

getImageData - Set to true to return document image and selfie information for all combination source attempts. Please note that this function is disabled by default, please contact us at support@edentiti.com to have this enabled for your account.

Optional parameters are passed into the webservice using the a param tag which needs the parameter name and value to be set. All of the parameters can be set to either true or false and will include or exclude their corresponding elements based on the setting, true will return the corresponding data, false will exclude it. If a parameter is not provided it will default to false.

The operation which returns the image data is more intensive for us then the other two so we ask that you keep your calls to get the image data to a minimum.

Example

Code Block
languagexml
titleRequest
linenumberstrue
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:dyn="http://dynamicform.services.registrations.edentiti.com/">
   <soapenv:Header/>
   <soapenv:Body>
      <dyn:getInfoForAllDocuments>
         <accountId>account_id</accountId>
         <password>web-service-password</password>
         <verificationId>A1a1aAAA</verificationId>
         <param>
            <name>getConfirmedOcrData</name>
            <value>true</value>
         </param>
         <param>
            <name>getRawOcrData</name>
            <value>true</value>
         </param>
         <param>
            <name>getImageData</name>
            <value>true</value>
         </param>
      </dyn:getInfoForAllDocuments>
   </soapenv:Body>
</soapenv:Envelope>
Code Block
languagexml
titleResponse
linenumberstrue
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
   <env:Header/>
   <env:Body>
      <ns2:getInfoForAllDocumentsResponse xmlns:ns2="http://dynamicform.services.registrations.edentiti.com/">
         <return>
            <document>
               <confirmed>
                  <confirmedItem>
                     <name>surname</name>
                     <value>SMITH</value>
                  </confirmedItem>
                  <confirmedItem>
                     <name>documentNumber</name>
                     <value>A1111111</value>
                  </confirmedItem>
               </confirmed>
               <images>
                  <imageItem>
                     <index>FRONT</index>
                     <url>https://s3-ap-southeast-2.amazonaws.com/public.folder.test/images/123.jpg</url>
                  </imageItem>
                  <imageItem>
                     <index>FACE</index>
                     <url>https://s3-ap-southeast-2.amazonaws.com/public.folder.test/images/1234.jpg</url>
                  </imageItem>
                  <imageItem>
                     <index>SELFIE</index>
                     <url>https://s3-ap-southeast-2.amazonaws.com/public.folder.test/images/12345.jpg</url>
                  </imageItem>
               </images>
               <raw>
                  <rawItem>
                     <name>surname</name>
                     <value>SMITH</value>
                  </rawItem>
                  <rawItem>
                     <name>documentNumber</name>
                     <value>A2222222</value>
                  </rawItem>
               </raw>
               <region>NZ</region>
               <subregion>unknown</subregion>
               <type>PASSPORT</type>
            </document>
         </return>
      </ns2:getInfoForAllDocumentsResponse>
   </env:Body>
</env:Envelope>

Return Data

It is important to note that though this example only contains one document object real results may contain none or several as a single verification can have multiple combination source attempts. The same is true for confirmedItems and rawItems, real results are likely to contain many more results, but will provide these additional fields in the same format.

  • document - This is a single document container, it represents a single combination source attempt and contains all other return data.
    • region - The region of the document used for the combination source attempt.
    • subregion - The subregion of the document used for the combination source attempt, will default to "unknown" if no subregion is used on the document.
    • type - The document type of the combination source
    • confirmed - An object which contains the list of confirmedItems.
      • confirmedItem - A single confirmed data item such as a name or document number. 
        • name - The name of the field, could also be considered to be key.
        • value - The value of the field
    • images - an object which contains the list of images for the combination source
      • imageItem - A single imageItem object containing information about a single image.
        • index - the index contains the type of image, possibilities include: FRONT, BACK, FACE and SELFIE. Please note that not all documents will have any or all of these indexes attached since they are not always captured depending on the account settings and the how the capture process went for the user.
        • url - The url of the image file
    • raw - an object which contains the list of rawItems, can be empty if no fields were successfully OCRed off the document.
      • rawItem - A single raw data item such as a name or dob, etc. Please note that these field can contain all sorts of weird and wonderful characters since it is the raw output from the OCR process. In addition only the fields which were successfully OCRed will be returned, the fields returned can and will fluctuate depending on the OCR result.
        • name - The name of the field,could also be considered to be key.
        • value - The value of the field

Possible Names

Regarding the rawItem and confirmedItem names the current list of possible keys are:

General

  • givenname
  • middlename
  • surname
  • dob
  • country

Document Related

  • documentNumber
  • secondaryDocumentNumber
  • documentExpiryDate
  • documentIssueDate
  • documentType
  • documentRegion
  • documentGender

Address Related

  • propertyName
  • flatNumber
  • streetNumber
  • streetName
  • streetType
  • postcode
  • townCity
  • state

Last Updated:  

Notes on the name list

...

For information on how to get the raw and confirmed OCR data back after the verificaiton process as well as document images please refer to the Accessing Image and OCR information page.

Common Problems and Solutions

ProblemExplanationSolution

"Invalid Password"

AccountId and password authentication has failed.Either the password or accountId are incorrect, correct any problems and try again.
"A verification with verificationId 'XXX' could not be found."The provided verificationId could not be found in our system.Check the verificationId exists, correct and retry. Please note that verificationIds are case sensitive.

Nothing is being returned in the responce. Eg:

Code Block
<env:Envelope>
   <env:Header/>
   <env:Body>
      <ns2:getInfoForAllDocumentsResponse>
         <return/>
      </ns2:getInfoForAllDocumentsResponse>
   </env:Body>
</env:Envelope>


The verificationId exists but does not have any combination source attempts on it.Either create a combination source attempt for that verificationId or restasured that none exist.

Styling the screens

The SDK is predominantly made up of HTML/CSS pages served via native web views.  You can use the customCssPath parameter to pass in a URL that points to a CSS file residing on your server.  This CSS file can include overrides to any of the default style rules so that the screens can adhere to your own branding requirements. 

...