initiateIDVAdditionalDocumentScan

📄 API Documentation: initiateIDVAdditionalDocumentScan

🧭 Overview

This API triggers the Additional Document Scan workflow. It can only be invoked after the user is authenticated (post-login). Once called, it:

  • Triggers the event getIDVDocumentScanProcessStartConfirmation for user consent.
  • On confirmation, launches the REL-ID IDV Document Scanner UI.
  • On completion, returns document details via the event onIDVAdditionalDocumentScan.

🖼️ Screen to Present

  • A document scan initiation screen asking for user permission with reason.
  • A "Start Scan" button that will respond to the consent event and initiate scanning.

🧩 API Invocation

React Native
RdnaClient.initiateIDVAdditionalDocumentScan(
  "KYC Verification",
  (response) => {
    // Handle RDNAError response
  }
);
Flutter
rdna.initiateIDVAdditionalDocumentScan("KYC Verification");
Cordova
com.uniken.rdnaplugin.RdnaClient.initiateIDVAdditionalDocumentScan(
  successCallback,
  errorCallback,
  ["KYC Verification"]
);
Native iOS
(RDNAError *)initiateIDVAdditionalDocumentScan:(NSString *)reason;
Native Android
RDNA.RDNAError initiateIDVAdditionalDocumentScan(String reason);

📥 Parameters

ParameterTypeDescription
reasonStringA specific reason for initiating document scan (e.g., "PAN Verification")

Cordova also includes:

ParameterTypeDescription
successCallbackFunctionCalled when the call succeeds
errorCallbackFunctionCalled if an error occurs

🔄 Related Events

EventPurpose
getIDVDocumentScanProcessStartConfirmationTriggered immediately after this API is called to request user consent
onIDVAdditionalDocumentScanTriggered after successful scan, returns results

✅ Success Action

  • SDK triggers the start confirmation event.
  • On user consent, the document scan UI appears.
  • Extracted details will be posted to onIDVAdditionalDocumentScan.

⚠️ Failure/Error Handling

The response is a RDNAError JSON, which includes:

  • shortErrorCode
  • longErrorCode
  • errorString

Typical errors include:

  • Invalid session
  • Consent denied by user
  • SDK not properly initialized