Invoice XML Rendering API Reference
Upload any supported invoice XML and receive a clean, professionally formatted PDF preview. The syntax is detected from the root namespace, so UN/CEFACT CII, UBL Invoice, and UBL CreditNote documents all go to the same route, and XRechnung is covered in either of its syntax bindings. This is the endpoint to reach for when your pipeline handles more than one format: you never have to inspect the file or pick a route before calling. The rendered PDF is for human readability only, it carries no legal standing.
https://api.invoicexml.com/v1/render/xml/to/pdf
Code Example
curl -X POST https://api.invoicexml.com/v1/render/xml/to/pdf \ -H "Authorization: Bearer YOUR_API_KEY" \ -F "[email protected]" \ -F "language=en"
Request
| Parameter | Type | Description |
|---|---|---|
| file * | binary | The XML invoice file to render as PDF. |
| language | string | Language for PDF labels and date formatting. Values: en, de, fr. Defaults to en. |
| logo | binary | Your logo, printed top-left as the create endpoints print it: a PNG or JPEG file part of at most 2 MB and 4 megapixels, re-encoded before embedding. Send either this or logoUrl, not both. |
| logoUrl | string | Public URL of your logo instead of the file itself, with the same limits. The API fetches it with the same protections as the create endpoints' pdfUrl. |
| includeQrCode | boolean | Prints an EPC QR code (GiroCode) in the payment section, exactly as the create endpoints' options.includeQrCode does: a banking app turns it into a pre-filled SEPA credit transfer. Printed when the invoice is in EUR, carries a valid IBAN, is paid by credit transfer and has an amount due. Defaults to false. |
Content-Type: multipart/form-data
Accepted input
The syntax is resolved from the root element and its namespace, before any Business Term is read. Nothing needs to be declared in the request.
| Root element | Detected as | Covers |
|---|---|---|
| <CrossIndustryInvoice> | UN/CEFACT CII | All EN 16931 CII profiles from MINIMUM through EXTENDED, the XML extracted from a ZUGFeRD or Factur-X PDF, and XRechnung in CII syntax. |
| <Invoice> | UBL invoice | Peppol BIS Billing, PINT, national CIUS profiles such as NLCIUS and EHF, XRechnung in UBL syntax, and plain EN 16931 UBL. |
| <CreditNote> | UBL credit note | The same UBL profiles as above, rendered with credit note labelling. |
An XML document with any other root namespace is rejected with a 400 and errorCode 4008, and a non-XML upload with a 400 and errorCode 4004. To render the XML inside a ZUGFeRD or Factur-X PDF, pull it out first with
POST /v1/extract/xml
and post the result here.
Headers
| Header | Value |
|---|---|
| Authorization * | Bearer YOUR_API_KEY |
| Content-Type | multipart/form-data |
Response
200 Rendered PDF
Returns the rendered PDF as a binary file.