Skip to main content

Triggers

JSON KeyPurpose
meta.fraud.colorIf potential fraud was detected. You should trigger an investigation / automated workflows when the color is not green. Color responses: Green - no fraud Yellow - maybe some fraud Red - looks like fraud
meta.fraud.scorePredicted probability of document being fraudulent. The answer is between 0 and 1, where \<0.5 results in meta.fraud.color Green, 0.51-0.75 - Yellow, >0.75 - Red.
meta.fraud.fraudulent_pdfDetailed results of the pdf check for fraudulent activities (read more in List of Possible Fraud Types)
meta.fraud.typesA list of strings showing all fraud signals we detected. Sorted by importance. Full list: ["handwritten characters", "handwriting tampering", "LCD photo", "digital background", "screenshot" (legacy alias for digital background, planned for future deprecation), "not a document", "duplicate", "similar documents", "high velocity", "critical velocity", "multiple profiles or devices", "fraud history", "emulated device", "blocked device", "aspect ratio mismatch", "fraudulent pdf", "fraudulent image", "generated document", "digital tampering", "data inconsistency", "suspicious content", "invalid qr data", "vendor layout mismatch", "invalid mrz data", "total in words mismatch"]
meta.fraud.detailsStrictly structured response details using lowercase snake-case versions of the fraud type names as keys. Each object contains a response-time description. Screenshot, generated document, fraudulent PDF, fraudulent image, and data inconsistency details also contain reason objects with stable name identifiers and response-time descriptions. For example, "fraudulent pdf" in types maps to details.fraudulent_pdf, and "suspicious content" maps to details.suspicious_content.
meta.warningsWarnings are calculations that failed eg. line items do not add up to the subtotal value. There could be a good reason for it so treat it as a warning only. This is an optional value add. See Appendix - List of Possible Warnings.

Determining whether to initiate an investigation or human review can be as straightforward as implementing the following pseudocode for every processed JSON:

if meta.fraud.color != green and len(meta.fraud.attribution) > 0 then
route to human user for review
display meta.fraud.attribution (friendly human readable text)
for each fraud_type in meta.fraud.types:
detail_key = lowercase(fraud_type).replace(" ", "_")
display meta.fraud.details[detail_key].description (if present)
display each reason in meta.fraud.details[detail_key].reasons (if present)
endif