Home › APIs › Tax, invoices & payments
Swiss QR-Bill API
Makes the Swiss QR-bill (QR-Rechnung) as a PDF: the payment part with the QR code that Swiss banking apps scan. IBAN, reference and addresses are checked first. Do it free in your browser →
Try it here
- 1Fill in
- 2Press the button
- 3Read the answer
- PDF = A document file that looks the same on every computer and phone.
- QR code = A square code you scan with your phone camera to open a link, join Wi-Fi or pay.
- scan = A picture of a paper document made with a scanner or phone camera.
- IBAN = the international bank account number, e.g. DE89 3704 0044 0532 0130 00.
Which way is for you?
What is an API, and do I need one?
An API lets your software get an answer by itself, for example a shop checking every new customer's VAT number. Not a programmer? Use the free tool in your browser instead.
Without a key: 3 test calls/day. With a free key: 100 calls/month, usage dashboard & Excel/Sheets · Have a key? Open my key · Lost it? Get it by e-mail
For programmers: details, example request and inputs
Make a Swiss QR-bill (QR-Rechnung, SIX Swiss Payment Code SPC 0200, structured addresses as required since November 2025) as a print-ready PDF: receipt and payment part with the 46 mm Swiss QR code and Swiss cross, on A4 or as the 210 x 105 mm part alone, in German, French, Italian or English. Checked before the bill is drawn: CH / LI IBAN (mod-97), QR-IBAN with its 27-digit QR reference (mod-10 recursive), RF creditor reference (ISO 11649) with a normal IBAN, CHF or EUR, amount, address lengths, country code and character set. Returns the PDF (base64) and the validated payload line by line. Deterministic, 0 AI, nothing stored.
Example request
curl -X POST https://radarbg.com/v1/swiss-qr-bill \
-H "X-API-Key: YOUR_KEY" -H "Content-Type: application/json" \
-d '{"iban": "CH4431999123000889012", "creditorName": "Robert Schneider AG", "creditorStreet": "Rue du Lac", "creditorHouseNo": "1268", "creditorPostalCode": "2501", "creditorCity": "Biel", "creditorCountry": "CH", "amount": 1949.75, "currency": "CHF", "reference": "210000000003139471430009017", "message": "Invoice 2026-001", "debtorName": "Pia-Maria Rutschmann-Schnyder", "debtorStreet": "Grosse Marktgasse", "debtorHouseNo": "28", "debtorPostalCode": "9400", "debtorCity": "Rorschach", "debtorCountry": "CH", "language": "en"}'
Answer: {"ok": true, "count": N, "items": [...], "usage": {...}}. Failed calls are not counted.
Inputs
| Field | Type | Description |
|---|---|---|
iban | string | IBAN or QR-IBAN of the creditor (CH or LI, 21 characters); spaces are fine |
creditorName | string | Creditor: name of the account holder, up to 70 characters |
creditorStreet | string | Creditor: street, up to 70 characters; a house number at the end is split off when creditorHouseNo is empty |
creditorHouseNo | string | Creditor: building number, up to 16 characters (optional) |
creditorPostalCode | string | Creditor: postal code, up to 16 characters |
creditorCity | string | Creditor: town, up to 35 characters |
creditorCountry | string | Creditor: 2-letter country code; default is the country of the IBAN |
amount | number | Amount, 0.01 to 999999999.99. Leave it out for a bill where the payer writes the amount |
currency | string | Currency of the bill |
reference | string | QR reference (27 digits, needed with a QR-IBAN) or RF creditor reference (ISO 11649, only with a normal IBAN). Leave it out for a bill without a reference |
message | string | Additional information for the payer, up to 140 characters (for example the invoice number) |
debtorName | string | Debtor (optional, leave all debtor fields out for an empty box): name, up to 70 characters |
debtorStreet | string | Debtor: street, up to 70 characters |
debtorHouseNo | string | Debtor: building number, up to 16 characters |
Price
Included in every plan: 100 calls a month free, then from €15 a month for 5,000 calls across all APIs. Pro, €49 for 25,000 calls, is the one we recommend.
Questions
What does the Swiss QR-Bill API do?
Makes the Swiss QR-bill (QR-Rechnung) as a PDF: the payment part with the QR code that Swiss banking apps scan. IBAN, reference and addresses are checked first.
Where does the data come from?
Make a Swiss QR-bill (QR-Rechnung, SIX Swiss Payment Code SPC 0200, structured addresses as required since November 2025) as a print-ready PDF: receipt and payment part with the 46 mm Swiss QR code and Swiss cross, on A4 or as the 210 x 105 mm part alone, in German, French, Italian or English. Checked before the bill is drawn: CH / LI IBAN (mod-97), QR-IBAN with its 27-digit QR reference (mod-10 r
How much does it cost?
100 calls a month are free with no card. Paid plans start at EUR 15 a month for 5,000 calls and include every API on Radar. Failed calls are not counted.
What is an API? Do I need to be a programmer?
An API lets a program get answers from another program automatically. You only need it if your own website or software should do this by itself. Without programming, use the free browser tool, the Excel upload where offered, or let us do the job for you.