PO Lens

B2B Purchase Order & Invoice Guard

One-click demo scenarios

Fictional U.S. B2B orders. No upload or API key needed. Results recalculate instantly.

Sample files: CSV · XLSX

Documents · Hold for Review demo loaded

Upload your own PO and vendor invoice to replace either side. CSV/XLSX stay in your browser.

Test the real upload path

Files behind the Hold for Review demo (Apex Industrial Supply Co.). Download, edit if you like, then drop them into the slots below. Parsed entirely in your browser.

Sample_PO_2026.csv
Internal ERP export · PO slot

Line_No · Item_SKU · Product_Description · Order_Qty · Unit_Cost · Line_Total

Sample_Vendor_Invoice.xlsx
Vendor packing slip, letterhead rows, header on row 5 · Invoice slot

Amount · Qty_Shipped · Item_Name · Part_Code · Price_Each

Notice how the Sample PO (.csv) and Sample Invoice (.xlsx) use different column orders, column names and file formats, and the invoice opens with letterhead rows. PO Lens automatically normalizes both.

Step 1

Purchase Order (PO)

PO-2026-1147
Apex Industrial Supply Co.
Lines
5
Fees
0
Total
$4,166.11
Demo scenario
Step 2

Vendor Invoice

APX-INV-30418
Apex Industrial Supply Co.
Lines
5
Fees
1
Total
$4,313.95
Demo scenario
Reconciliation Status
Hold for review

3 lines differ from the PO. Exact match required

Net Amount Variance
+$147.84

Invoice $4,313.95 − PO $4,166.11

Audit Breakdown
3 Flagged·4 Matched

7 lines incl. fees and sales tax

Line-Item Comparison

PO vs. invoice, paired by SKU + description similarity

Findings
Line-item comparison between purchase order and invoice
#SKUDescriptionPO QtyInv QtyQty DiffPO PriceInv PricePrice DiffPO AmtInv AmtAmt DiffStatus
1APX-WP-100BK
Pro Widget - Black
50
50
0
$12.40
$12.40
$0.00
$620.00
$620.00
$0.00
Matched
2DRV-IMP20V
PO DRV-IMP-20V
20V Impact Driver Kit (Cordless)
10
10
0
$189.00
$191.00
+$2.00
$1,890.00
$1,910.00
+$20.00
Flagged
3GLV-NIT-L
Nitrile Gloves - Lg (100 ct)
40
44
+4
$18.75
$18.75
$0.00
$750.00
$825.00
+$75.00
Flagged
4SAF-GLS-CLR
Anti-Fog Safety Glasses - Clr
60
60
0
$6.25
$6.25
$0.00
$375.00
$375.00
$0.00
Matched
5TAPE-DUCT-2
Duct Tape 2" x 60 yd Slvr
24
24
0
$8.90
$8.90
$0.00
$213.60
$213.60
$0.00
Matched
6FUEL-FREIGHT-SURCHARGE
Fuel & Freight Surcharge
Not on PO
—
—
—
—
—
—
—
$45.00
+$45.00
Flagged
7—
Sales tax
—
—
—
—
—
—
$317.51
$325.35
+$7.84
Follows lines
Totals · supported by PO + receiving $4,166.11$4,166.11$4,313.95+$147.84

Vendor Dispute Email

Auto-drafted from every flagged finding

Vendor dispute email draft

Subject: Invoice APX-INV-30418 — Discrepancies vs. PO PO-2026-1147 ($147.84 disputed)
Hello Apex Industrial Supply Co. Accounts Receivable team,

Thank you for invoice APX-INV-30418 dated 2026-11-14. During our standard three-way match against purchase order PO-2026-1147 (issued 2026-11-02), we found the following discrepancies:

  1. DRV-IMP20V — 20V Impact Driver Kit (Cordless)
     Price variance: Unit price $191.00 vs PO $189.00 (+$2.00 × 10). Difference: $20.00
  2. GLV-NIT-L — Nitrile Gloves - Lg (100 ct)
     Qty over-billed: Billed 44, ordered 40: 4 units over. Difference: $75.00
  3. Fuel & Freight Surcharge
     Unordered fee: Fuel & Freight Surcharge was not approved on the PO. Difference: $45.00
  4. Sales tax on the items above at 8.25%. Difference: $7.84

Total disputed: $147.84
Invoice total as billed: $4,313.95
Undisputed balance: $4,166.11

Could you please review these items and send a corrected invoice or a credit memo for the difference? If any of these charges were authorized separately (for example, a change order or an approved surcharge), please share that documentation and we'll update our records.

The undisputed portion of the invoice is being processed under our normal payment terms; the disputed amount is on hold pending your response.

Thank you for your help,

[Your Name]
Accounts Payable
[Company Name] | [Phone] | [Email]

Accounting Export

For ERP import, AP batch review or a variance log

Accounting export

Invoice as billed
$4,313.95
Supported by PO
$4,166.11
Overbilling exposure
$140.00
Net variance (Inv − PO)
+$147.84

One row per line with PO vs. invoice qty, price, amount, variance, discrepancy codes and a summary block. TSV pastes straight into Excel or Google Sheets.

