Validation Engine — Mathematical Checks on Extracted Data
ParseFlow AI's validation engine runs mathematical checks on every extraction before presenting results for review. For invoices: line items are summed and compared to the subtotal, subtotal plus tax is compared to total. For bank statements: opening balance plus transactions is compared to closing balance.
Validation catches OCR errors, AI extraction mistakes, and genuine document inconsistencies — so you can review them before they become accounting errors.
Invoice validation rules
ParseFlow AI runs three validation checks on invoices. Check 1: if line items are present, their amounts are summed and compared to the stated subtotal. Check 2: if subtotal and tax amount are present, subtotal + tax is compared to total. Check 3: if there's no subtotal, line item sum is compared directly to total.
A tolerance of max(0.02, 0.1% of amount) is applied to account for rounding differences between line item and total calculations.
Bank statement balance validation
For bank statements, the validation engine sums all extracted transaction amounts (with sign) and adds the opening balance. The result should equal the closing balance within a small tolerance. If it doesn't, the discrepancy amount is shown alongside a list of potential causes: missing page, OCR error on a large transaction, or a genuine statement error.
