Document Types

Depending on the country you are verifying a document for there are multiple possible DocumentTypes. In order to know which document types are available for a specific country GlobalGateway offers the Get Document Types call. Using the user selected country codecountry code - Trulioo's API is structured to make calls by country. Trulioo uses ISO 3166-1 alpha-2 country codes. from the previous step and this call you will get the following response:

{
  "AU": [
    "DrivingLicence",
    "Passport"
  ]
}

Much like how the country codes can be built into a dropdown in HTML, we can do the same with document types. This will allow you user to select the document type they wish to submit.

<form>
  <select name="documenttypes">
    <option value="DrivingLicence">Driving Licence</option>
    <option value="Passport">Passport</option>
  </select>
</form>

What’s Next
Did this page help you?