At a glance
- Formats
- XRechnung 3.0.2 in UBL and CII, ZUGFeRD 2 / Factur-X as PDF/A-3 (XRECHNUNG profile), optionally embedded in your own PDF; for businesses, the same formats by EN 16931.
- Validation
- every invoice checked against the official KoSIT rule set (v2026-08-31) before it leaves; every rule violation explained in plain German, English or French.
- Free
- 50 generated invoices a month with no credit card, validation and parsing unlimited; then from €19 a month.
- Incoming
- received XRechnung, ZUGFeRD and Factur-X read into JSON, in the shape generation takes, with the totals as the invoice states them.
- For software vendors
- each of your customers counted separately, with a monthly ceiling and a key of its own if you want — one account, one allowance (your software’s customers).
- Data protection
- servers in Germany, no storage of invoice content, a data processing agreement for every customer.
- Integration
- REST with JSON, an OpenAPI specification, the TypeScript client
@normapi/client, an MCP server for AI agents, Idempotency-Key for safe retries.
One call
Invoice data in as JSON, a validated XRechnung out. With syntax=cii the same invoice comes back as CII, with syntax=zugferd as a ZUGFeRD PDF. The server computes the totals, in decimal arithmetic.
curl -X POST 'https://api.normapi.de/v1/invoices?syntax=ubl' \
-H "Authorization: Bearer $NORMAPI_KEY" \
-H 'Content-Type: application/json' \
-H 'Accept-Language: en' \
-o invoice.xml \
-d '{
"invoiceNumber": "RE-2026-0042",
"issueDate": "2026-10-16",
"dueDate": "2026-11-15",
"currency": "EUR",
"buyerReference": "04011000-12345-03",
"seller": {
"name": "Muster Software GmbH",
"vatId": "DE123456789",
"electronicAddress": "rechnung@muster-software.de",
"address": { "street": "Beispielstraße 12", "city": "Berlin",
"postcode": "10115", "country": "DE" },
"contact": { "name": "Maria Muster", "phone": "+49 30 1234567",
"email": "maria@muster-software.de" }
},
"buyer": {
"name": "Beispiel Handel AG",
"electronicAddress": "einkauf@beispiel-handel.de",
"address": { "street": "Handelsweg 3", "city": "Hamburg",
"postcode": "20095", "country": "DE" }
},
"payment": { "meansCode": "58", "iban": "DE02120300000000202051" },
"lines": [
{ "name": "Softwarelizenz Jahresabo", "quantity": 3, "unit": "C62",
"unitPrice": 199.00, "vatCategory": "S", "vatRate": 19 }
]
}'import json, os
import requests
# the same fields as in the curl example
with open("invoice.json", encoding="utf-8") as f:
invoice = json.load(f)
r = requests.post(
"https://api.normapi.de/v1/invoices",
params={"syntax": "ubl"},
headers={"Authorization": f"Bearer {os.environ['NORMAPI_KEY']}"},
json=invoice,
)
r.raise_for_status()
with open("invoice.xml", "wb") as f:
f.write(r.content)<?php
// the same fields as in the curl example
$invoice = file_get_contents('invoice.json');
$ch = curl_init('https://api.normapi.de/v1/invoices?syntax=ubl');
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_HTTPHEADER => [
'Authorization: Bearer ' . getenv('NORMAPI_KEY'),
'Content-Type: application/json',
],
CURLOPT_POSTFIELDS => $invoice,
CURLOPT_RETURNTRANSFER => true,
]);
$xml = curl_exec($ch);
if (curl_getinfo($ch, CURLINFO_HTTP_CODE) !== 200) {
throw new RuntimeException($xml);
}
file_put_contents('invoice.xml', $xml);Every field, error code and variant is in the API documentation; AI agents connect through the MCP server.
What the API covers
- Invoice, credit note, corrected, partial and final invoice, self-billing
- Allowances and charges on invoice and line, amounts already paid
- Credit transfer, SEPA direct debit and card payment
- Your own invoice layout: the XML embedded in your PDF, checked against PDF/A-3
- Validating incoming e-invoices and reading them into JSON, free — XRechnung, ZUGFeRD and Factur-X
- An explanation of every validation rule by its code, for messages in your own interface
Sending and archiving are not included: the finished file goes back to your system. If you already generate with horstoeko, Mustang or your own code and only need the check, see the KoSIT validator as an API. For a single invoice you received, the XRechnung viewer is enough, and for the occasional invoice of your own, create it with the form — through the same API.
Prices
| Plan | Per month | Generated invoices |
|---|---|---|
| Validator | €0 | 50 a month |
| Starter | €19 | 500 a month |
| Business | €49 | 2,500 a month |
| Scale | €149 | 10,000 a month, then €0.02 per invoice |
Validation and parsing are free on every plan. With an individual contract and SLA: €599 a month for 900,000 invoices a year. Everything else is on the pricing page.
Frequently asked questions
What is an e-invoice API?
An interface through which software has e-invoices generated, instead of building the XML format itself and keeping it current. With NormAPI your system sends the invoice data as JSON and gets back a validated XRechnung or ZUGFeRD PDF.
What does the API cost?
Validation and parsing are free and unlimited. Generation: 50 invoices a month free, then €19 a month for 500, €49 for 2,500 or €149 for 10,000. With an individual contract and SLA: €599 a month for 900,000 invoices a year. All prices net.
Can I try the API for free?
Yes: create an account, make a key, start — no credit card. 50 generated invoices a month are free, and validation and parsing never count.
Which formats does the API generate?
XRechnung 3.0.2 in UBL and CII, and ZUGFeRD 2 / Factur-X as PDF/A-3 in the XRECHNUNG profile — with our layout or embedded in your own PDF. For invoices to businesses, profile=en16931 gives the same formats by EN 16931, without Leitweg-ID, contact person and electronic addresses, as ZUGFeRD in the EN 16931 profile. Invoice, credit note, corrected, partial and final invoice.
Is every invoice validated?
Yes. Every generated invoice goes through the official KoSIT validator 1.6.3 (rule set v2026-08-31) before it leaves; a 200 means it passes. New rule sets are tracked without any change to your integration.
Where is data processed?
In Germany (Düsseldorf). Invoice content is processed but not stored; every customer gets a data processing agreement.
Can I keep my own invoice layout?
Yes. Send your PDF along and the API embeds the XML in it; the result is checked against PDF/A-3 with veraPDF before it comes back.
Are there SDKs?
A TypeScript client on npm (@normapi/client) and an OpenAPI specification to generate clients for any language. For AI agents there is an MCP server. Examples for PHP, Java and CI are on the KoSIT-validator-as-an-API page.
Does the API send the invoices?
No. The finished file goes back to your system and your delivery route takes over — email or your Peppol provider. Archiving stays with you too.
Can I validate and read incoming e-invoices too?
Yes, free and unlimited: XRechnung in UBL and CII, and ZUGFeRD and Factur-X PDFs. The validation endpoint explains every rule violation in plain language. POST /v1/parse reads the invoice into JSON — in the same shape generation accepts, plus the totals and VAT breakdown exactly as the invoice states them, and a list of everything the shape does not carry. With validate=true the check comes in the same response.
Can my software generate invoices for its own customers?
Yes. Accounting software, a shop system or a portal names the customer on every call with its own identifier, in the X-Normapi-Customer header. It stays one account with one allowance, but NormAPI counts every customer separately: the account shows the figures per customer and month, also as CSV and through GET /v1/customers. Each customer can get a monthly ceiling and a key of its own that only books for that customer.
What happens when the allowance runs out?
On Starter and Business the API answers 402 until the month turns or the plan changes. Scale keeps billing per invoice up to the cap you set — preset to €300 a month.
XRechnung or ZUGFeRD — which do I need?
For invoices to public-sector buyers usually XRechnung, with a Leitweg-ID. Between businesses both are allowed; ZUGFeRD helps when the recipient should be able to read the invoice without software. Both come from the same call.
Who has to issue e-invoices from 2027?
From 1 January 2027 businesses with more than €800,000 turnover in the previous year, from 1 January 2028 every other business in domestic B2B trade; small businesses under § 19 UStG stay exempt. Receiving them has been mandatory for all since 2025.