Blank invoice papers and a bank statement on an accounting desk, entirely AI-generated and marked with the EU label
All solutions36 / Accounts & incoming payments

Accounts & incoming payments

Match incoming payments to outstanding invoices

Incoming payments are compared with outstanding invoices using reference, amount, currency and customer context. Clear matches are allocated in the ERP; partial payments, combined remittances and uncertain details reach accounts as review cases without silently writing off differences.

Process architecture

From a bank statement to a traceable payment allocation.

A completed bank-statement file is split into incoming transactions and compared with current outstanding invoices. Only unambiguous matches or explicitly reviewed exceptions are allocated through the ERP interface. This workflow initiates no payments and does not mark unresolved differences as paid.

Process diagram

  • 10Nodes
  • 12Connections
  • 03Phases
Environment

01Input

Statement & open items

An approved file export supplies bank transactions; the ERP supplies current outstanding invoices and customer mappings.

2 Steps

02Process

Reference checks & review

Transactions are matched against agreed rules. Ambiguous candidates and differences reach accounts before allocation.

4 Steps

03Output

Allocation & evidence

Confirmed allocations are in the ERP; review cases, residual balances and decisions stay separately traceable.

4 Steps

Source01

Capture the statement

SFTP delivers a structured statement with an agreed completion signal. n8n takes only the complete file and uses account, statement identifier and transaction reference to build the processing key.Details

Process node 01Source

Capture the statement

SFTP delivers a structured statement with an agreed completion signal. n8n takes only the complete file and uses account, statement identifier and transaction reference to build the processing key.

Interfaces
  • Microsoft Graph API
  • SharePoint API
Next steps
Data02

Load open invoices

REST API reads current outstanding invoices and existing allocations from the ERP. PostgreSQL adds customer references through an approved read-only view without writing to another system's schema.Details

Process node 02Data

Load open invoices

REST API reads current outstanding invoices and existing allocations from the ERP. PostgreSQL adds customer references through an approved read-only view without writing to another system's schema.

Interfaces
  • Azure AI Document Intelligence
  • Mistral OCR
  • Dataverse API
Next steps
Action03

Prepare transaction fields

n8n reads reference, amount, currency, booking date and payer context from the agreed format. Missing or conflicting data is flagged rather than replaced with similar invoice numbers.Details

Process node 03Action

Prepare transaction fields

n8n reads reference, amount, currency, booking date and payer context from the agreed format. Missing or conflicting data is flagged rather than replaced with similar invoice numbers.

Interfaces
  • Power Automate
  • Azure Functions
  • Microsoft Graph API
Next steps
Decision04

Check match certainty

Reference, currency, outstanding amount and customer context must uniquely agree under approved rules. Partial payments, multiple candidates and differing amounts require a business review.Details

Process node 04Decision

Check match certainty

Reference, currency, outstanding amount and customer context must uniquely agree under approved rules. Partial payments, multiple candidates and differing amounts require a business review.

Interfaces
  • Azure OpenAI GPT
  • Anthropic Claude
  • AI Builder
Next steps
Approval05

Resolve the difference

Accounts sees the original transaction, candidate invoices and residual balances in a review interface. A responsible person approves the allocation or keeps it open; a suggestion is not approval.Details

Process node 05Approval

Resolve the difference

Accounts sees the original transaction, candidate invoices and residual balances in a review interface. A responsible person approves the allocation or keeps it open; a suggestion is not approval.

Interfaces
  • Teams Adaptive Cards
  • Power Apps
Next steps
System06

Save the allocation

REST API checks the current balance again and records the approved allocation in the ERP. The transaction reference prevents duplicate processing; remaining differences are not written off without review.Details

Process node 06System

Save the allocation

REST API checks the current balance again and records the approved allocation in the ERP. The transaction reference prevents duplicate processing; remaining differences are not written off without review.

Interfaces
  • Dynamics 365 API
  • Azure Service Bus
Next steps
Result07

Update the open item

The ERP shows the confirmed allocation and remaining balance. An approved partial payment reduces only the allocated portion; this process does not initiate a bank transfer.Details

Process node 07Result

Update the open item

The ERP shows the confirmed allocation and remaining balance. An approved partial payment reduces only the allocated portion; this process does not initiate a bank transfer.

Interfaces
  • Power BI API
  • Teams Webhook
Next steps
Result08

Inform accounts

Accounts sees allocated transactions and unresolved differences in the case overview. A receipt is reported as successfully allocated only after the ERP has confirmed processing.Details

Process node 08Result

Inform accounts

Accounts sees allocated transactions and unresolved differences in the case overview. A receipt is reported as successfully allocated only after the ERP has confirmed processing.

Interfaces
  • Power BI API
  • Teams Webhook
Result09

File reconciliation evidence

Nextcloud WebDAV files statement reference, comparison state and decision in restricted accounts storage. Review cases retain their source link without appearing as completed allocations.Details

Process node 09Result

File reconciliation evidence

Nextcloud WebDAV files statement reference, comparison state and decision in restricted accounts storage. Review cases retain their source link without appearing as completed allocations.

Interfaces
  • Power BI API
  • Teams Webhook
Result10

Keep receipts unresolved

A payment without a unique match remains in the review queue with an owner and open question. The invoice balance is unchanged and the original receipt is not hidden as completed.Details

Process node 10Result

Keep receipts unresolved

A payment without a unique match remains in the review queue with an owner and open question. The invoice balance is unchanged and the original receipt is not hidden as completed.

