Swiss QR-Bill API - QR-Rechnung PDF with IBAN, QR reference and address checks
swiss_qr_billMake 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. Free: 5 calls/day per IP. Paid: Radar API key (from €15/mo at https://radarbg.com/pricing#starter via X-API-Key) or $0.005/call via x402 at https://radarbg.com/x402/swiss-qr-bill.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"iban": "CH4431999123000889012",
"amount": 1949.75,
"message": "Invoice 2026-001",
"currency": "CHF",
"language": "en",
"reference": "210000000003139471430009017",
"debtorCity": "Rorschach",
"debtorName": "Pia-Maria Rutschmann-Schnyder",
"creditorCity": "Biel",
"creditorName": "Robert Schneider AG",
"debtorStreet": "Grosse Marktgasse",
"debtorCountry": "CH",
"debtorHouseNo": "28",
"creditorStreet": "Rue du Lac",
"creditorCountry": "CH",
"creditorHouseNo": "1268",
"debtorPostalCode": "9400",
"creditorPostalCode": "2501"
},
"name": "swiss_qr_bill"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| iban | Yes | IBAN or QR-IBAN of the creditor (CH or LI, 21 characters); spaces are fine | |
| qrPng | No | Also return the Swiss QR code alone as PNG (base64) for your own invoice layout | |
| amount | No | Amount, 0.01 to 999999999.99. Leave it out for a bill where the payer writes the amount | |
| layout | No | a4 = A4 page with the payment part at the bottom, slip = the 210 x 105 mm payment part with receipt alone | a4 |
| message | No | Additional information for the payer, up to 140 characters (for example the invoice number) | |
| currency | No | Currency of the bill | CHF |
| language | No | Language of the headings on the bill | en |
| reference | No | 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 | |
| debtorCity | No | Debtor: town, up to 35 characters | |
| debtorName | No | Debtor (optional, leave all debtor fields out for an empty box): name, up to 70 characters | |
| creditorCity | Yes | Creditor: town, up to 35 characters | |
| creditorName | Yes | Creditor: name of the account holder, up to 70 characters | |
| debtorStreet | No | Debtor: street, up to 70 characters | |
| debtorCountry | No | Debtor: 2-letter country code; default is the creditor's country | |
| debtorHouseNo | No | Debtor: building number, up to 16 characters | |
| creditorStreet | No | Creditor: street, up to 70 characters; a house number at the end is split off when creditorHouseNo is empty | |
| creditorCountry | No | Creditor: 2-letter country code; default is the country of the IBAN | |
| creditorHouseNo | No | Creditor: building number, up to 16 characters (optional) | |
| debtorPostalCode | No | Debtor: postal code, up to 16 characters | |
| creditorPostalCode | Yes | Creditor: postal code, up to 16 characters |