Formancy Report for the Swiss QR-bill
Swiss QR-bills from your own data, checked against SIX's rules
Formancy Report renders your invoices as PDFs, with the receipt and the payment part, often called the QR payment slip, at the foot of the last page, as SIX lays them out. Your application hands over the data; before the PDF is made, the account, the reference and every text are checked against SIX's rules, and the amount is computed exactly from the invoice's values, in the samples its total.
The QR-bill can be tried online in the Studio, and is in the newest release.
What it does
SIX's rules, in one place
The account, the reference and every text are checked against SIX's Swiss Implementation Guidelines for the QR-bill, versions 2.3 and 2.4: an IBAN or QR-IBAN of Switzerland or Liechtenstein, a QR reference or a creditor reference, each with its check digits, the characters and lengths each field allows, and which account goes with which reference and currency. The same checks hold what the report says and what the data brings.
A typo caught before the PDF
A mistyped IBAN is refused when the report is validated, before anything renders, naming the field and the rule it breaks. A text that comes from the data is checked by the runtime under the same rules before the PDF is made. No message quotes the value itself: never a name, an address or an account.
The amount, exact to the centime
The bill's amount is an expression over the report's values; in the sample invoice, its total: computed exactly, rounded once to the centime, and never passed through a JavaScript number. An amount that is not exact to the centime is refused, not rounded. A bill without an amount prints the blank field the payer fills in.
SIX's layout, at the foot of the last page
The receipt and the payment part stand at the size and place SIX prescribes, across the foot of the last A4 page, or on a page of their own when the last one has no room left. The Swiss QR Code carries the Swiss cross, and the lines to cut along carry the scissors or the instruction to separate before paying in. The slip is set in Liberation Sans, one of the fonts SIX allows, which the renderer ships.
Proved on the PDF it produced
The tests read the code back from the pixels of the page PDF.js draws from the PDF produced, and decode it with ZXing: SIX's own examples byte for byte, and the sample invoices down to the amount they print. Every heading and value of the slip is read back where SIX puts it.
In the bill's language
The slip's headings are SIX's own words, in German, French, Italian, Romansh or English, and the slip may be in a different language from the invoice.
Samples: one invoice in German, French, Italian and English
Each sample bills the same work in its own language's words, with its amounts and dates as the runtime formats them for its locale, de-CH, fr-CH, it-CH or en-CH, and its payment part in its language. A script drew each picture from the PDF the renderer produced. The firms and their customers are invented, and the account is SIX's example QR-IBAN, which no bank holds.




Try it
In the Studio, the German sample is the Invoice starter: choose it under Starter, and the preview shows the PDF with its payment part as the renderer produced it. The getting-started guide installs 0.3.0, the newest release, which prints a report with a payment part. The documentation on GitHub says how a report carries its QR-bill, and why the slip is printed as it is.
What it does not do
- It makes the bill, and nothing more: Formancy Report is neither e-banking nor accounting software, sends no invoices and matches no incoming payments.
- Under SIX's guidelines, a bill as a PDF is for paying by e-banking or mobile banking, which is why its lines carry the scissors and the instruction to separate. A QR-bill sent on paper must be printed on white, perforated paper, which Formancy Report cannot check.
- One QR-bill per report, at the foot of its last page, on A4 in portrait. A report that prints several invoices cannot give each one a slip of its own.
- Both builders edit the QR-bill field by field. A bill added in either starts from SIX's example values, which are warned of until they are replaced, and nothing asks before the account changes: an IBAN with wrong check digits is refused on its field, and the valid IBAN of another account is printed as typed.
- Not every one of SIX's rules is checked: whether a country code is one that exists, what follows the “//” in the billing information, a postal code written with its country's prefix, which SIX forbids, and whether the account is the creditor's.
- No alternative procedures, and no bill marked “DO NOT USE FOR PAYMENT”. A bill in euros to a QR-IBAN with a QR reference is refused, as version 2.4 requires.
- Text is never shrunk to fit: information taller than its section is refused.
- No banking app has scanned these bills yet: the tests read the code with ZXing from PDF.js's drawing, and no slip has been printed on paper.
Status
In 0.3.0, the newest release, in the source on GitHub and online in the Studio (as of 22 November 2026).
Formancy Report is source-available: the source is public, and running it in production needs a paid licence.