Interfaces
  • Power BI API
  • Teams Webhook
Next steps
  • Standard path
  • Direct path
  • Review required
  • Exception
  • Return

Steps in execution order

System landscape

Connect statement files to the existing ERP.

  • Microsoft

    Microsoft Graph API

    Möglicher Baustein für die Microsoft-Systemvariante.

  • Microsoft

    SharePoint API

    Möglicher Baustein für die Microsoft-Systemvariante.

  • Microsoft

    Azure AI Document Intelligence

    Möglicher Baustein für die Microsoft-Systemvariante.

  • Microsoft

    Mistral OCR

    Möglicher Baustein für die Microsoft-Systemvariante.

  • Microsoft

    Dataverse API

    Möglicher Baustein für die Microsoft-Systemvariante.

  • Microsoft

    Power Automate

    Möglicher Baustein für die Microsoft-Systemvariante.

  • Microsoft

    Azure Functions

    Möglicher Baustein für die Microsoft-Systemvariante.

  • Microsoft

    Azure OpenAI GPT

    Möglicher Baustein für die Microsoft-Systemvariante.

  • Microsoft

    Anthropic Claude

    Möglicher Baustein für die Microsoft-Systemvariante.

  • Microsoft

    AI Builder

    Möglicher Baustein für die Microsoft-Systemvariante.

  • Microsoft

    Teams Adaptive Cards

    Möglicher Baustein für die Microsoft-Systemvariante.

  • Microsoft

    Power Apps

    Möglicher Baustein für die Microsoft-Systemvariante.

  • Microsoft

    Dynamics 365 API

    Möglicher Baustein für die Microsoft-Systemvariante.

  • Microsoft

    Azure Service Bus

    Möglicher Baustein für die Microsoft-Systemvariante.

  • Microsoft

    Power BI API

    Möglicher Baustein für die Microsoft-Systemvariante.

  • Microsoft

    Teams Webhook

    Möglicher Baustein für die Microsoft-Systemvariante.

  • Interfaces in use

    SFTP

    Takes the structured statement supplied by the business only after its agreed completion signal.

  • Interfaces in use

    REST API

    Reads current open invoices and writes approved allocations through the designated ERP interface.

  • Interfaces in use

    PostgreSQL

    Adds customer references through a read-only view limited to necessary fields.

  • Interfaces in use

    n8n

    Orchestrates file intake, preparation, rule checks and controlled retries of failed steps.

  • Interfaces in use

    Nextcloud WebDAV

    Files comparison state and decision evidence with restricted access and a reference to the original receipt.

  • Possible apps & platforms

    ERP-Buchhaltung

    Outstanding invoices and confirmed payment allocations remain the authoritative business records.

  • Possible apps & platforms

    Klärfall-Oberfläche

    Accounts reviews ambiguous receipts, partial amounts and unresolved questions.

  • Possible apps & platforms

    Nextcloud

    Authorized accounts staff retrieve reconciliation and decision evidence for each receipt.

Implementation in context

Give each receipt a resolved invoice link.

The trigger is a provided bank statement, not an overdue invoice or an authorization to make an outgoing payment. The workflow connects existing records but replaces neither bank access nor ERP accounting. Structured inputs and fixed rules determine the match; a language model must not invent amounts, transaction references or booking decisions.

Direct allocation requires a unique link between a transaction and an outstanding item. Matching amounts alone are insufficient; currency, reference, customer context and current balance are also checked. Combined remittances, partial amounts, fees, discounts and unexpected payers require review rather than a blanket waiver of residual balances.

Transactions and customer references are sensitive business records and may include personal information. The example operates on agreed systems controlled by the business; technical permissions cover intake, read-only master data and necessary ERP allocation only. Evidence and review screens have role-based access and agreed retention rules.

Account, statement identifier and transaction reference identify a previously processed receipt. The invoice balance is read again before writing, and any changed state requires another check. ERP maintenance leaves the case in a retry queue, while a file without a completion signal never starts booking processing.

Starting point

Incoming payments are on the bank statement, outstanding invoices are in the ERP and combined-remittance explanations may be in separate messages. Accounts compares references and amounts and enters allocations individually. A missing invoice number or partial amount interrupts processing while clear matches wait in the same list. Without a unique processing state, an imported statement can produce duplicate suggestions or misleading completed statuses.

Target picture

Every in-scope receipt has a documented comparison with current outstanding invoices. Unique matches are allocated, exceptions remain visible with an owner and differences require an explicit business decision.

Expected benefits

  • Unambiguous receipts gain a traceable link to their corresponding invoice.
  • Accounts handles partial payments and uncertain references as targeted review cases.
  • Residual balances remain visible instead of disappearing behind a blanket completed status.
  • Repeated file imports do not silently create a second allocation for the same bank transaction.
  • Each exception can be traced to the original receipt and the invoice balance that was checked.

Prerequisites to start

  • 01A documented structured statement format has stable references and a complete-file handover signal.
  • 02The ERP has test access and an approved interface for outstanding items and payment allocations.
  • 03Customer references can be added unambiguously through an authorized read-only PostgreSQL view.
  • 04Accounts defines matching rules, owners and how to handle partial payments and differences.
  • 05Connectivity, access control, reconciliation logs and role-based retention are agreed with the business.
  • 06Test cases cover duplicate statements, missing references, multiple candidates and changed invoice balances.

Your next step

Which process costs your team unnecessary time every day?

Give us a short outline. We will tell you honestly where automation is useful—and where it is not.

DiscoverBack to top