Home › APIs › Tax, invoices & payments
UBL Invoice to PDF API
Turns an e-invoice XML (XRechnung, Peppol UBL or ZUGFeRD) into a normal PDF invoice you can print, archive or forward, and checks that its sums add up. 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.
- e-invoice = An invoice sent as a data file (not a picture or normal PDF), required more and more in the EU.
- XML = A data file used by banks and programs. Not meant to be read by people; our tools read it for you.
- XRechnung = the German e-invoice format, required by public offices.
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
Turn one e-invoice (UBL 2.1 Invoice or CreditNote, Peppol BIS Billing 3.0, XRechnung UBL or CII, or a ZUGFeRD / Factur-X PDF with the XML inside) into a clean A4 PDF: seller and buyer with VAT ID and e-invoice address, every line, VAT breakdown, totals, IBAN and payment terms. Labels in English, German, French or Dutch (auto = seller's country). Returns the PDF as base64 plus the parsed header, totals and arithmetic checks. DOCTYPE / ENTITY refused. Deterministic, 0 AI, nothing stored.
Example request
curl -X POST https://radarbg.com/v1/ubl-invoice-to-pdf \
-H "X-API-Key: YOUR_KEY" -H "Content-Type: application/json" \
-d '{"lang": "auto"}'
Answer: {"ok": true, "count": N, "items": [...], "usage": {...}}. Failed calls are not counted.
Inputs
| Field | Type | Description |
|---|---|---|
xml | string | The e-invoice as XML text (empty = built-in XRechnung UBL sample with 2 VAT rates) |
fileContent | string | Or the .xml / ZUGFeRD .pdf base64-encoded (max 10 MB) |
fileName | string | Optional file name, e.g. R-2026-1187.xml |
lang | string | Language of the PDF labels; auto = from the seller's country (DE/AT/CH -> de, FR -> fr, NL/BE -> nl, else en) |
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 UBL Invoice to PDF API do?
Turns an e-invoice XML (XRechnung, Peppol UBL or ZUGFeRD) into a normal PDF invoice you can print, archive or forward, and checks that its sums add up.
Where does the data come from?
Turn one e-invoice (UBL 2.1 Invoice or CreditNote, Peppol BIS Billing 3.0, XRechnung UBL or CII, or a ZUGFeRD / Factur-X PDF with the XML inside) into a clean A4 PDF: seller and buyer with VAT ID and e-invoice address, every line, VAT breakdown, totals, IBAN and payment terms. Labels in English, German, French or Dutch (auto = seller's country). Returns the PDF as base64 plus the parsed header, to
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.