Payment and invoice reconciliation

All territories

Matches payments to invoices on the invoice reference, gives each invoice a status (paid, part-paid, overpaid or unpaid), and checks both for problems.

Works for any business that invoices customers and receives payments, insurance or not.

Payment and invoice reconciliation
Checks, test data, a build skill and build scripts. Zip, 40 KB.
Download the template

See it in Quantemplate

The pipeline

The payment reconciliation pipeline in Quantemplate: 12 stages listed from Prepare invoices to Check payments, with the test payments file uploaded to stage 2.

The flow

The pipeline’s Flow tab: the invoices dataset feeds into the payment reconciliation pipeline.

The checked output

The Invoice status stage’s output: test invoices with their amount, sum paid, payments received and an Invoice Status of paid, overpaid or part-paid.

What it checks

7 rules 3 Fail 4 Warning

A rule set to Fail marks its rows as failed, and any failure blocks Auto Export if you set it up. Warnings are only reported. Validation never removes a row. Every rule and its formula is listed in VALIDATIONS.md in the download.

How the pipeline works

  1. Stage 1 Invoices Tidy the invoices and turn their dates into numbers
  2. Stages 2–3 Payments Tidy each payments file and stack them
  3. Stages 4–6 Totals Payments by invoice, the statement date, and payments per duplicate key
  4. Stages 7–9 Invoice status Bring payments onto each invoice, work out its status and check it
  5. Stages 10–12 Check payments Match each payment to its invoice and run the payment checks

What’s in the download

Build it

  1. Unzip the download and copy the folder in skills into ~/.claude/skills/.
  2. With Claude in Chrome signed in to Quantemplate, ask Claude Code:
    Build the payment reconciliation pipeline from the payment-reconciliation folder.
  3. Claude creates the datasets and stages, runs the test data and checks every rule’s result. This takes around 2 minutes.

The agent builds through the Quantemplate app’s own API in your browser. That API isn’t published, so if a release changes it, the build stops and the agent offers to click through the screens instead, which takes much longer. Review what the agent builds before you rely on it.

Using real data

Contact the Quantemplate support team, or use your AI agent, to build custom logic for your use case.

Limits