Three-way Matching Agent

Reads every incoming invoice, EHF, email, EDI, extracts PO references and line items no matter how they're written, matches quantities against the PO and goods receipt, codes to the correct GL account, and records everything correctly in the ERP.

Ingests supplier invoices from EHF, email inbox, EDI, or portal, extracts PO numbers and line items regardless of how the supplier has written or structured them, matches quantities against the purchase order and goods receipt, even when the supplier has split or joined lines differently, codes to the correct GL account, and records the matched invoice with the correct data in the ERP.

+ Details- Close

The Three-way Matching Agent handles the end-to-end flow from invoice arrival to correctly recorded ERP posting. It receives invoices via EHF (electronic invoicing), the AP email inbox, EDI 810, XML, PDF, or scanned images. It extracts PO numbers and item references no matter how the supplier has written them, embedded in free-text fields, truncated, hyphenated, split across lines, or referenced by description rather than number. The agent then matches each invoice line against the corresponding PO and goods receipt, checking that the total quantities add up even when the supplier has split one PO line across multiple invoice lines or consolidated several PO lines into one. Where lines don't align cleanly, partial receipts, quantity mismatches, price drift, the agent diagnoses the specific cause. It then codes each line to the correct GL account and cost center based on accounting rules, PO categorization, and historical coding patterns. The end result is a correctly matched and coded invoice recorded in the ERP with the right data, GL account, cost center, quantities, payment terms, ready for the next payment run.

  • +60–80 pts

    Invoice touchless rate

    Most PO-backed invoices get extracted, matched, coded, and queued for payment without anyone touching them.

  • Captures PO references and line items from any invoice format

    Reads invoices arriving via EHF, email inbox, EDI, or portal and extracts PO numbers and item references regardless of how the supplier has written them, embedded in free text, truncated, hyphenated, split across fields, or referenced by description only. Handles non-standard supplier layouts where PO data isn't in a predictable location.

  • Matches quantities against PO and goods receipt, even when lines are split or joined

    Checks that invoiced quantities match what was ordered and received, even when the supplier has structured the invoice differently from the PO, splitting one PO line across multiple invoice lines, or consolidating several PO lines into one. Verifies that the total quantities add up against the PO and goods receipt regardless of how lines are grouped.

  • Codes invoices to the correct GL account

    Applies the organization's accounting rules to assign each invoice line to the correct GL account and cost center. Uses PO categorization, commodity codes, and historical coding patterns to determine the right account, flagging lines where the coding is ambiguous for review.

  • Records the matched invoice correctly in the ERP

    Posts the matched and coded invoice to the ERP with the correct GL account, cost center, quantities, prices, and payment terms. The ERP record is the end product, every field is written correctly so the invoice enters the next payment run with no manual corrections needed.

  1. Trigger

    Supplier invoice arrives

    A new invoice arrives via EHF, the AP email inbox, EDI feed, or supplier portal, in EHF/XML, PDF, EDI 810, or scanned image format.

  2. Step 1

    Extract PO references and line items from the invoice

    Reads the invoice and extracts PO numbers, item references, quantities, prices, and units of measure. Handles PO numbers written in any format, truncated, hyphenated, split across fields, embedded in descriptions, and maps each invoice line to the referenced PO lines even when the structure doesn't match one-to-one.

  3. Step 2

    Match quantities against PO and goods receipt

    Checks that invoiced quantities match what was ordered on the PO and what was received on the goods receipt. Resolves cases where the supplier has split or joined lines differently, the total quantities must add up against the PO regardless of line structure. Diagnoses mismatches with the specific cause and financial delta.

  4. Step 3

    Code to GL account and cost center

    Applies accounting rules to assign each invoice line to the correct GL account and cost center based on PO categorization, commodity codes, and historical patterns. Flags ambiguous codings for review.

  5. Step 4

    Record the invoice correctly in the ERP

    Posts the matched and coded invoice to the ERP with the correct GL account, cost center, quantities, prices, and payment terms, ready for the next payment run. Exceptions are routed to the responsible owner with the specific mismatch cause.

  6. Resolution

    Invoice correctly recorded in the ERP or exception routed

    Matched invoices are recorded in the ERP with the correct data across all fields and enter the next payment run. Exceptions are routed to the responsible owner with the specific mismatch cause and financial impact.

  • Invoices matched even when PO references are messy or non-standard

    so that invoices aren't rejected or parked just because the supplier wrote the PO number differently or used a non-standard layout.

  • Split and joined lines don't create false exceptions

    so that an invoice where the supplier grouped or divided lines differently from the PO still matches, because the quantities are checked against the PO, not the line structure.

  • Correct GL coding and ERP data on the first pass

    so that invoices post to the right accounts with the right data and month-end close isn't held up by miscoded or incorrectly recorded payables.

Read/write access to the ERP
Connects to the ERP (e.g. SAP S/4HANA, Microsoft Dynamics 365, IFS Cloud, Infor LN/M3) to read purchase orders, goods receipts, and GL account structures, and to record matched invoices with correct coding, quantities, and payment terms.
Inbound invoice feed
Receives supplier invoices via EHF (electronic invoicing), the AP email inbox, EDI gateway, or supplier portal. Supports EHF/XML, PDF, EDI 810, and scanned image formats.
Three-way Matching Agent — Riff