
Demo project built with synthetic sample invoices. Not client work.
The problem. Accounts and purchasing teams re-key supplier invoices by hand, and duplicates or arithmetic errors get paid.
What it does
Reads supplier invoice PDFs, each supplier with a different layout and labels
Extracts supplier, invoice number, date, PO, currency, totals and line items into a strict JSON schema using the Claude API with structured outputs (an offline rule-based mode runs the demo with no API key)
Validates every invoice against the vendor master, PO presence, line maths, subtotal plus tax, date range and duplicate invoice numbers
Auto-approves clean invoices and sends the rest to a human review queue with the reason
Writes CSV files and an Excel invoice register
Demo result. 6 invoices processed, 3 auto-approved, 3 sent to review (missing PO, duplicate, total mismatch).
Quality. 11 automated tests covering extraction, every validation rule, outputs, and the Claude request and refusal handling.
Stack. Python, Anthropic Claude API (official SDK), PyMuPDF, pandas, openpyxl.
0 likes · 0 views · Nov 18, 2026
Demo (sample data): Python + Claude API tool that extracts supplier invoice PDFs into structured data, validates them and routes exceptions to a review queue.