Document Extraction
The Document Extraction module extracts all fields from the previously classified document. The module allows customers to specify what data is required. Success of the extraction process will be determined by the completion of all required extraction selections.Capabilities
The module returns four capabilities: an overall extraction result, the document’s expiry status, a calculated age derived from the extracted date of birth, and the number of days since the document expired.Document extraction result
This capability provides the overall outcome of the extraction process. The result is determined by whether all fields marked as required in the module configuration were successfully extracted from the document.Document expiry status
Provides the document’s Expiry status - Has the document expired or is it still valid? If the Expiry Date is not extracted, “Undeterminable” will be returned.Calculated age
Provides a calculated Age (in years) based on date of birth and current date. If the Date of Birth is not extracted, 0 will be returned.
If the date of birth was successfully extracted, the module calculates the subject’s current age in whole years. This value can be used in downstream evaluation rules, for example to enforce a minimum age threshold without requiring a separate Age Verification module.
If the date of birth could not be extracted, the value defaults to
0. Evaluation rules that depend on this capability should account for the default value. A calculated age of 0 indicates a missing date of birth, not a subject aged zero.
Days since expiry
Provides the number of whole days since the document’s Expiry Date. Returns 0 when the document has not expired, or when the Expiry Date could not be determined. Important: when authoring a threshold rule, always combine this with Document Expiry Status = Expired, because Not Expired and Undeterminable documents also return 0 — a rule on Days Since Expiry alone (for example, <= 730) would match those too. Example: ‘Document Expiry Status is Expired AND Days Since Expiry <= 730’ accepts only documents that expired within a 730-day / ~2-year grace period.
Use this capability to set an expiry threshold in evaluation rules. You select an operator and a number of days to define how long after expiry a document remains acceptable. The supported operators are greater than, less than, greater than or equal to, less than or equal to, and equal to.
For example, some Australian anti-money laundering and counter-terrorism financing policies accept a passport for up to two years after it expires. To enforce this, set the rule to days since expiry less than or equal to
730. If the expiry date is 730 days or fewer in the past, then the document passes. If it is more than 730 days in the past, then the document fails.
Always combine this capability with document expiry status set to Expired in your evaluation rules. Otherwise, the rule also matches documents that have not expired or whose expiry status is undeterminable, because both return a value of 0.
Anchor image extracted
Indicates whether the anchor (portrait) image was successfully extracted from the document. When false, downstream facematch can be skipped as there is no anchor image to compare against.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.This module does not require its own input payload. It runs off of the document images already captured by the Document Classification module earlier in the journey.
Sample response
The following is a sample response for an unsuccessful extraction where the document was expired and some required fields could not be extracted.JSON
Input payload
The following is a sample payload used to submit data to the Document extraction module for processing.JSON
Document Extraction V2
Capabilities
Document extraction result
Provides an extraction result based on the customer’s required extraction data (as defined in configuration).Document expiry status
Provides the document’s Expiry status - Has the document expired or is it still valid? If the Expiry Date is not extracted, “Undeterminable” will be returned.Calculated age
Provides a calculated Age (in years) based on date of birth and current date. If the Date of Birth is not extracted, 0 will be returned.Days since expiry
Provides the number of whole days since the document’s Expiry Date. Returns 0 when the document has not expired, or when the Expiry Date could not be determined. Important: when authoring a threshold rule, always combine this with Document Expiry Status = Expired, because Not Expired and Undeterminable documents also return 0 — a rule on Days Since Expiry alone (for example, <= 730) would match those too. Example: ‘Document Expiry Status is Expired AND Days Since Expiry <= 730’ accepts only documents that expired within a 730-day / ~2-year grace period.Anchor image extracted
Indicates whether the anchor (portrait) image was successfully extracted from the document. When false, downstream facematch can be skipped as there is no anchor image to compare against.Input payload
The following is a sample payload used to submit data to the Document Extraction V2 module for processing.JSON
Sample response
The following is a sample response returned by the module.JSON