Automation Blog Pricing Contact

Convert PDF to Factur-X using REST-API

Convert a PDF invoice into a Factur-X compliant PDF with embedded XML. The API extracts invoice data, maps it to the EN 16931 semantic model, and returns a PDF/A-3 with the structured factur-x.xml attachment.

POST /v1/convert/facturx

Request

Parameter Type Description
file * binary The PDF invoice file to convert.

Content-Type: multipart/form-data

Headers

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

Response

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

Code Example

curl -X POST https://api.invoicexml.com/v1/convert/facturx \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -F "[email protected]"

Frequently Asked Questions

What is a Factur-X invoice?

Factur-X is a Franco-German e-invoicing standard (also known as ZUGFeRD 2.x in Germany). It embeds a structured XML file inside a PDF/A-3, making the invoice both human-readable and machine-processable.

What PDF formats are accepted?

The API accepts any standard PDF invoice. The conversion engine extracts invoice data using AI and maps it to the EN 16931 semantic model before generating the compliant Factur-X output.

Which Factur-X profile is generated?

By default the API generates a Factur-X EN 16931 (Comfort) profile, which covers the vast majority of B2B invoicing requirements in the EU.

How large can the PDF file be?

The API supports PDF files up to 20 MB. For larger batches, consider using the asynchronous conversion endpoint or splitting multi-page documents.

Is the output PDF/A-3 compliant?

Yes. The returned PDF conforms to PDF/A-3b and contains the embedded factur-x.xml attachment, fully meeting Factur-X specification requirements.