Skip to content
E-invoicing · In-house development

Integrating e-invoicing into existing software

If your client portal, your app or your own software creates invoices, gotakt develops the output as XRechnung or ZUGFeRD (the German e-invoice formats: a pure XML file, or a PDF with the data embedded). Your software stays; it gets an additional output and automatic validation with the KoSIT validator. The analysis costs €290 net, an integration starts at €3,400 net.

Written by Marwan Saleh (Development). Status: 21 November 2026. Commands and results run by us. Technical explanation, not tax advice.

The path from your data to the e-invoice

  1. 1Find the data: where do invoice number, lines, tax rates, customer and payment method live today? Usually in the database the PDF is already created from.
  2. 2Map the fields: each item gets its field in the EN 16931 standard, for example the customer number as the buyer reference (BT-10).
  3. 3Generate the file: with a library or directly as XML. We generated our sample invoice with around 150 lines of Python without additional packages.
  4. 4Validate: every file automatically with the KoSIT validator before it reaches the customer.
  5. 5Deliver: by email, as a download in the portal or via the channel your customer specifies.

What the result looks like is shown in our validation evidence with an accepted and a rejected sample invoice. Which item belongs in which field is explained in the guide XRechnung fields.

Libraries by programming language

Free libraries, according to their own pages. We have not tested them individually.

Free libraries for XRechnung and ZUGFeRD, as of 21 Nov 2026
LanguageLibraryAccording to its own description
Java, .NETMustangZUGFeRD 2, Factur-X and XRechnung; also as a command line tool and REST server
PHPhorstoeko/zugferdZUGFeRD, XRechnung, Factur-X; the author names horstoeko/invoicesuite (from PHP 8.2) as the successor
PythondrafthorseLow-level ZUGFeRD XML
Pythonfactur-xFactur-X and ZUGFeRD, listed by the ZUGFeRD community

For Node.js, our research found no library of similar reach. There, an XML generator plus validator is a workable route, as with our sample invoice.

Running the validator yourself

The KoSIT validator is freely available and runs on Java. This is how we ran it on 21 Nov 2026:

# Validate a single file, report as HTML
java -jar validator-1.6.3-standalone.jar \
  -s conf/scenarios.xml -r conf -h rechnung.xml

# As a web server in your own network
java -jar validator-1.6.3-standalone.jar \
  -s conf/scenarios.xml -r conf -D -H 127.0.0.1 -P 8099

curl -X POST -H "Content-Type: application/xml" \
  --data-binary @rechnung.xml http://127.0.0.1:8099/

Result of our run

Correct sample invoice: HTTP 200 with report “accept”. Altered file: HTTP 406 with report “reject”. The server status is available at /server/health.

This way every generated invoice can be validated before sending, without handing data to a third-party service. More in the guide Checking and validating XRechnung.

What gotakt takes on

  • Analysis of your invoice data and invoice types
  • Field mapping to EN 16931 and XRechnung, tax requirements from your tax adviser
  • Generation as XRechnung, ZUGFeRD or both
  • Automatic validation with the KoSIT validator, test files and validation reports
  • Handover with documentation, on request support for new versions of the rules

What it costs

Analysis €290 net, credited if you place the order. Integration from €3,400 net, fixed price after the analysis. Discuss an integration

Frequently asked questions

Do we have to replace our software to issue e-invoices?

No. As a rule, invoice creation stays as it is and gets an additional output as XRechnung or ZUGFeRD. The data is usually already there; it has to be mapped to the right fields.

XRechnung or ZUGFeRD: what should our software generate?

For business customers, ZUGFeRD in the EN 16931 profile is common, because people read the PDF and programs read the data. XRechnung is a pure data file and usual with public authorities. Many systems offer both.

Are there ready-made libraries?

Yes, for several languages, for example Mustang for Java and .NET, horstoeko for PHP and drafthorse or factur-x for Python. They take a lot of work off your hands, but do not replace mapping your data and validation.

How do we check automatically whether every invoice is valid?

With the KoSIT validator. It runs as a command line tool or as a small web server in your own network. We have run both: the correct file gets HTTP 200, a faulty one HTTP 406.

Is there an API for creating or validating e-invoices?

There are online services to which you send invoice data and get a finished file back. That is quick to integrate, but sends customer data outside. The validator, by contrast, can be run yourself without a third-party service.

How long does an integration take?

That depends on how clean the invoice data is today and how many invoice types there are. After the feasibility check you receive the effort, a fixed price and a schedule.

Who is responsible for the tax details?

You or your tax adviser. We implement tax rates, categories and exemption reasons technically, exactly as they are given to us in writing.