QR-bills: pair the right account with the right reference
A QR-bill does not always require a QR-IBAN. The account type depends on the reference: a QR-IBAN with a QR reference, or an ordinary IBAN with SCOR or no reference. Recognising the format, resolving the bank and checking the QR text are three separate checks.
Documentation reviewed on 5 November 2026. The examples below are fictitious contract examples, not payment instructions.
Distinguish the combinations
| Creditor account | Reference type | Combination |
|---|---|---|
| CH/LI QR-IBAN | QRR | A QR reference is required. |
| Ordinary CH/LI IBAN | SCOR | An RF creditor reference under ISO 11649. |
| Ordinary CH/LI IBAN | NON | Empty reference field; a separate unstructured message may be present. |
A QR-IBAN cannot be paired with SCOR or NON. An ordinary IBAN cannot be paired with QRR. The SIX QR-bill guidelines, § 4.3.2 and § 7.1, define these combinations.
For the version transition, SIX announces version 2.4 from 14 November 2026 and keeps version 2.3 valid until November 2027. Under version 2.4, QR-IBANs and QR references are for CHF; EUR uses an ordinary IBAN with SCOR or NON. See the SIX versions page. The checker’s transition behaviour is explained below.
1. Recognise the QR range without a bank lookup
For CH/LI, the IID occupies positions 5 to 9 of the compact IBAN. 30000–31999 is the QR range. The free formatting endpoint decomposes the number:
curl --fail-with-body -sS \
'https://api.ibanforge.com/v1/iban/format?iban=CH4431999123000889012'Excerpt from the formatting response, checked on 5 November 2026:
{
"iban": "CH4431999123000889012",
"valid": true,
"bban": {
"bank_code": "31999",
"account_number": "123000889012"
},
"upgrade_to_full_validation": "valid: true here means the IBAN is well formed (length, structure, mod-97), nothing more. POST /v1/iban/validate ($0.005, or keyless for the first 25 calls a week per source address) names the bank and its BIC with the source of that answer (where we hold bank-code data we may use), SEPA and VoP readiness, and, where it reads the national register (DE, AT, BE, SK, CZ, BG, CH, LI), whether the bank code is allocated at all. Real answers of that full validation, readable with a plain GET: https://api.ibanforge.com/v1/demo, or for one country: https://api.ibanforge.com/v1/demo/DE"
}Read bban.bank_code, here 31999. On this route, valid: true concerns the format and IBAN checksum. It does not prove allocation of the IID or existence of an account. Do not convert an ordinary IBAN into a QR-IBAN by replacing digits: obtain billing details from the creditor’s bank.
2. Resolve a QR-IID with its provenance
Set IBANFORGE_API_KEY to a reusable API key. The clearing route accepts a QR-IID directly:
curl --fail-with-body -sS https://api.ibanforge.com/v1/ch/clearing/30024 \
-H "X-API-Key: ${IBANFORGE_API_KEY}"The response can associate qr_iid with the institution’s ordinary iid. is_qr_iid: true identifies the QR row consulted. Also read qr_iid_source: register comes from register rows; headquarters denotes an inference from the head office. When multiple numbers are available, read qr_iids, not only the singular field.
valid_on dates the SIX row’s validity, not the last download. A row without an association keeps its own IID; no mapping is invented. found: false is a missing result in the served data, distinct from an HTTP error or payment rejection. The clearing contract explains fields and redirects.
This field may be empty when the row provides no date.
3. Read IBAN, reference and pairing results separately
Full validation can include a clearing block for CH/LI. Adding reference also returns reference_check:
curl --fail-with-body -sS https://api.ibanforge.com/v1/iban/validate \
-H 'Content-Type: application/json' \
-H "X-API-Key: ${IBANFORGE_API_KEY}" \
--data '{"iban":"CH4431999123000889012","reference":"210000000003139471430009017"}'This example uses a demonstration number in the QR range. An arithmetically correct reference and permitted pairing do not prove that an institution or account exists at that number.
| Result | Question answered |
|---|---|
Top-level valid | Is the IBAN syntactically valid? |
reference_check.valid | Does the reference pass its own check? |
reference_check.pairing | Is the account-type and reference-type pairing permitted by the examined rule? |
bank_code_check, bic, clearing | Which bank references were resolved, with which sources and limitations? |
pairing can be ok, qrr_requires_qr_iban, scor_forbidden_with_qr_iban or not_applicable. The last means this rule was not applied, never implicit approval. Even pairing: "ok" does not prove that the reference belongs to the expected invoice.
For a reference-only check, the free GET /v1/reference/validate service is described in the OpenAPI contract. An indeterminate or unverifiable reference stays indeterminate; do not turn valid: null into a rejection.
Check a reference on its own, without a key
GET /v1/reference/validate checks a reference without looking up an account. POST accepts the same fields in a JSON object. reference is required; reference_type selects a known scheme (rf or scor, qrr, ogm, viitenumero, kid, ocr).
curl --fail-with-body -sS --get https://api.ibanforge.com/v1/reference/validate \
--data-urlencode 'reference=RF18539007547034' \
--data-urlencode 'reference_type=rf'| Scheme | Check | Rule source |
|---|---|---|
| RF / SCOR, ISO 11649 | Modulo 97-10 | Finance Finland, October 2023; SIX QR-bill 2.4, § 2.12.2 |
| Swiss QRR | 27 digits, recursive modulo 10 | SIX QR-bill 2.4, Annex B |
| Belgian OGM/VCS | 12 digits; modulo 97 of the first ten, zero remainder written 97 | Febelfin, XML guidelines 3.3, 01.02.2019 |
| Finnish viitenumero | 4–20 digits, weights 7-3-1 from the right | Finance Finland, 01.11.2009 |
| Norwegian KID | No verdict without creditor-account configuration | Bits AS, rules dated 15.03.2018 |
| Swedish OCR | No verdict without creditor-account configuration | Bankgirot, OCR checks and document dated 01.12.2016 |
Read scheme, valid, status, check_digit_expected, source, as_of and note. valid: true confirms the arithmetic check, never the association with an invoice. KID and OCR return valid: null and status: "unverifiable_without_creditor_config"; an unrecognised string also returns valid: null, with status: "unrecognised". An unknown result is not a rejection.
Without reference_type, a twelve-digit string may fit both OGM and viitenumero. also_valid_as carries the other reading and its own boolean, which may be false despite the field name. Specify the scheme when context provides it; detection does not infer KID or OCR account configuration. The OpenAPI contract describes the response.
4. Check Swiss QR Code text for free
POST /v1/ch/qr-bill/check takes the decoded text in payload, not a photo or PDF. Preserve line breaks and empty fields: their positions are part of the format.
curl --fail-with-body -sS https://api.ibanforge.com/v1/ch/qr-bill/check \
-H 'Content-Type: application/json' \
--data-binary @- <<'JSON'
{"payload": "SPC\n0200\n1\nCH4431999123000889012\nS\nSociété Alpha\nRue Exemple\n1\n1003\nLausanne\nCH\n\n\n\n\n\n\n\n10.00\nCHF\n\n\n\n\n\n\n\nQRR\n210000000003139471430009017\nExemple fictif\nEPD"}
JSONRead the HTTP status, then valid and every findings entry. A missing or malformed request body returns 400; analysed QR text can return 200 with valid: false and detailed errors. The HTTP status alone does not validate the bill.
creditor_ibanandreferencedescribe the number and reference checks.creditorandultimate_debtordescribe addresses; aproposed_structuredsuggestion requires review before reissuing the bill.findingsincludes each finding’s code, severity and source. Warnings do not automatically makevalidfalse.ready_for_2026_11_14means the check is valid and present addresses are structured. Its historical name creates neither a universal deadline nor an acceptance guarantee.
The checker applies version 2.3 and reports version 2.4’s EUR restriction with the warning qr_iban_chf_only_ig24. An EUR case with a QR-IBAN can therefore remain valid: true while carrying this warning. Read findings and the intended version, not only the readiness boolean.
The free check does not consult the bank account or verify the printed document’s layout. Locality findings do not validate the street. The QR-bill tool uses the same check; address rules are explained separately.
A public example: the Geneva cantonal tax administration, page read on 5 November 2026, states that the QR code on its QR-bills issued before 12 March 2026 does not respect the separation of address fields, and that the data on those bills stays valid and can be entered by hand. When the text of a QR code carries a type K address, the check returns the finding and the proposed_structured block; it does not say what the bank will decide.
Combined addresses: notice shared by the checks
Address type K has not been permitted in a QR-bill since 21.11.2025 (SIX, QR-bill IG 2.3). The banks guarantee payment of such a QR-bill only until the end of September 2026 (UBS: 30.09.2026; ZKB: end of September 2026 at the latest). A type K QR-bill may therefore be refused at payment: reissue it with type S. From 14.11.2026, the Swiss Payment Standards require a structured or hybrid address in a payment order, with the town and country in their own fields. The SIC system does not validate addresses: each bank decides. Some still accept domestic Swiss payments for now; a SEPA or international payment without a town may be rejected. Also redo the standing orders and templates captured from a type K QR-bill.
For a billing integration
Keep the original text and findings, have unknown combinations or sources reviewed, and obtain correct details from the creditor. None of these results confirms the account holder, replaces a payee check or authorises a payment. A QR-IBAN is not an indicator of a virtual account; issuer classification has a separate scope.