How PO Lens scales from an interactive reconciliation sandbox into a zero-touch AP/Purchasing workflow:

  1. 1. Automated Document Ingestion (Email / SFTP / EDI)

    Inbound vendor invoices arriving at ap@company.com or through vendor portals are captured automatically by email webhooks (Power Automate, Make, or serverless webhook triggers), SFTP drops or EDI feeds. No one downloads or re-uploads a file.
  2. 2. Live ERP Sync & Schema Normalization

    The matching purchase order and receiving log are fetched in real time through ERP REST APIs (NetSuite, SAP, QuickBooks, Dynamics). Unstructured PDFs are read by structured AI extraction, and every source is normalized into one unified schema.
  3. 3. Deterministic Rule Engine & Exception Routing

    • Clean matches AUTO-APPROVED: invoices that match PO quantities, unit prices and totals are posted to the ERP payment queue with zero human touch.
    • Discrepancies HOLD FOR REVIEW: flagged variances (QTY, PRICE, AMT, UNORDERED) place an automatic payment hold, alert the buyer or accountant in Slack or Microsoft Teams, and stage a pre-filled vendor dispute email.
  4. 4. Human-in-the-Loop Governance & Audit Trail

    Finance and operations staff review only the flagged exceptions, keeping full financial control, audit-ready logs and oversight of every vendor communication.

This live web app demonstrates Step 3 & Step 4 locally in your browser with sample or uploaded files—requiring zero ERP credentials or API keys to test.

A hybrid architecture: AI for reading messy documents, deterministic code for every dollar. That keeps approvals auditable and repeatable.

PDF / XLSX / CSV → Gemini JSON Schema | browser parser → normalize → match → rules engine (¢) → exact match → approve / hold → human review
  1. 1. Ingest: AI reads, it doesn't calculate

    CSV and Excel files are parsed entirely in your browser (PapaParse, SheetJS). PDFs and plain text go to a server route that calls Gemini 2.5 Flash with a strict JSON Schema (Structured Outputs). The model only transcribes SKUs, descriptions, quantities, unit prices, fees and tax as printed.

  2. 2. Normalize & match

    Column names like “Item #”, “Price Each” or “Ext. Amount” are mapped to one schema. Freight, fuel surcharges and tax rows are separated from merchandise. Invoice lines are paired to PO lines using normalized SKUs (DRV-IMP-20V ≈ DRV-IMP20V) blended with description token similarity, assigned one-to-one from most to least confident.

  3. 3. Deterministic rules in integer cents

    A pure TypeScript engine (unit-tested) computes every total and variance. It never uses LLM math. It flags PRICE_VARIANCE (unit price above PO), QTY_OVERBILLED (billed above ordered or received: the 3-way match), UNORDERED_FEE (ghost lines, unapproved freight or surcharges) and TAX_MISMATCH (tax that doesn’t match the PO rate).

  4. 4. Strict decision

    Matching is exact. Any difference in quantity, unit price or line amount (to the cent), any charge not on the PO and any PO line missing from the invoice flags that line and sets the invoice to HOLD FOR REVIEW. Only an invoice with zero discrepancies is AUTO-APPROVED for payment.

  5. 5. Human-in-the-loop outputs

    PO Lens drafts the vendor dispute email and an ERP-ready export, but a person always releases payment. Parsing notes (for example, a printed line total that doesn’t equal qty × price) are shown on each document for review.

  6. Data handling

    Spreadsheets never leave the browser. PDFs are sent to the Gemini API only for extraction and are not stored by PO Lens. The API route has an origin allowlist, size limits and per-IP rate limits. All demo scenarios run fully client-side with no API key.

Last updated December 3, 2026

  1. 1. Portfolio Demonstration Only

    PO Lens is an independent portfolio project built by Gunu Kim (gunukim.com) to showcase operational workflow and software design. It is non-commercial, is not offered as a product or service, and is not a substitute for certified accounting, ERP, accounts-payable or audit systems. All demo companies, documents and amounts are fictional.

  2. 2. Acceptable Use

    You may use PO Lens to evaluate the demo, preferably with the built-in scenarios and sample files. Do not upload documents you are not authorized to share, attempt to overload, probe or bypass the service's rate limits and access controls, or use it for automated extraction, resale or any unlawful purpose.

  3. 3. Data Processing & Privacy

    No financial files are stored on any server, and none are used to train AI models. CSV and Excel files are processed 100% client-side in your browser: they never leave your device, are never sent to any external AI service, and are never used for model training. PDF and text extraction is optional: the file passes through the PO Lens server only to be sent to Google's Gemini API, which this deployment uses under a paid-tier configuration where Google does not use prompts or documents to train its models, and it is discarded once the response returns (not saved or logged). If no Gemini API key is configured on the deployment, PDF extraction is disabled and nothing is sent anywhere. Your IP address is held briefly in memory for rate limiting. The site uses Vercel Web Analytics for anonymous, cookie-free page-view counts. Reconciliation results live only in your browser tab and disappear when you close or reload it.

  4. 4. Third-Party Processing by Google

    PDF and text uploads are processed by Google under the Gemini API Additional Terms of Service, which govern how Google handles that content (under paid-tier terms, Google does not use it to improve its products). Use the built-in sample files or CSV/Excel uploads if you prefer not to send documents to a third party.

  5. 5. No Warranty & Limitation of Liability

    PO Lens and every reconciliation result, variance, status, export and dispute-email draft it produces are provided “AS IS” and “AS AVAILABLE”, without warranties of any kind, express or implied, including accuracy, completeness, merchantability or fitness for a particular purpose. Nothing here is accounting, tax, audit or legal advice. To the fullest extent permitted by law, Gunu Kim assumes no responsibility or liability for payment decisions, approvals or holds, financial losses, errors or omissions, or any direct, indirect, incidental or consequential damages arising from use of this tool. A qualified professional must review every result before any payment is released or withheld.

  6. 6. Intellectual Property

    © 2026 Gunu Kim. All rights reserved. The PO Lens name, interface design, reconciliation workflow, matching and rules logic, and source code are protected by copyright. Unauthorized reproduction, scraping, commercial redistribution or cloning of the interface or workflow is prohibited.

© 2026 Gunu Kim (gunukim.com). All rights reserved.