FROM SCANNED INVOICES TO CRYPTOGRAPHIC PROOF.
PayTrace reconciles the unstructured reality of business records — parsing PDF invoices, bank switch narratives, dispute emails, and procurement contracts into an immutable, court-ready evidence multi-graph.
The 5 Disparate Silos of Financial Evidence
Every payment dispute involves five isolated sources of truth that disagree on formats, timestamps, and entity names.
Switch Logs
Binary & ISO 8583 packets with raw RRNs and clearing codes.
Gateway JSONs
Webhook callbacks, capture auth tokens, and fee spread breakdowns.
PDF Invoices & POs
Scanned supplier bills, GST details, tax deductions, and payment terms.
Dispute Emails
Customer payment confirmations, attached wire slips, and claim narratives.
Bank Statements
MT940 / CAMT.053 / CSV statements with truncated remitter lines.
Layout-Aware Vision-Language OCR Pipeline
Traditional OCR outputs a jumble of disconnected text tokens. PayTrace uses a specialized Vision-Language Transformer trained on millions of corporate invoices, POs, and bank vouchers.
Preserves spatial relationships between header fields, multi-line item grids, and footer totals.
Automatically verifies: (Qty × Rate) - Discount + CGST + SGST == Total. Flags manual arithmetic tampering immediately.
# Multi-Modal Vision Extraction Pipeline
extractor = DocumentIntelligencePipeline(
ocr_engine="VisionTransformer-FinV4",
detect_tables=True,
verify_math=True,
extract_signatures=True
)
doc_mesh = extractor.process(
file_uri="s3://paytrace-vault/PT-92881/INV-8821.pdf",
expected_entity="ABC Industries"
)
# Output includes normalized JSON + bounding box geometry
print(f"Extracted: {doc_mesh.invoice_number}")
print(f"Total: {doc_mesh.currency} {doc_mesh.total_amount}")
print(f"Math Validation: {doc_mesh.arithmetic_valid}")
# True — 0 discrepancies detected
Line-Item Table Extraction & Tax Breakdown
PayTrace extracts complex tabular matrices from multi-page documents, matching item descriptions, HSN codes, and quantities against purchase orders.
HSN & SAC Code Validation
Cross-references GST tax slabs (5%, 12%, 18%, 28%) with official tax authorities to detect rate mismatches or classification fraud.
PO vs Invoice 3-Way Match
Compares line-by-line quantities received on Goods Receipt Notes (GRN) with invoiced quantities to stop over-billing.
Multi-Currency Arbitrage Audit
Evaluates conversion spot rates (USD/INR, EUR/INR) on invoice date vs transaction date to explain FX settlement variances.
Binding Document Text to Payment Switch Records
How PayTrace binds extracted document strings (e.g., PO #4091, Invoice #8821) with binary switch logs and gateway authorization events.
OCR Identifiers
Extracts INV-8821, PO-4091, and beneficiary IFSC HDFC0000021 from PDF.
Gateway Auth Token
Matches customer checkout metadata with Gateway auth token AUTH_88921 and amount ₹8,42,000.
Bank Switch RRN
Pins RRN 881902849102 to the invoice node, establishing verifiable end-to-end provenance.
The Evidence Multi-Graph Architecture
Every piece of evidence is represented as a vertex with directional corroboration edges pointing to the central incident hypothesis.
Hypothesis #1 Corroboration Score: 96.8%
Hypothesis: "Webhook dropped post-capture + funds held in Gateway Settlement Batch SB-9018."
SHA-256 Hashes & Immutable WORM Logging
Every extracted document, raw payload, and agent reasoning step is hashed using SHA-256 and anchored in Write-Once-Read-Many (WORM) storage with RFC 3161 compliant timestamps.
INV-8821.pdf original upload checksum verified against tampering.
HDFC Core Switch debit confirmation packet timestamped 2026-09-24 14:12:08 IST.
Signed reasoning transcript ready for forensic auditor review.
Supporting vs Contradictory Evidence Matrix (Case #PT-92881)
PayTrace doesn't just collect evidence supporting a theory — our Adversarial Verification Agent actively tries to falsify findings.
Interactive Document Extraction & Bounding Box Viewer
Click on any highlighted OCR bounding box on the invoice to inspect the structured extraction schema and linked payment switch records in real-time.
APEX COMPONENTS PVT LTD
Plot 42, Okhla Industrial Area, Phase-III, New Delhi
GSTIN: 07AAACA9999F1Z2
Date: Sep 20, 2026
Greater Kailash-I, New Delhi
GSTIN: 07AAACA1234F1Z5
Payment Terms: Net 5 Days
| Item Description | HSN | Qty | Rate | Amount |
|---|---|---|---|---|
| Industrial Micro-Controllers (MC-90) | 8542 | 500 | ₹1,427.12 | ₹7,13,560.00 |
SELECTED FIELD: invoice_meta
• Confidence: 99.8%
• Geometry: [x: 480, y: 32, w: 220, h: 48]
• Cross-Link: SAP ERP Invoice Record #INV-8821
Matched Gateway Auth: AUTH_88921 (₹8,42,000)
Core Switch Debit: RRN 881902849102
Court-Ready Forensic Evidence & Regulatory Readiness
PayTrace produces tamper-evident audit dossiers adhering to global and Indian financial standards.
SOX 404 Ready
Complete internal control tracking for revenue recognition and disbursements.
SOC 2 Type II
Enterprise security, encrypted vault storage, and RBAC access governance.
RBI Master Directions
Compliant with digital payment dispute logging & nodal settlement timelines.
1-Click Legal PDF Export
Generate cryptographically signed dispute dossiers for banks and courts.
The 5-Stage Evidence Processing Lifecycle
From ingestion to immutable vault archival.
Ingestion
PDFs, MT940, API streams & emails ingested into WORM buffer.
Vision OCR
Layout parsing, table reconstruction, and arithmetic validation.
Graph Linker
Entity resolution and binding to switch RRNs and gateway auth tokens.
Adversarial Check
Hunts for contradicting events and disproves alternative hypotheses.
Vault Seal
SHA-256 fingerprint generated and pinned in audit trail ledger.
Never Lose a Payment Dispute to Missing Records Again.
Reconcile complex documents, payment switches, and disputed transactions with PayTrace Evidence Intelligence.