Swiss QR-bill payment reconciliation

Banking Switzerland

Checks each invoice’s QR reference and QR-IBAN against SIX’s rules, matches the bank’s credits to the invoices by QR reference, and gives each invoice a status: paid, part-paid or unpaid.

From SIX: Swiss Implementation Guidelines for the QR-bill, version 2.4

Swiss QR-bill payment reconciliation
Checks, invoices and payments test files, and a pipeline snapshot. Zip, 44 KB.
Download the template

See it in Quantemplate

The pipeline

The Swiss QR-bill pipeline in Quantemplate: stages 1 to 12 of 19 listed, from Prepare invoices to Payments per entry reference, and the test run’s validations. The payment and invoice checks flag rows, and both Date Cleanse steps pass.

The flow

The pipeline’s Flow tab: the QR-bill Invoices dataset feeds into the Swiss QR-bill Payment Reconciliation pipeline.

The checked output

The QR-bill invoice status output of the test run, 24 rows, scrolled to its last columns: each invoice’s booking date, paid, allocated and outstanding amounts, and its status. Most are PAID, one is PART-PAID with 837.48 outstanding, and two were paid more than their amount.

What it checks

14 rules 10 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 work out each QR reference’s check digit and each account’s QR-IID and IBAN check digits
  2. Stages 2–3 Payments Tidy each bank file and stack them
  3. Stage 4 Reconcile A Join with Reconciliation on: each reference’s payments allocated to its invoice, with any surplus recorded
  4. Stages 5–6 Statement date The latest booking date, added to every invoice
  5. Stages 7–10 Totals Invoices per reference, per reference and currency, and per reference and account
  6. Stage 11 Invoice status What’s outstanding, each invoice’s status and the 10 invoice checks
  7. Stages 12–17 Check payments Bring the counts onto each payment and run the 4 payment checks
  8. Stages 18–19 Outputs QR-bill invoice status, and QR-bill payment checks

What’s in the download

SIX’s guidelines aren’t included. Download the current version from SIX’s QR-bill page.

Build it

  1. Install the Quantemplate skills, version 1.0.0 or later, if you haven’t already. Then unzip the download.
  2. With Claude in Chrome signed in to Quantemplate, ask Claude Code:
    Build the Swiss QR-bill pipeline from the swiss-qr-bill folder.
  3. Claude creates the datasets and stages, runs the test data and checks every rule’s result. This takes around 3 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 tells you what went wrong. Review what the agent builds before you rely on it.

Using real invoices and payments

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

Limits