Create a free API key · Open the API reference
Why an e-invoicing API?
Across Europe, structured e-invoices based on the standard EN 16931 are replacing PDF invoices – for public procurement today and increasingly for business-to-business invoicing. Software that issues, receives or forwards invoices needs to check and produce these files automatically. The INVOX e-invoicing API covers the three tasks that appear in almost every invoice workflow: validate an invoice, generate an e-invoice from structured data and convert between formats. Every call is a plain HTTPS request with a JSON response – no library to install and no Java runtime to operate.
The API is built for developers of accounting, ERP, document-management and shop software as well as for companies automating their own outgoing invoices. Hosting is in the EU (Frankfurt); invoice contents are processed only for the duration of the request.
Formats
The API validates the XML data of XRechnung (UBL and CII syntax), ZUGFeRD and Factur-X against EN 16931 and, for XRechnung, against the additional German rules using the official KoSIT validator. Which formats and obligations apply in each member state is listed in the EU-27 overview.
Endpoints at a glance
| Endpoint | Task | Result |
|---|---|---|
/v1/validate | validate one invoice | verdict, messages with rule ID and explanation |
/v1/validate/batch | validate several invoices in one call | one result per file |
/v1/generate | generate an e-invoice from structured data | XML file in the chosen format |
/v1/convert | convert an invoice to another format | converted file |
Every request and response field is documented in the API reference, which is generated from the same interface description the API runs on.
Set-up in four steps
- Step 1: Create an account via registration. A sandbox key is enough for first tests.
- Step 2: Store the key in the environment variable
INVOX_API_KEY– never in source code or a repository. - Step 3: Send a first request to
/v1/validate(example below) and inspect the response. - Step 4: Place the check where it matters: before sending outgoing invoices, when accepting incoming invoices, or when importing into your archive.
Example: validate an XRechnung
Send the XML file as form field file; the key goes into the X-API-Key header. The parameter profile_hint is optional.
curl -X POST "https://invoxapi.de/v1/validate?profile_hint=xrechnung" \
-H "X-API-Key: $INVOX_API_KEY" \
-F "file=@rechnung.xml"
The response contains the overall verdict, the detected format, the validator version used and, for every message, the rule ID (for example BR-DE-15), its location and a plain-language explanation.
AI tools via MCP
Besides the REST API, INVOX runs an MCP server so that AI assistants such as Claude Code, Cursor or VS Code can validate invoices through INVOX. Set-up is described on the MCP server page (German).
Software vendors and white label
Software vendors who want to offer INVOX under their own name will find the terms in the partner program.
What the API does not do
The API checks whether a file complies with the technical rules. It is not tax advice: no validator can know whether a VAT rate is correct for the underlying supply. Missing mandatory values are reported as missing, never invented. Plans and prices are published only on the pricing page (German).