Skip to content
Automation projects

n8n · Documents & approvals

Supplier Invoice Review and Approval

Checks invoice amounts and identifies repeat invoices using both the supplier and invoice number. It selects operations or finance review based on the amount and checks the supplied reviewer role before recording an approval decision. This creates a clear review path for each invoice.

Tools & integrations

  • n8n
  • OpenAI
  • Google Sheets

Problem

Two suppliers can use the same invoice number, so checking the number alone can mistake a valid invoice for a duplicate. The team also needs to check the amount and make sure the right reviewer handles larger invoices.

Solution

The sample-data simulation checks the supplier and invoice number together, validates the amount, and chooses operations or finance review based on the invoice value. It records a simulated approval only when the supplied reviewer role matches the requirement for that invoice. The screenshots show the original n8n template; reading invoice files, verifying real reviewer identities, and making payments are outside these tests.

Complete workflow overview

Original template screenshots. Select an image to enlarge it.

Simulation implementation

  • Scoped duplicates to supplier plus invoice number and validated positive integer amounts.
  • Added separate operations/finance review thresholds and invoice-bound simulated reviewer decisions.

How the tested simulation works

  1. Validate extracted invoice fields
  2. Apply duplicate and approval policy
  3. Record simulated reviewer decision

Test evidence

Recorded 2026-10-02 · Simulation scenario results

  • Standard invoice awaits operations review — passed
  • High-value invoice requires finance — passed
  • Same supplier and invoice is duplicate — passed
  • Same number from another supplier is distinct — passed
  • Unauthorized reviewer cannot approve — passed
  • Matching finance reviewer approves in simulation — passed
  • Unsupported currency requires review — passed
  • Zero amount requires review — passed

Sample output

{
  "status": "awaiting-approval",
  "reason": "review-required",
  "requiredRole": "operations",
  "paymentInitiated": false
}