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

public function listDocupass($order = -1, $limit = 10, $offset = 0)

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). The function will use the -1 value the parameter is left out during execution. The value cannot be 1 or -1. The function will throw an exception if any one of these value 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

public function createDocupass( $profile = null, $contractFormat = 'pdf', $contractGenerate='', $contractPrefill='', $contractSign = '', $customData = '', $language = '', $mode = 0, $referenceDocument = null, $referenceDocumentBack=null, $referenceFace=null, $reusable=false, $userPhone='', $verifyAddress='', $verifyAge='', $verifyDOB='', $verifyDocumentNumber='', $verifyName='', $verifyPostcode='')

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 the BLANK value if the parameter is left out during execution.
String - [In]$reusableWhether the generated link can be used to verify multiple persons. 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 if the parameter is left out during execution.
String - [In]$contractSignGenerate a document using information from the uploaded ID, and have the user review and sign the document after identity verification. Required for mode=3. The function will use the 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. The 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 if 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. - Function will use BLANK value if the parameter is left out during execution.
String - [In]$userPhoneSupply user phone number for verification. This enables phoneVerification in profile settings. 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]$verifyDocumentNumber- Verification document number. - Function will use BLANK value if the parameter is left out during execution.
String - [In]$verifyName- Verification name. - Function will use BLANK value if the parameter is left out during execution.
String - [In]$verifyPostcode- Verification postcode. - 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

public function  deleteDocupass($reference = null)

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

Type (In/Out)NameDescription
System.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.
JObject - [Out]N/AThe deleted Docupass object streamed into $payload named parameter and returned.