Three-way match: invoice, purchase order and delivery note
Cross-check amounts, PO numbers, tax IDs and dates between documents, and see every mismatch on the page it comes from.
Parse each document
Every file gets its own job_id; the invoice is the main document, the others are related.
Verify against the related jobs
Totals are recomputed, stamps and signatures are located, and identifiers are compared across all three.
Result
status "passed" or "flagged" with discrepancies: { check, severity, message, job_id, page, bbox, expected, found }.