Payment references by country

Finance and banking All territories

Checks payments before they’re sent: that each account and payment reference is well formed and has the right check digits by its country’s rule, from IBANs to Mexico’s CLABE and Norway’s KID, and that euro payments to an IBAN fit a SEPA credit transfer.

From Swift’s IBAN Registry, ISO 13616 and ISO 11649, the EPC’s SEPA credit transfer rulebook and QR code guidelines, and each national scheme’s rules

Payment references by country
Checks, the Payment Schemes table, test payment files and a pipeline snapshot. Zip, 71 KB.
Download the template

See it in Quantemplate

The pipeline

The payment references pipeline in Quantemplate: all 14 stages listed, from Prepare payments to Payments by scheme, with the test payment file uploaded to stage 1.

The test run’s checks

The validation report for the test file: the 11 account checks, from the account type to the BIC, each flagging 1 row. The check that the BIC’s country is the account’s country is a warning.

The checked output

The Payments by scheme output from the clean run, the first 11 of 23 rows: the number and total amount of payments for each account type, reference type and currency, such as IBANs with RF references in euros, Norwegian accounts with KIDs in kroner, and Bankgiro and Plusgiro numbers with OCR references in Swedish kronor.

What it checks

30 rules 28 Fail 2 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. Stages 1–2 Prepare Clean each payment file, take the spaces and punctuation out of accounts and references, work out every check digit, and stack the files
  2. Stages 3–4 Schemes The Payment Schemes table, once for account types and once for reference types
  3. Stages 5–6 Counts The payments with each payment ID, and with each account and reference
  4. Stages 7–10 Joins Bring each payment’s account type, reference type and both counts onto its row
  5. Stage 11 Check payments Run the 11 account checks and the 19 reference and payment checks
  6. Stages 12–14 Outputs Every payment with the columns its checks use, and the number and total of payments by account type, reference type and currency

What’s in the download

Swift’s IBAN Registry and the national schemes’ rules aren’t included. The IBAN Registry is on Swift’s IBAN 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 payment references pipeline from the payment-references folder. Test it with the test file and the good file and compare the results with the expected ones.
  3. Claude creates the Payment Schemes dataset, uploads the test file, builds the 14 stages and checks both test files. 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 your own payments

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

Limits