How It Works Automation Blog Contact
EN FR DE

Render CII Invoice as PDF using REST-API

Upload a UN/CEFACT Cross Industry Invoice (CII) XML file and receive a clean, professionally formatted PDF preview. The API parses the deeply nested CII structure, maps every EN 16931 Business Term to a readable layout, and returns a downloadable PDF. Supports all CII profiles from MINIMUM through EXTENDED.

Try it out online — no coding required

Upload an XML file and get a readable PDF preview instantly, right in your browser.

Try It Online
POST https://api.invoicexml.com/v1/render/cii/to/pdf

Request

Parameter Type Description
file * binary The XML invoice file to render as PDF.

Content-Type: multipart/form-data

Headers

Header Value
Authorization * Bearer YOUR_API_KEY
Content-Type multipart/form-data

Response

200 Returns the rendered PDF as a binary file.
Content-Type: application/pdf

Code Example

curl -X POST https://api.invoicexml.com/v1/render/cii/to/pdf \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -F "[email protected]"

Frequently Asked Questions

Which CII profiles are supported?

All EN 16931 CII profiles: MINIMUM, BASIC WL, BASIC, EN 16931, and EXTENDED. The profile is auto-detected from the GuidelineSpecifiedDocumentContextParameter.

Can I render CII XML extracted from a ZUGFeRD or Factur-X PDF?

Yes. The embedded CII XML from a ZUGFeRD or Factur-X file uses the same schema. Extract it first with /v1/extract/xml, then pass it to this endpoint — or upload the standalone CII XML directly.

Is the rendered PDF the same as the visual layer of a ZUGFeRD PDF?

No. The rendered PDF is generated fresh from the structured CII data, not extracted from any existing PDF layer. This lets you verify the XML content independently.

Is the invoice data stored?

No. Files are processed entirely in memory and deleted immediately after the PDF is returned. No invoice data is written to disk or retained.

What is the maximum file size?

20 MB. CII XML files are typically a few kilobytes, so this limit is rarely a constraint.