6. Docupass

This category supports all rapid user verification based on the ids and the face images provided.

6.1. listDocupass

This function retrieves a list of all available Docupass based on the parameters provided.

Declaration

(async) listDocupass(order, limit, offset) → {Promise.<*>}

Here are the input and output parameters defined against this function.

Type (In/Out)NameDescription
Integer - [In]orderSort results by newest(-1) or oldest(1). If the parameter is left out during execution, the function will use the -1 value. The value cannot be 1 or -1. The function will throw an exception if any one of these is used.
Integer - [In]limitNumber of items to be returned per call. The function will use the -1 value if the parameter is left out during execution. The 'limit' should be a positive integer greater than 0 and less than or equal to 100.
Integer - [In]offsetStart the list from a particular entry index.
Object- [Out]N/AThe list of Docupass object result objects streamed into $payload named parameter and returned.

6.2. createDocupass

This function creates a new Docupass link for rapid identity verification and/or e-signature.

Declaration

(async) createDocupass(mode, profile, contractFormat, contractGenerate, reusable, contractPrefill, contractSign, customData, language, referenceDocument, referenceDocumentBack, referenceFace, userPhone, verifyAddress, verifyAge, verifyDOB, verifyDocumentNumber, verifyName, verifyPostcode) → {Promise.<*>}

Here are the input and output parameters defined against this function.

Type (In/Out)NameDescription
Object - [In]profileCustom KYC Profile details. The function will use NULL value in case the parameter is left out during execution. The function will throw an exception if NULL value is passed in this parameter.
String - [In]contractFormatAvailable contract formats are PDF, DOCX or HTML. The function will use PDF value in case the parameter is left out during execution.
String - [In]contractGenerateGenerate up to 5 documents using information from the uploaded ID, without the user reviewing or signing the document. The function will use BLANK value if the parameter is left out during execution.
String - [In]reusableWhether the generated link can be used to verify multiple person. The function will use false value in case the parameter is left out during execution.
String - [In]contractPrefillJSON data in key-value pairs to autofill dynamic fields, data from user ID will be used first in case of a conflict. E.g. passing {"myparameter":"abc"} would fill %{myparameter} in contract template with "abc". The function will use BLANK value in case the parameter is left out during execution.
String - [In]contractSign- Generate a document using information from uploaded ID, and have the user review and sign the document after identity verification. Required for mode=3. - Function will use BLANK value if the parameter is left out during execution.
String - [In]customDataCustom data to create Docupass. The function will use BLANK value if the parameter is left out during execution.
String - [In]languageOverride auto language detection. The function will use BLANK value if the parameter is left out during execution.
String - [In]modeDocupass modes can be 0=Document+Face, 1=Document Only, 2=Face Only, 3=e-Signature Only. Function will use 0 value in case the parameter is left out during execution.
String - [In]referenceDocumentBase64 encoded document image; if supplied, no document front image will be captured. The function will use BLANK value if the parameter is left out during execution.
String - [In]referenceDocumentBackBase64 encoded document back image, if supplied, no document back image will be captured. The function will use BLANK value in case the parameter is left out during execution.
String - [In]referenceFaceBase64 encoded face image; if supplied, no face image will be captured. Required if mode=2. The function will use BLANK value in case the parameter is left out during execution.
String - [In]userPhoneSupply user phone number for verification; must enable phoneVerification in profile settings. The function will use BLANK value if the parameter is left out during execution.
String - [In]verifyAddressVerification address. The function will use BLANK value if the parameter is left out during execution.
String - [In]verifyAgeVerification age. The function will use BLANK value if the parameter is left out during execution.
String - [In]verifyDOBVerification date of birth. The function will use BLANK value if the parameter is left out during execution.
String - [In]verifyDocumentNumberVerification document number. The function will use BLANK value if the parameter is left out during execution.
String - [In]verifyNameVerification name. The function will use BLANK value if the parameter is left out during execution.
String - [In]verifyPostcodeVerification postcode. The function will use BLANK value if the parameter is left out during execution.
Object- [Out]N/AThe saved Docupass object streamed into $payload named parameter and returned.

6.3. deleteDocupass

This function deletes Docupass Link by reference code.

Declaration

(async) deleteDocupass(reference) → {Promise.<*>}

Here are the input and output parameters defined against this function.

Type (In/Out)NameDescription
String - [In]referenceDocupass reference id that is to be deleted. The function will use NULL value in case the parameter is left out during execution. The function will throw an exception if NULL value is passed in this parameter.
Object- [Out]N/AThe deleted Docupass object streamed into $payload named parameter and returned.