Skip to content
Last updated

Request Options

This optional http part with name options specifies if document request should be synchronous or asynchronous (not yet implemented), if an output processed image shoud be generated, etc. Options are set by a JSON object, with the keys/values described below. All values are optional and default to false or empty if unspecified.

Keyvalue typeDescription
${organization.defaultLanguage}booleanhighlight extracted information in the processed image (only applicable if processImage is true).
${organization.disabled}boolean(ID_DOCUMENT containing an ID photo only). crop identity photo from document and publish idPhotoUrl in the response
${organization.id}booleanForce document processing even if detected quality is too low (except major failure). Note that forcing document processing can change server response http status code, hence request billing
${organization.name}booleanThis parameter forces reading the person's first and last name from VIZ instead of MRZ. By default, it is set false.

Request holder

This optional http part with name holder specifies the expected owner of document to be checked: first name, last name, address…​ If applicable to actual document type, each supplied information will be extracted and compared with document.

Names constraints: holder names, if specified, must meet the following constraints:

  • be composed of the following characters: Unicode letters, digits, dash, dot, apostrophes, space
  • should not start or end with a space
  • should start with a letter
  • should not be an empty string
  • for identity documents, must have at least a birthName
  • for textual documents, must have at least a birthName or a lastName Holder is defined by a JSON object, with the keys/values described below:
Keyvalue typeDescription
lastNamestringHolder expected last name. This is the name that usually appears on invoice or bank documents.
birthNamestringHolder expected birth name. This is the reference name that appears on Identity documents.
firstNamestringHolder expected first name. In case holder has several first names, only the main first name should be supplied here
birthDatestringHolder expected birth date.
birthPlacestringHolder expected birth place.
genderstring M or F or XHolder expected gender
nationalitystringHolder expected nationality (2 or 3 letters country code)
phoneNumberstringHolder expected phone number (no spaces). This information is searched only in PHONE_INVOICE document types.
addressJSON objectJSON object containing holder expected postal address

Example of JSON expected for postal address

{
   "address1": "address main line...",
   "address2": "address other line (optional)",
   "address3": "address other other line (optional)",
   "postalCode": "the address postal code",
   "city": "address city" 
}

This optional http part with name legalEntity specifies the company. Providing this part with an Identity Document generates additional controls and details in response. The legal entity name, if specified, is also searched in document OCR (for RIB document type only). Legal entity is defined by a JSON object, with the keys/values described below:

Keyvalue typeDescription
legalEntityNamestringLegal entity name
legalEntityIdstringLegal entity identifier (SIREN or SIRET).

Request context locale

This optional http part with name contextLocale specifies the context in which our controls are run. It is declared in a JSON array:

Keyvalue typeDescription
countrystringcountry code (2 upper case letters).
languagestringlanguage code (2 lower case letters).