Cross-Document Data Match Module

The Cross-Document Data Match module runs a backend comparison of OCR data across multiple captured documents (e.g., ID + proof-of-address) and flags

📘

This guide is specific to Web SDK 2.0. If you are still using 1.x, you can find documentation here. We strongly recommend upgrading - contact your Incode Representative for upgrade information.

The Cross-Document Data Match module runs a backend comparison of OCR data across multiple captured documents (e.g., ID + proof-of-address) and flags inconsistencies. Fire-and-forget — completes after a minimum display duration so the user sees a confirmation spinner.

Follows the backend-process pattern. See the patterns page for the shared lifecycle.

Tag

<incode-cross-document-data-match> is a standard Web Component. Importing the UI subpath registers the custom element; the module is bundled with @incodetech/web/flow (no separate UI subpath import).

import '@incodetech/web/cross-document-data-match';

Properties

PropertyTypeRequiredDescription
configCrossDocumentDataMatchConfigNo options
onFinish() => voidCalled when comparison completes
onError(error: string) => voidCalled when an error occurs

Configuration

The module takes no configuration:

type CrossDocumentDataMatchConfig = Record<string, never>;

Comparison rules and inconsistency thresholds are configured server-side per tenant.

State machine

CrossDocumentDataMatchState is a discriminated union over status:

StatusDescription
idleInitial state.
processingBackend comparison in progress.
finishedTerminal — comparison completed.

The module deliberately holds the processing state for a minimum display duration so users see a confirmation spinner regardless of how fast the backend responds.

See also