Additional Document Scan
šŖŖ Additional Document Scan Workflow ā REL-ID IDV SDK
This document explains the end-to-end process and API interactions involved in performing an Additional Document Scan using the REL-ID IDV SDK.
šÆ Purpose
The Additional Document Scan feature enables the mobile app to request and capture a secondary identity document from a logged-in user. This may be required in scenarios such as:
- Multi-document KYC
- Policy-based re-verification
- Additional compliance or audit steps
š Workflow (Step-by-Step)
- ā User logs in to the mobile app.
- š² App calls
initiateIDVAdditionalDocumentScan(reason)to trigger the scan. - š SDK triggers event
getIDVDocumentScanProcessStartConfirmation. - š¼ļø App displays a prompt explaining why the document is required and shows a Start button.
- š User taps Start.
- š¤ App responds using
setIDVDocumentScanProcessStartConfirmation(true, workflow). - šø SDK launches scanner and captures the document.
- š§ SDK performs OCR and extracts document details.
- š„ SDK triggers
getIDVConfirmDocumentDetailswith OCR data. - š§¾ App shows the extracted fields for user review (e.g., Name, DOB).
- š¤ User taps Confirm or Rescan:
- If Confirm:
setIDVConfirmDocumentDetails(true, mode) - If Rescan:
setIDVConfirmDocumentDetails(false, mode)
- If Confirm:
- ā
SDK triggers
onIDVAdditionalDocumentScanwith the final results. - š¢ App displays success screen or proceeds to the next step.
flowchart TD
userLogsIn[User Logs In] --> onUserLoggedIn[SDK triggers onUserLoggedIn]
onUserLoggedIn --> initiateIDVAdditionalDocumentScan[App calls initiateIDVAdditionalDocumentScan]
initiateIDVAdditionalDocumentScan --> getIDVDocumentScanProcessStartConfirmation[SDK triggers getIDVDocumentScanProcessStartConfirmation]
getIDVDocumentScanProcessStartConfirmation --> setIDVDocumentScanProcessStartConfirmation[App calls setIDVDocumentScanProcessStartConfirmation]
setIDVDocumentScanProcessStartConfirmation --> initiateDocCapture[SDK initiates Document Capture]
initiateDocCapture --> scanDoc[User scans Document]
scanDoc --> onIDVAdditionalDocumentScan[SDK triggers onIDVAdditionalDocumentScan]
%% Success Callback Styling
style onUserLoggedIn fill:#d4fdd4,stroke:#228b22,stroke-width:2px
style getIDVDocumentScanProcessStartConfirmation fill:#d4fdd4,stroke:#228b22,stroke-width:2px
style onIDVAdditionalDocumentScan fill:#d4fdd4,stroke:#228b22,stroke-width:2px
%% App-Initiated Call Styling
style initiateIDVAdditionalDocumentScan fill:#ffe4b3,stroke:#ff8c00,stroke-width:2px
style setIDVDocumentScanProcessStartConfirmation fill:#ffe4b3,stroke:#ff8c00,stroke-width:2px
š© Green - Callbacks issued by REL-ID SDK
š§ Orange - APIs invoked by the Client App
š¦ APIs Involved
| API / Event | Purpose |
|---|---|
initiateIDVAdditionalDocumentScan | Triggers the scan |
getIDVDocumentScanProcessStartConfirmation | Requests user consent |
setIDVDocumentScanProcessStartConfirmation | Launches scanner if user agrees |
getIDVConfirmDocumentDetails | Returns extracted document fields |
setIDVConfirmDocumentDetails | Confirms or cancels the extracted data |
onIDVAdditionalDocumentScan | Final data delivery after confirmation |
š§¾ Example Screen Content
- āPlease scan your secondary identity proofā
- āEnsure the document is in focus and readableā
- Buttons:
- ā āStart Scanā
- š āRescanā
- āļø āConfirmā
š§ Notes
- This flow is available only after user login.
- The
challengeModein this flow is typically11. - The final result is received via the
onIDVAdditionalDocumentScanevent.
Updated 8 months ago
