Generate spec-compliant Swiss QR bills with one API call
POST a JSON payload, get back a print-ready QR invoice — PDF, SVG or PNG — in milliseconds. The data model and validation come straight from the open-source swissqrbill npm package.
POST /api/qr-bill?format=pdf
Content-Type: application/json
{
"creditor": { "account": "CH44 3199 9123 0008 8901 2", … },
"amount": 1219.55,
"currency": "CHF"
}
One endpoint. Three formats.
The response is the raw file (application/pdf, image/svg+xml or image/png). Invalid data returns 400 with { "error": "..." }.
POST /api/qr-bill?format=pdf|svg|png
Content-Type: application/json
loading…
Swap format=pdf for svg or png — the full request body and matching examples for every format are in the reference below.
Rate limit: 100 requests per day per IP on /api/qr-bill. Exceeding it returns 429.
Live demo
Edit any field (prefilled with example data) and generate a live QR bill.
Your generated QR bill will appear here.
Request body & examples
Every field's shape, validation rule and default mirrors the underlying swissqrbill package 1:1 — its README is the full field-by-field reference.
Full request body
loading example…
Show curl examples for all formats
loading…
loading…
loading…
Ready to bill in Swiss QR format?
No signup, no API key — just POST your data and get a bill back.
Try it live