Document Attachments
The Document Attachments variant accepts file uploads from users and stores them against the journey session. The variant accepts multiple document types in a single step, including secondary identity documents, address documents, and additional supporting documents.Accepted document types
The module accepts the following document types as inputs:| Input | Description |
|---|---|
SecondaryDocument | A secondary identity document that supplements the primary document captured earlier in the journey. For example, if the primary document is a passport, the secondary document might be a driving licence or national ID card. |
AddressDocument | A document that provides proof of the subject’s residential address. Common examples include utility bills, bank statements, council tax bills, or tenancy agreements. |
AdditionalDocuments | Any other supporting documents you require. This is a flexible category that can accommodate proof of income documents such as payslips or tax returns, employment verification letters, educational certificates, or any other supplementary evidence needed for the onboarding process. |
Capabilities
The module returns three capabilities: an attachment result indicating whether documents were successfully uploaded, and two integer values reporting the number of documents and total pages received.Attachment result
This capability indicates whether the required documents were successfully attached to the journey session.| Value | Description |
|---|---|
ATTACHED | One or more documents were successfully uploaded and stored. The files are available for manual review in the Investigation portal or for consumption by downstream processes. |
NOT_ATTACHED | No documents were uploaded. This may occur if the user abandoned the upload step, if all uploaded files failed validation, for example, unsupported file format or file size exceeded, or if the upload step was skipped. This is the default value. |
ERROR | An error occurred during document processing. |
Document count
This capability returns the number of documents successfully attached to the journey session. Each distinct file uploaded counts as one document, regardless of how many pages it contains.| Detail | Description |
|---|---|
| Type | Integer |
| Range | 0–100 |
| Default | 0 |
0 indicates that no documents were successfully attached. Evaluation rules that depend on a minimum number of documents should check both the attachment result and the document count to distinguish between no documents uploaded and documents uploaded but fewer than required.
Page count
This capability returns the total number of pages across all attached documents. For multi-page documents, such as a bank statement PDF, each page is counted individually.| Detail | Description |
|---|---|
| Type | Integer |
| Range | 0–1000 |
| Default | 0 |
0 indicates that no pages were captured.
Default outcomes
The module is pre-configured with the following default outcomes, which can be used in evaluation and routing logic within the journey designer.| Outcome | Condition | Description |
|---|---|---|
ATTACHED | Attachment result is ATTACHED | One or more documents were successfully uploaded and stored. The journey can proceed to manual review, downstream processing, or the next verification step. |
NOT_ATTACHED | Attachment result is NOT_ATTACHED | No documents were uploaded. Depending on your configuration, the journey may prompt the user to retry the upload, route to a reminder notification, or proceed without the supplementary documents if they’re optional. |
ERROR | Default (no conditions matched) | An unexpected error occurred during document processing. |
Input payload
The following is a sample payload used to submit supporting documents to the Document Attachments module for processing.JSON
| Field | Required | Description |
|---|---|---|
type | Yes | Describes the document being attached (for example, “Proof of Address (Utility Bill)”, “Proof of Address (Bank Statement)”, “Proof of Income (Payslip)”). |
side1Image | Yes | Base64-encoded image of the front of the document. |
side2Image | No | Base64-encoded image of the back of the document. |
documents | Yes | Accepts between 1 and 10 items. Each item represents a separate attachment. |