Finance & Ops · n8n

Automate Three-Way Matching of Supplier Invoices

Stop paying wrong invoices — automatically match each supplier invoice against its purchase order and goods receipt, flagging any discrepancy.

difficulty Advancedsetup 45 minresult Only invoices that match the PO and receipt are approved automatically; mismatches are caught before payment.
  1. 1

    Receive the Invoice

    Add a Gmail Trigger node on an invoices label and extract the amount, PO number and line items.

  2. 2

    Look Up PO and Receipt

    Add Google Sheets nodes fetching the matching purchase order and goods receipt by PO number.

  3. 3

    Compare the Three

    Add a Code node checking quantities and amounts across invoice, PO and receipt within tolerance.

  4. 4

    Approve or Flag

    Add an IF node auto-approving matches for payment and posting mismatches to Slack for review.

  5. 5

    Activate and Test

    Activate the workflow and send a matching and a mismatched invoice. Confirm each is handled correctly.

Frequently asked questions

What tolerance should I allow?

A small percentage tolerance handles rounding and minor freight differences without flagging every invoice.

Can it handle partial deliveries?

Track received quantities cumulatively so invoices for partial shipments still match correctly.

About this recipe. Recipes on FlowRecipesHub are written for business owners, not developers, and are tested before publishing — how recipes get made. Some ingredient links are affiliate links that cost you nothing — full disclosure.