AP Three-Way Match Automation Design: Exceptions Handling & KPIs
Sherlock's Analysis: Elementary, my dear client. The three-way match (Invoice vs. PO vs. GRN) is the cornerstone of fraud-proof AP, yet manual processes breed errors, delays, and exceptions. We'll automate it with AI-driven matching, robust exception routing, and trackable KPIs. This design assumes integration with ERP (e.g., SAP, Oracle) via APIs, OCR for invoices, and a low-code platform like UiPath or custom Python/ML stack.
1. System Overview
Inputs:
Purchase Order (PO) data from ERP.
Goods Receipt Note (GRN)/Receiving Report.
Supplier Invoice (PDF/EDI via OCR/extraction tools like Abbyy or Google Vision).
Automation Engine: Rule-based + ML matching (e.g., 95%+ accuracy via fuzzy logic for variances).
Outputs: Auto-approve for payment, flag exceptions, or auto-resolve minor issues.
Workflow: Real-time or batch (daily/hourly) processing.
High-Level Flow:
code
Invoice Received → Extract Data → Match PO/GRN → Tolerance Check → Approve/Pay OR Exception → Resolution → Audit Log
2. Core Matching Logic
Match Criteria (Configurable Tolerances):
Field
Exact Match
Tolerance Threshold
Auto-Resolve Action
PO Number
Yes
N/A
Reject if mismatch
Supplier
Yes
90% fuzzy
Suggest correction
Item/Description
Fuzzy
85% similarity
ML suggest match
Quantity
±5%
±10%
Adjust & notify
Unit Price
±2%
±5%
Flag for review
Total Amount
±3%
±7%
Prorate if partial
Date (Receipt/Invoice)
±30 days
±60 days
Escalate if older
Tax/Line Items
Line-level
±2% per line
Aggregate check
Tech Stack:
Data Extraction: OCR + NLP (spaCy/BERT for entities).
Matching: Pandas for rules + scikit-learn for ML.
Orchestration: Apache Airflow or Camunda BPM.
3. Exceptions Handling
Exceptions occur in ~20-30% of invoices pre-automation. Categorize, auto-handle 70%+, escalate rest.