UBL / XRechnung / Peppol invoice to PDF API - printable A4 PDF with totals and arithmetic checks
ubl_invoice_to_pdfTurn 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. 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/ubl-invoice-to-pdf.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xml | No | The e-invoice as XML text (required unless fileContent is provided) | |
| lang | No | Language of the PDF labels; auto = from the seller's country (DE/AT/CH -> de, FR -> fr, NL/BE -> nl, else en) | auto |
| fileName | No | Optional file name, e.g. R-2026-1187.xml | |
| fileContent | No | Or the .xml / ZUGFeRD .pdf base64-encoded (max 10 MB) |