Overview
Base URL: https://api.normapi.de. Requests and responses are UTF-8; errors are RFC 9457 problem JSON. No authentication to validate or read invoices — the fair-use limits apply. You create your own key with its own quota (Authorization: Bearer nk_live_…) yourself: create an account — magic link or GitHub, no credit card. Validating and reading stay free and never count against the allowance.
| Endpoint | Purpose |
|---|---|
POST /v1/validate | Validate one invoice: XRechnung XML (UBL or CII) or a ZUGFeRD/Factur-X PDF. |
POST /v1/parse | Read an incoming invoice into JSON — in exactly the shape POST /v1/invoices takes. |
POST /v1/invoices | Generate a validated XRechnung (UBL or CII) or a ZUGFeRD PDF from invoice data as JSON — on our page or inside your own PDF. |
The same three as tools for AI agents, in Claude, ChatGPT, Cursor or VS Code: the MCP server.
POST /v1/validate
The document is the raw request body — no multipart, no base64. The file type is detected from content, never from the Content-Type header. For ZUGFeRD/Factur-X PDFs the embedded invoice is extracted and validated.
curl -X POST https://api.normapi.de/v1/validate \
-H 'Content-Type: application/xml' \
-H 'Accept-Language: en' \
-H 'X-Document-Name: invoice.xml' \
--data-binary @invoice.xml{
"acceptable": false,
"wellFormed": true,
"schemaValid": true,
"schematronValid": false,
"businessRulesEvaluated": true,
"rulesetVersion": "v2026-08-31",
"scenario": "EN16931 XRechnung (UBL Invoice)",
"findings": [
{
"code": "BR-CO-16",
"severity": "ERROR",
"text": "[BR-CO-16]-Amount due for payment (BT-115) = ...",
"origin": "SCHEMATRON",
"location": "/Q{urn:oasis:...:Invoice-2}Invoice[1]/Q{...}LegalMonetaryTotal[1]",
"line": null, "column": null,
"test": "(exists(cbc:PrepaidAmount) and not(exists(cbc:Payable...",
"explanation": {
"meaning": "The amount due for payment (BT-115) must add up: ...",
"cause": "...",
"fix": "Use decimal arithmetic throughout rather than float or double, ...",
"url": "https://normapi.com/en/errors#BR-CO-16"
}
}
]
}What the fields mean — three of them are routinely misread:
| Field | Meaning |
|---|---|
acceptable | The verdict. The one answer an accept/reject decision should rest on. |
schematronValid | Not a verdict. “The business rules reported nothing at all.” The rule set emits advisories on perfectly valid invoices — any advisory sets this false while acceptable stays true. |
businessRulesEvaluated | False when a schema failure stopped the run early. An empty findings list then means "not checked", never "nothing wrong". |
scenario | Which rule scenario judged the document — “EN16931 XRechnung (UBL Invoice)”, “EN16931 (CII)” for plain EN 16931 profiles (typical B2B ZUGFeRD), plus “EN16931 Factur-X/ZUGFeRD BASIC (CII)” and “Factur-X/ZUGFeRD EXTENDED (CII)” for the two hybrid profiles. The official KoSIT configuration has no scenario for BASIC or EXTENDED; NormAPI adds them so those documents are checked rather than passing through unevaluated: BASIC against the EN 16931 core, EXTENDED against the official Factur-X 1.09.2 EXTENDED rules (schema and schematron), which rulesetVersion then names. null: no scenario matched, nothing was checked, and acceptable false is a refusal to judge, not a judgement. |
findings[] | Every message with its rule code, severity (ERROR / WARNING / INFORMATION), rule text, XPath location and the failed test. The location is in Clark notation — each step carries its namespace as a Q{…} prefix rather than a short form like cac:, because a prefix means nothing without the document that declared it. The severity is the one the official XRechnung configuration sets for the scenario: BR-CL-23, for instance, is fatal in the rule itself but only a warning in an XRechnung — so it matches the verdict in acceptable. |
findings[].explanation | The rule in plain language: what it requires (meaning), why it usually fires (cause), how to fix it (fix), and a link to its entry in the error code reference (url). Language via Accept-Language: de for German, fr for French, English otherwise; Content-Language names the one chosen. Every business rule is explained; null appears on findings that are not business rules, such as schema findings. The rule text in text stays untranslated. |
findings[].advisory | Only on a finding that does not count towards the verdict. en16931-core: a ZUGFeRD or Factur-X invoice in the EXTENDED profile is judged by the official EXTENDED rules; what the EN 16931 core rules find beyond them is listed beside them at severity INFORMATION, such as a date on an order reference (CII-DT-027), which EXTENDED allows. A note NORMAPI-EXTENDED-CORE names the codes. A recipient who accepts only EN 16931 or XRechnung would still refuse the invoice for them. Absent on every finding that counts. |
rules | france when the French rules judged the document: asked for with rules=france, or chosen by an EXTENDED-CTC-FR invoice. Absent under the German/EN 16931 rules |
suggestedRules | france when a document checked without the French rules looks French: a French seller, a SIREN, a French framework code or mandatory note. A hint only; the result is that of the rules used. Absent otherwise |
notChecked[] | Under the French rules, what no validator can check from the invoice alone: siren-status, ppf-directory, invoice-number-uniqueness, rules-outside-schematron, and chorus-pro for a public buyer. Absent when empty |
French rules: rules=france. With ?rules=france the document is checked against FNFE's French rules (France_RFE) instead of the German/EN 16931 ones, and a Factur-X PDF is checked as a file too: PDF/A-3, and the Factur-X level its XMP metadata declares. The French rules are chosen, never guessed. Without the parameter the German rules judge, except for an EXTENDED-CTC-FR invoice, which gets the French rules either way. Any other value is a 400.
POST /v1/parse: reading invoices
The way back from POST /v1/invoices: an incoming e-invoice — an XRechnung or any other EN 16931 invoice as UBL or CII, a ZUGFeRD or Factur-X PDF — comes back as JSON. The endpoint takes exactly what POST /v1/validate takes: the document as the raw body, detected from its content, up to 5 MB. From a PDF, the embedded invoice is what gets read. Reading is free, needs no key and never counts against the allowance.
curl -X POST https://api.normapi.de/v1/parse \
-H 'Content-Type: application/pdf' \
--data-binary @incoming.pdf{
"syntax": "cii",
"documentKind": "invoice",
"source": { "kind": "pdf", "attachment": "xrechnung.xml" },
"specificationId": "urn:cen.eu:en16931:2017#compliant#urn:xeinkauf.de:kosit:xrechnung_3.0",
"businessProcess": "urn:fdc:peppol.eu:2017:poacc:billing:01:1.0",
"profile": "xrechnung",
"invoice": {
"invoiceNumber": "RE-2026-1001",
"issueDate": "2026-10-01",
"typeCode": "380",
"dueDate": "2026-10-31",
"currency": "EUR",
"buyerReference": "4500012345",
"seller": { "name": "Muster Software GmbH", "vatId": "DE123456789", ... },
"buyer": { "name": "Beispiel Handel AG", ... },
"payment": { "meansCode": "58", "iban": "DE17100500000123456789", ... },
"lines": [
{ "id": "1", "name": "Softwareentwicklung ERP-Schnittstelle",
"quantity": 24, "unit": "HUR", "unitPrice": 95.00,
"vatCategory": "S", "vatRate": 19, ... },
...
],
...
},
"stated": {
"lineTotal": "2940.00",
"netTotal": "2940.00",
"vatTotal": "558.60",
"grossTotal": "3498.60",
"amountDue": "3498.60",
"vatBreakdown": [
{ "category": "S", "rate": "19.00",
"taxableAmount": "2940.00", "vatAmount": "558.60", ... }
],
"lines": [{ "netAmount": "2280.00", ... }, { "netAmount": "660.00", ... }],
...
},
"notMapped": [],
"validation": null
}| Field | Meaning |
|---|---|
invoice | The invoice in exactly the shape POST /v1/invoices takes: read it, change it, generate it again — with no mapping in between. Every field is present; what the document does not hold is null. Generation's defaults apply, such as typeCode 380 and empty lists. Where the norm states a value once per VAT group, it stands here on every member: the exemption reason (BT-120) on each line, allowance and charge of that group. An allowance given as a percentage has percent and baseAmount, and amount is null — stated has the amount. |
stated | What NormAPI computes itself when it generates, and so does not take from the request: the totals (BT-106 to BT-115), the VAT breakdown (BG-23), each line's net (BT-131) and the amounts of allowances and charges. As strings, exactly as the document writes them — 336.9 stays 336.9, never passing through a float. Whether they add up is the rule set's question: ?validate=true. |
notMapped[] | Every value of the document the response does not carry, as a path without positions and with a count: /Invoice/cac:InvoiceLine/cac:Item/cac:CommodityClassification/cbc:ItemClassificationCode. That is data the invoice shape has no place for (an item classification, a separate payee), values that cannot be read as what they should be (a date that is no date), and repetitions: where the document has several values and the shape holds one, the first is read and the rest are listed here. For any invoice NormAPI generated, the list is empty. Nothing is lost without you seeing it. |
profile | The profile value of POST /v1/invoices that declares exactly this specification identifier (BT-24) — pass it to generate the invoice again under the same rules. Null for any other identifier, such as XRechnung 2.x or ZUGFeRD BASIC. |
syntax, source, documentKind | ubl or cii; xml or pdf, for a PDF with the name of the embedded file; invoice or creditNote — in CII the type code (BT-3) decides, since both share one root element. |
validation | With ?validate=true, the verdict exactly as POST /v1/validate returns it, explanations in the language Accept-Language picks. Without the parameter null: no rule set runs. |
import { generateInvoice, parse } from '@normapi/client'
import { readFile } from 'node:fs/promises'
const { invoice, stated, notMapped, profile } = await parse(await readFile('incoming.pdf'))
console.log(invoice.invoiceNumber, invoice.seller?.name, stated.amountDue)
for (const entry of notMapped) {
console.log(`not carried: ${entry.path} (${entry.count}×)`)
}
// Correct an invoice of your own: read it, change it, generate it again —
// under the same rules the original declares.
const { xml } = await generateInvoice(
{
...invoice,
invoiceNumber: 'RE-2026-1001-K',
typeCode: '384',
precedingInvoices: [{ number: invoice.invoiceNumber, issueDate: invoice.issueDate }],
},
{ apiKey: process.env.NORMAPI_KEY, ...(profile === null ? {} : { profile }) },
)POST /v1/invoices
Invoice data as JSON in, a validated XRechnung 3.0.2 back — UBL by default, UN/CEFACT CII with ?syntax=cii, or a complete ZUGFeRD hybrid PDF (PDF/A-3 with the invoice embedded and a human-readable page) with ?syntax=zugferd. The server computes every total — line nets, the VAT breakdown, document totals — in decimal arithmetic, so the BR-CO sum rules hold by construction. The classic e-invoicing failure is caller-side float arithmetic; an API that accepted precomputed totals would reproduce exactly that bug.
No invoice leaves unvalidated: every generated document runs through the official rule set before the response. A 200 therefore carries a document that passed — if your JSON describes an invoice the rules do not permit, you get a 422 with the findings. Each names, beside the rule, the fields of your JSON it concerns in fields, such as buyer.vatId or lines[1].unit — a missing field like buyerReference too.
For businesses: profile=en16931. Without it you get an XRechnung, as public authorities require. It adds three things to EN 16931: the buyer reference (the Leitweg-ID for authorities, BR-DE-15), a seller contact (BR-DE-2) and both sides' electronic addresses. Between businesses § 14 UStG accepts the norm itself: with ?profile=en16931 those may be left out, the document is checked against the EN 16931 rules (scenario “EN16931 (UBL Invoice)” or “EN16931 (CII)”), and a ZUGFeRD PDF carries the EN 16931 profile.
From France: profile=france. For a seller established in France (country FR or an overseas department, BR-FR-MAP-14), ?profile=france writes the EN 16931 invoice with what French law adds to it: the cadre de facturation in BT-23, the notes PMT, PMD, AAB and BAR or ADN, and the French legal mentions. It checks the invoice against FNFE's French rules (BR-FR) before it is returned, and it requires the france object. The request is checked before anything is written: a mistake those rules would refuse is a 400 naming the field, and the rule or article where one applies. What only the written document shows is a 422 as always. The invoice declares the same specification as profile=en16931, and a ZUGFeRD PDF carries the EN 16931 profile.
The page's language: pdfLanguage. The page of a ZUGFeRD PDF is French with profile=france (pdfLanguage=fr) and German under every other profile (pdfLanguage=de), profile=xrechnung and profile=en16931 alike: the seller's country does not decide. pdfLanguage=de or pdfLanguage=fr sets it; the French legal mentions stay French on a German page. Where no page is printed (syntax=ubl, syntax=cii, your own PDF) the parameter is ignored and named in X-Normapi-Ignored-Fields; any other value is a 400.
profile=extended-ctc-fr is a 400: NormAPI does not write EXTENDED-CTC-FR, the profile of marketplace invoicing. If you need it, write to kontakt@normapi.de: we count these requests to decide whether to build it. Everything French, in French: the API documentation (in French).
curl -X POST https://api.normapi.de/v1/invoices \
-H 'Content-Type: application/json' \
--data-binary @invoice.json -o invoice.xml
# UN/CEFACT CII instead of UBL:
curl -X POST 'https://api.normapi.de/v1/invoices?syntax=cii' ...
# ZUGFeRD hybrid PDF (application/pdf):
curl -X POST 'https://api.normapi.de/v1/invoices?syntax=zugferd' \
-H 'Content-Type: application/json' \
--data-binary @invoice.json -o invoice.pdf
# For a business: EN 16931, Leitweg-ID, contact and email addresses optional
curl -X POST 'https://api.normapi.de/v1/invoices?syntax=zugferd&profile=en16931' ...{
"invoiceNumber": "RE-2026-0815",
"issueDate": "2026-08-13",
"dueDate": "2026-09-12",
"deliveryDate": "2026-08-10",
"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",
"reference": "RE-2026-0815" },
"paymentTerms": "Payable within 30 days net.",
"lines": [
{ "name": "Software licence, annual", "quantity": 3, "unit": "C62",
"unitPrice": 199.00, "vatCategory": "S", "vatRate": 19 }
]
}The response body is the XML itself (Content-Type application/xml) — redirect it to a file and you are done. Two headers carry provenance:
| Header | Content |
|---|---|
X-Normapi-Ruleset | The rule set that judged the document, e.g. v2026-08-31 |
X-Normapi-Scenario | "EN16931 XRechnung (UBL Invoice)" — the rules the document passed |
X-Normapi-Quota-Used | Invoices generated this month — only on keys that carry an allowance |
X-Normapi-Quota-Limit | The plan's allowance. Once it is reached, /v1/invoices answers 402 |
X-Normapi-Daily-Remaining | Without a key: how many invoices are left today, this one already taken off. With X-Normapi-Daily-Limit, the daily limit |
X-Request-Id | This call's id, on every response — quote it when you contact us |
Idempotent-Replayed | true on the repeat of a call that already succeeded under the same Idempotency-Key — the same invoice again, not counted again (Retries) |
X-Normapi-Ignored-Fields | Fields of your data that no part of an invoice knows, so they are in no document, e.g. “lines[0].articleNumber” — only when there are some, on 400 and 422 too. A misspelt field often explains a missing one |
X-Normapi-Customer | The customer the call was counted for — only when you named one (Customers). With X-Normapi-Customer-Used and -Limit when it has a ceiling |
X-Normapi-Letterhead | On a ZUGFeRD PDF on our page, when your account has a letterhead: its id when the PDF is printed on it, none when it is not. With X-Normapi-Letterhead-Skipped and the reason (Letterhead) |
Credit notes, corrections, partial and final invoices are chosen with typeCode (BT-3); the reference to the earlier invoice goes in precedingInvoices (BG-3). A 381 is written as a UBL CreditNote document, as the rule set requires. Amounts stay positive — the document type says which way the money flows.
"typeCode": "381",
"precedingInvoices": [
{ "number": "RE-2026-0815", "issueDate": "2026-08-13" }
]Allowances and charges exist at document level (allowances, charges, each with its own VAT category) and per line (without a VAT category — the line's applies). Give an amount or a percentage; the server computes the amount from the percentage, rounded half-up to the cent, and every total and the VAT breakdown with it.
"allowances": [
{ "amount": 9.80, "reason": "Treuerabatt", "reasonCode": "95",
"vatCategory": "S", "vatRate": 7 }
],
"charges": [
{ "amount": 12.50, "reason": "Versandkosten", "reasonCode": "FC",
"vatCategory": "S", "vatRate": 19 }
],
"lines": [
{ "name": "Softwarelizenz Jahresabo", "quantity": 3, "unit": "C62",
"unitPrice": 199.00, "vatCategory": "S", "vatRate": 19,
"allowances": [
{ "percent": 10, "reason": "Mengenrabatt", "reasonCode": "95" }
] }
]Payment means: credit transfer (58, 30) with an account, SEPA direct debit (59) with a mandate, card payment (48, 54, 55) with a card — and any other UNTDID 4461 code with nothing further. Each route carries only its own group: collecting by direct debit means leaving your own IBAN out (BR-DE-25-b).
"payment": {
"meansCode": "59",
"reference": "RE-2026-0815",
"directDebit": {
"mandateReference": "MANDAT-2026-001",
"creditorId": "DE98ZZZ09999999999",
"debitedAccount": "DE02120300000000202051"
}
}Your own PDF
If your software already lays out its invoices, keep the layout: send your PDF along, and NormAPI embeds the validated XML in it. The request is multipart, with the invoice data as part invoice (the same JSON as above) and your PDF as part pdf, up to 5 MB. The syntax is zugferd, the only one a PDF can carry, so it can be left out. It needs an API key and counts as one generated invoice, like any other.
curl -X POST https://api.normapi.de/v1/invoices \
-H 'Authorization: Bearer nk_live_…' \
-F 'invoice=@invoice.json;type=application/json' \
-F 'pdf=@your-invoice.pdf;type=application/pdf' \
-o invoice.pdfChecked twice before it is returned: the XML against the rule set, like every generated invoice, and the finished file against PDF/A-3 with veraPDF. Two common causes NormAPI puts right itself first, without changing the page: Helvetica and Arial that are not embedded get the metric-compatible Liberation Sans embedded, and images lose the keys PDF/A forbids (Interpolate, Alternates, OPI). A file that still cannot become a PDF/A-3 comes back as a 422 whose violations name the clauses of ISO 19005-3 it breaks. Most often another font is not embedded: export the PDF as PDF/A (1b, 2b or 3b) from the software that renders it, and send it again. A PDF that already carries an e-invoice is refused rather than overwritten. Every refusal of your PDF carries, beside the prose, a reason your program can match on: not-pdfa, uncheckable, unreadable, already-invoice, not-rewritable, too-large or not-pdf.
{
"type": "https://normapi.de/problems/pdf-not-pdfa",
"title": "PDF cannot become a PDF/A-3",
"status": 422,
"reason": "not-pdfa",
"violations": [
{ "clause": "6.2.11.4.1", "test": 1, "occurrences": 1,
"description": "The font programs for all fonts used for rendering within a conforming file shall be embedded ..." }
]
}Your letterhead
A ZUGFeRD PDF on our page (?syntax=zugferd, without your own PDF) is printed by NormAPI on your account's letterhead when it has one, with the recipient's address in the window of the envelope. You upload the letterhead once as a PDF, in the account under Letterhead. Uploading, replacing and deleting exist only there; the API has no endpoint for them. The letterhead is included in every plan, the free one too, and the invoices printed on it count like any other generated invoice. XRechnung (UBL or CII) has no page and stays as it is.
You upload a PDF file of up to 5 MiB with one or two A4 pages in portrait orientation, with images of up to 10 megapixels in colour (30 in greyscale) and drawings of up to 512 KiB per page. The first page is the letterhead of an invoice's first page, the second the letterhead of the follow pages; a file with one page uses it for every page. In the account you also choose whether the letterhead applies to every invoice of the account or to one seller only (VAT ID, tax number or name; it is enough if one of them matches the invoice).
# On the account's letterhead, if it has one (the default):
curl -X POST 'https://api.normapi.de/v1/invoices?syntax=zugferd' \
-H 'Authorization: Bearer nk_live_…' \
-H 'Content-Type: application/json' \
--data-binary @invoice.json -o invoice.pdf -D -
# In NormAPI's standard layout:
curl -X POST 'https://api.normapi.de/v1/invoices?syntax=zugferd&letterhead=none' ...The query parameter letterhead decides per call:
| Value | Meaning |
|---|---|
auto | The default: your account's letterhead, unless one of the reasons below speaks against it |
none | NormAPI's standard layout |
The parameter applies to calls with an API key; without a key there is no account and no letterhead. Any other value is a 400 that names letterhead, for UBL and CII too, where the value otherwise has no effect. A call with your own PDF does not read it: then your PDF is the layout.
Two response headers say what happened. Both come only with ZUGFeRD on our page, and only when your account has a letterhead; without a letterhead, and with XML, they are absent.
# The PDF is printed on the letterhead:
X-Normapi-Letterhead: lh_9f2c4e1a7b3d45f6a8c0e2b4d6f81357
# Standard layout, with the reason:
X-Normapi-Letterhead: none
X-Normapi-Letterhead-Skipped: requested| X-Normapi-Letterhead-Skipped | Reason |
|---|---|
requested | The call sent letterhead=none |
customer-call | The call is for one of your customers (the X-Normapi-Customer header, or a key bound to a customer, Customers): your letterhead is never printed on your customers' invoices |
seller-mismatch | The letterhead is for one seller, and the invoice's seller is another |
needs-confirmation | The check of the letterhead raised notes that still have to be confirmed in the account (“Use it anyway”) |
recheck-failed | The check that follows an update of NormAPI failed; the account shows the reason |
render-failed | The letterhead could not be used for this invoice because of an error on our side; the invoice was created in the standard layout |
If more than one reason applies, the header names the first in this order. With an Idempotency-Key, a repeat names the letterhead the first call was printed on; if the letterhead has changed since, the repeat is a different request (422 idempotency-key-reused).
Placeholders. If one of these placeholders is text in the letterhead, NormAPI puts its value in on every page, in Liberation Sans, at the placeholder's font size and position. Upper and lower case do not matter.
| Placeholder | Replaced with |
|---|---|
[RECHNUNGSNUMMER] | The invoice number (BT-1). Also [INVOICE NUMBER] |
[SEITE] | The page number. Also [PAGE] and [X] |
[SEITEN] | The number of pages. Also [PAGES] and [Y] |
Without placeholders, follow pages start with “Rechnung 2026-0042 · Seite 2 von 3” (“Gutschrift …” for a credit note). If NormAPI does not recognise the letterhead's placeholders, for example because the font has no Unicode mapping, the preview in the account says so.
The address field under DIN 5008. NormAPI prints the recipient in the address field and the invoice details in the information block, at the positions of DIN 5008:2020, in millimetres from the top edge of the page. The body of the invoice runs from 25 to 190 mm from the left edge.
| Area | Form B | Form A |
|---|---|---|
| Address field, 85 × 45 mm, 20 mm from the left edge | 45 to 90 mm | 27 to 72 mm |
| Zusatz- und Vermerkzone (additional and remarks zone): the top of the address field, where your letterhead’s return line sits | 45 to 62.7 mm | 27 to 44.7 mm |
| Anschriftzone (address zone), 25 mm from the left edge: where NormAPI prints the recipient’s address | 62.7 to 90 mm | 44.7 to 72 mm |
| Information block, 125 to 190 mm from the left edge: the invoice details | from 50 mm | from 32 mm |
| Title: the printed heading, “RECHNUNG” on an invoice (its baseline) | 98.46 mm | 80.46 mm |
| Fold marks | 105 and 210 mm | 87 and 192 mm |
NormAPI recognises the form by the letterhead's fold marks or, without marks, by the return line in the Zusatz- und Vermerkzone. If it finds neither, the letterhead counts as having no window: the address and the invoice details then sit directly under the letterhead. In the account you can change the envelope form and the margins, and the preview shows a sample invoice on your letterhead with the address field as a dashed box.
Retries: Idempotency-Key
After a timeout you cannot tell “never arrived” from “generated, and the answer got lost”. Send an Idempotency-Key header — 1 to 255 printable ASCII characters, a UUID or your invoice number — and retry with the same key. If the first call succeeded, you get the invoice again, marked Idempotent-Replayed: true, and it is not counted a second time. A key holds for 24 hours, and only as a SHA-256 digest: neither it nor the invoice is stored. It applies to calls with an API key, the ones that are counted.
curl -X POST https://api.normapi.de/v1/invoices \
-H 'Authorization: Bearer nk_live_…' \
-H 'Idempotency-Key: RE-2026-0815' \
-H 'Content-Type: application/json' \
--data-binary @invoice.json -o invoice.xml| Situation | Answer |
|---|---|
| First call with the key | Runs as usual |
| Same key, same request, and the first call succeeded | 200 with the same invoice, Idempotent-Replayed: true, not counted — even when the allowance is used up by now |
| The first call failed (400, 422, 503 …) | The key is free again: fix the data and retry with the same key |
| Same key while the first call is still running | 409 with Retry-After: 1 |
| Same key for a different request: other data, another syntax or another PDF | 422 idempotency-key-reused — a new invoice needs a new key |
A repeat is generated again rather than read from storage, since invoices are not stored. The invoice is the same; a PDF's internal timestamps can differ.
Your software’s customers
When your software generates invoices for its own customers — accounting, a shop system, a portal — name the customer each call is for, in the X-Normapi-Customer header, with your own reference for it. It stays one account with one allowance, but NormAPI counts each customer on its own. Under Customers in the account you see what each one generated in a month, and can set a ceiling for any of them.
curl -X POST https://api.normapi.de/v1/invoices \
-H 'Authorization: Bearer nk_live_…' \
-H 'X-Normapi-Customer: tenant-42' \
-H 'Content-Type: application/json' \
--data-binary @invoice.json -o invoice.xml| Question | Answer |
|---|---|
| What may it hold? | 1 to 64 characters: letters, digits and . _ : -, starting with a letter or a digit; case counts. Anything else is 400 invalid-request, with the header in rejectedFields |
| What does it apply to? | Every call under /v1 made with an API key, validation, parsing and generation alike. The response sends it back. Without a key it is ignored, since nothing is counted then |
| And the allowance? | Stays one for the account: all customers together count against the plan |
| With an Idempotency-Key? | The customer is part of the request. The same Idempotency-Key for another customer is another request: 422 idempotency-key-reused |
One key per customer. A key can be bound to a customer when it is created. Every call made with it counts for that customer, header or not; a header naming another customer gets 400 customer-mismatch. A customer holding its own key therefore cannot book onto another. A bound key reads only its own customer under /v1/customers and changes no ceiling (403 customer-bound-key).
A ceiling per customer. For any customer you can set the most invoices it generates in a calendar month (UTC). What counts is what was generated; refusals do not, and the repeat of a successful call under the same Idempotency-Key is delivered even at the ceiling. Once the ceiling is reached, /v1/invoices answers 429 customer-quota-exceeded for that customer, with a Retry-After to the start of the next month. Validation and parsing stay free and your other customers carry on. Below it, successful responses carry X-Normapi-Customer-Used (generated so far this month) and X-Normapi-Customer-Limit.
{
"type": "https://normapi.de/problems/customer-quota-exceeded",
"title": "Monthly ceiling for this customer reached",
"status": 429,
"customer": "tenant-42",
"used": 500,
"limit": 500,
"resetsAt": "2026-11-01T00:00:00Z"
}The numbers for your billing are in the API too, with the same key and not counted:
| Call | Effect |
|---|---|
| GET /v1/customers?month=2026-10 | Every customer of the month, most invoices generated first: invoices generated (generated), generations refused with 4xx (refused), calls per endpoint (calls) and the ceiling (monthlyInvoices). Without month, the current month; limit (1–1000, default 100) and cursor page on |
| GET /v1/customers/{customer} | One customer in the month (month as above) — zeros for one that has not called yet |
| PUT /v1/customers/{customer}/allowance | Body {"monthlyInvoices": 500}: sets or replaces the ceiling (1 to 10,000,000), at once and for the whole month |
| DELETE /v1/customers/{customer}/allowance | Removes the ceiling; 204 whether there was one or not |
{
"month": "2026-10",
"customers": [
{ "customer": "tenant-42", "generated": 418, "refused": 3,
"calls": { "generate": 421, "validate": 96 }, "monthlyInvoices": 500 },
{ "customer": "tenant-7", "generated": 97, "refused": 0,
"calls": { "generate": 97 }, "monthlyInvoices": null }
],
"withoutCustomer": { "generated": 12, "refused": 1,
"calls": { "generate": 13, "validate": 40 } },
"nextCursor": null
}A key without an account gets 403 account-required here, a call without a key 401. When nextCursor is not null, the same call with cursor= that value fetches the next page.
What is checked
What an acceptable: true means depends on the document. Everything below runs on every call unless it says otherwise, against the official KoSIT configuration v2026-08-31 (XRechnung 3.0.2); “not checked” means exactly that.
| Document (validation) | XML schema | EN 16931 rules | XRechnung rules |
|---|---|---|---|
| XRechnung UBL, invoice or credit note, including the Extension and CVD variants | UBL 2.1 | checked | checked |
| XRechnung CII, and ZUGFeRD/Factur-X in the XRECHNUNG profile | CII D16B | checked | checked |
| EN 16931 without a national CIUS: UBL, CII, and ZUGFeRD/Factur-X EN 16931 (formerly COMFORT) | UBL 2.1 / CII D16B | checked | not applicable |
| ZUGFeRD/Factur-X BASIC — a scenario NormAPI adds, with the official EN 16931 rules | CII D16B | checked | not applicable |
| ZUGFeRD/Factur-X EXTENDED — a scenario NormAPI adds, with the official Factur-X 1.09.2 EXTENDED rules | Factur-X EXTENDED | checked as EXTENDED words them; what the core rules find beyond that is listed as information with advisory “en16931-core” | not applicable |
| ZUGFeRD/Factur-X MINIMUM and BASIC WL, Peppol BIS Billing, anything else (scenario null) | not checked | not checked | not checked |
| The PDF of a hybrid (validation) | Checked? |
|---|---|
| The embedded XML (factur-x.xml, xrechnung.xml or zugferd-invoice.xml) | checked, as in the table above |
| PDF/A-3 conformance of the file | checked with ?pdf=check (veraPDF), violations as warnings; the validator on this site always asks; always checked with ?rules=france, as errors |
| Profile declared in the XMP metadata (ConformanceLevel) matching the XML | checked with ?pdf=check, a mismatch as a warning; always checked with ?rules=france, as an error |
| Whether the page shows what the XML says | not checked |
| Generation | XML | |
|---|---|---|
| syntax=ubl, syntax=cii | XRechnung 3.0.2 with all three rule layers, with profile=en16931 the schema and the EN 16931 rules; every call | none |
| syntax=zugferd on our page | XRECHNUNG profile with all three rule layers, with profile=en16931 the EN 16931 profile with the schema and the EN 16931 rules; every call | PDF/A-3: our page is proven with veraPDF by the test suite on every release, not per call |
| syntax=zugferd on your PDF | XRECHNUNG or EN 16931 profile, as above; every call | PDF/A-3B with veraPDF, every call; whether your page shows the same amounts is not compared |
Field reference: generating
Required fields are marked. Everything else is decided by the rule set itself — a seller with neither VAT id nor tax number gets a 422 naming BR-DE-16, not a made-up error code of ours.
| Field | Type | Meaning |
|---|---|---|
| invoiceNumber * | string | Invoice number (BT-1) |
| issueDate * | YYYY-MM-DD | Issue date (BT-2) |
| typeCode | UNTDID 1001 | Document type (BT-3), default 380 invoice · 326 partial invoice · 381 credit note · 384 corrected invoice · 389 self-billed invoice · 875/876/877 partial, partial final, final construction invoice. Other codes draw the BR-DE-17 warning |
| dueDate | YYYY-MM-DD | Due date (BT-9). Without dueDate or paymentTerms the recipient has no payment deadline |
| deliveryDate | YYYY-MM-DD | Delivery date (BT-72); omitting it and invoicePeriod draws an advisory from the rule set |
| deliverTo | DeliverTo | Where the supply went (BG-13), when not simply to the buyer: name (BT-70), locationId (BT-71, e.g. the GLN) with locationIdScheme (BT-71-1, 0088 for a GLN), address (BG-15, built like the address below). Needed for an intra-community supply (category K): without the delivery country the rule set refuses it (BR-IC-12) |
| invoicePeriod | Period | Invoicing period (BG-14): startDate (BT-73) and endDate (BT-74), each YYYY-MM-DD; one end is enough. Instead of deliveryDate or beside it, e.g. on a monthly invoice |
| currency * | ISO 4217 | Currency (BT-5), e.g. EUR |
| buyerReference | string | Buyer reference (BT-10) — the Leitweg-ID for public-sector buyers. Mandatory in XRechnung (BR-DE-15), optional with profile=en16931 |
| orderReference | string | The buyer’s purchase order number (BT-13) |
| contractReference | string | Contract number (BT-12) |
| projectReference | string | Project number (BT-11) |
| despatchAdviceReference | string | Delivery note number (BT-16) |
| attachments | Attachment[] | Supporting documents (BG-24), at most 20: id (BT-122, else the filename), description (BT-123), the file as content (base64, BT-125) with filename and mimeCode, or url (BT-124). PDF, PNG, JPEG, CSV, XLSX and ODS are permitted (BR-CL-24), each filename once (BR-DE-22), up to 3 MB together. In CII, two or more files or descriptions draw the CII-SR-475/476 warnings, a known defect of those CEN rules |
| precedingInvoices | Reference[] | Earlier invoices referred to (BG-3): number (BT-25, required), issueDate (BT-26). Expected for 384 (BR-DE-26). At most one in CII and ZUGFeRD — the schema has room for one |
| note | string | Free-text note (BT-22) |
| seller * | Party | Seller (BG-4), see below |
| buyer * | Party | Buyer (BG-7), see below |
| payment * | Payment | Payment instructions (BG-16) |
| paymentTerms | string | Payment terms (BT-20). A cash discount machine-readably as a line #SKONTO#TAGE=14#PROZENT=2.00# (BR-DE-18) |
| allowances | AllowanceCharge[] | Document-level allowances (BG-20), see below |
| charges | AllowanceCharge[] | Document-level charges (BG-21), see below |
| prepaidAmount | number | Already paid (BT-113), such as partial payments before a final invoice; the amount due (BT-115) drops accordingly |
| lines * | Line[] | At least one line (BG-25) |
Party — the same shape for seller and buyer; which side needs what is the rule set's call (the seller needs a tax identity, and in XRechnung a contact; the buyer does not):
| Field | Type | Meaning |
|---|---|---|
| name * | string | Legal name (BT-27 / BT-44) |
| identifier | string | Any party identifier (BT-29). Matters for sellers without a VAT id: the tax number satisfies BR-DE-16 but only an identifier satisfies BR-CO-26 — repeating the tax number here is fine |
| vatId | string | VAT id (BT-31), e.g. DE123456789 |
| taxNumber | string | German tax number (BT-32) |
| electronicAddress | string | Electronic address (BT-34 / BT-49), usually an email address. XRechnung requires it on both sides (PEPPOL-EN16931-R020 and -R010), EN 16931 does not |
| electronicAddressScheme | EAS code | Scheme of the address; default EM (email) |
| address * | Address | street (optional), city, postcode, country (ISO 3166-1 alpha-2) — city and postcode are mandatory |
| contact | Contact | name, phone, email — mandatory on the seller in XRechnung (BR-DE-2 through 7), with plausibility checks (BR-DE-27/28); optional with profile=en16931, also one by one |
| tradingName | string | Trading name beside the legal name (BT-28 / BT-45) |
| registrationId | string | Register entry, e.g. HRB 123456 (BT-30 / BT-47); identifies the seller like a VAT ID does (BR-CO-26). registrationIdScheme (BT-30-1): ISO 6523 code, none for German registers, 0002 for a French SIREN |
| legalInformation | string | Seller only (BT-33): what company law wants on business letters — seat, register court, managing directors (§ 35a GmbHG, § 80 AktG, § 37a HGB). The ZUGFeRD PDF prints it with the register number |
Payment and Line:
| Field | Type | Meaning |
|---|---|---|
| payment.meansCode * | UNTDID 4461 | 58 SEPA credit transfer, 30 credit transfer, 59 SEPA direct debit, 48/54/55 card; other codes (10, 20, ZZZ …) without a further group |
| payment.meansText | string | Payment means in plain text (BT-82), e.g. "SEPA credit transfer" |
| payment.iban | string | Payee account (BT-84); required by BR-DE-23-a for codes 58/30. On a credit note, the account the amount is paid out to |
| payment.accountName | string | Account holder (BT-85) |
| payment.bic | BIC | BIC of the payee's bank (BT-86), 8 or 11 characters |
| payment.reference | string | Remittance information (BT-83) |
| payment.card | Card | For 48/54/55 (BG-18): number (BT-87) — only the last 4 to 6 digits, no asterisks or spaces; more than 10 digits is refused with 400 — holder (BT-88), network (e.g. VISA, UBL only) |
| payment.directDebit | DirectDebit | For 59 (BG-19) all three: mandateReference (BT-89), creditorId (BT-90, your creditor identifier), debitedAccount (BT-91, the customer's IBAN). Leave your own IBAN out then |
| line.name * | string | Item name (BT-153) |
| line.description | string | Item description (BT-154) |
| line.quantity * | number | Quantity (BT-129), up to 6 decimals |
| line.unit * | UN/ECE Rec 20 | Unit (BT-130): C62 piece, HUR hour, DAY day … |
| line.unitPrice * | number | Net unit price (BT-146), up to 4 decimals — with baseQuantity, the price of that many units |
| line.vatCategory * | UNTDID 5305 | S standard · Z zero-rated · E exempt · AE reverse charge · K intra-community · G export · O not subject to VAT · L/M. O stands alone: no other category beside it, no VAT id on seller or buyer (the seller then goes by taxNumber and identifier), and an exemption reason |
| line.vatRate | percent | VAT rate (BT-152); required for S |
| line.vatExemptionReason | string | Exemption reason (BT-120) — demanded by the rule set for E/AE/K/G, e.g. "Kleinunternehmer gemäß § 19 UStG" |
| line.allowances | Adjustment[] | Allowances on the line (BG-27): amount or percent, baseAmount, reason, reasonCode — no VAT category. The line net (BT-131) is quantity × price ÷ baseQuantity less allowances plus charges |
| line.charges | Adjustment[] | Charges on the line (BG-28), the same shape |
| line.period | Period | The period the line covers (BG-26), built like invoicePeriod |
| line.orderLineReference | string | The line of the purchase order this line bills (BT-132) |
| line.note | string | A note on this line (BT-127) |
| line.sellerItemId | string | The seller's article number (BT-155) |
| line.buyerItemId | string | The buyer's own number for the same article (BT-156) |
| line.standardItemId | string | An identifier under a registered scheme (BT-157), usually the GTIN (EAN) on the packaging |
| line.standardItemIdScheme | ISO 6523 ICD | Scheme of that identifier (BT-157-1); 0160, the GTIN, when absent |
| line.listPrice | number | List price before the discount (BT-148), at least unitPrice. We compute the discount (BT-147): listPrice − unitPrice |
| line.baseQuantity | number | Price base quantity (BT-149): how many units unitPrice and listPrice are for, e.g. 100 for screws priced per hundred; 1 when absent |
AllowanceCharge — one document-level allowance or charge; at line level the same fields without the three VAT ones:
| Field | Type | Meaning |
|---|---|---|
| amount | number | Amount (BT-92 / BT-99), two decimals. Exactly one of amount and percent |
| percent | percent | Percentage (BT-94 / BT-101); the server computes the amount, rounded half-up to the cent |
| baseAmount | number | Base amount (BT-93 / BT-100), only together with percent — a base without a percentage is an error (PEPPOL-EN16931-R042). If omitted: the line nets of the same VAT category and rate, at line level quantity × price |
| reason | string | Reason in plain text (BT-97 / BT-104). reason or reasonCode must be present |
| reasonCode | code | Allowance: UNTDID 5189, e.g. 95 discount · charge: UNTDID 7161, e.g. FC freight |
| vatCategory * | UNTDID 5305 | VAT category (BT-95 / BT-102) — decides which VAT group the amount lowers or raises |
| vatRate | percent | VAT rate (BT-96 / BT-103) |
| vatExemptionReason | string | Exemption reason for the VAT group (BT-120) when this amount alone creates it |
france — required with profile=france: what only France asks of an invoice. What France shares with EN 16931 has its own field above: the SIREN is registrationId with scheme 0002, BT-13 is orderReference, BG-15 is deliverTo.
| Field | Type | Meaning |
|---|---|---|
| france.recipient * | string | Who the invoice is for. business: a business in France, note BAR B2B, its SIREN required (BR-FR-11). abroad: a business outside France, BAR B2BINT, the only recipient for the categories K and G. consumer: a private person, BAR B2C. public: a French public buyer through Chorus Pro, note ADN B2G, its SIREN and SIRET required (BR-FR-CPRO-10, BR-FR-09). The buyer's country follows from it (BR-FR-MAP-14) |
| france.operation * | string | What is invoiced, the first letter of BT-23, the cadre de facturation (BR-FR-08): goods B, services S, mixed M for goods and services not incidental to one another |
| france.stage | string | The digit of BT-23: standard (the default) 1; paid 2, an invoice already paid, whose dueDate is the payment date and BT-113 the whole total (BR-FR-CO-09); final 4, the invoice after a prepayment, not itself 386, 500 or 503 (BR-FR-CO-08) |
| france.vatOnDebits | boolean | The option to pay VAT on debits (BT-8), printed in the prescribed words. Services only: with operation goods it is a 400 (BR-FR-MAP-03, CGI 269-2-c) |
| france.vatFranchise | boolean | The seller charges no VAT (franchise en base, CGI 293 B): every line, allowance and charge is category E, BT-121 is VATEX-FR-FRANCHISE, and BT-120 the prescribed words unless you give a vatExemptionReason |
| france.discountTerms | string | The early-payment discount, or its absence, in words: the note AAB (BR-FR-05, BR-FR-06; L441-9). Left out, the note says there is none. Up to 500 characters |
| france.latePenalty | string | The late-payment penalty rate in words: the note PMD (L441-10). Left out, the legal rate, the ECB's refinancing rate plus 10 points. Up to 500 characters |
| france.recoveryFee | string | The fixed fee for recovering a late payment, in words: the note PMT. Left out, EUR 40, as D441-5 sets it. Up to 500 characters |
| france.serviceCode | string | A public buyer's code service, BT-46 under scheme 0224 (BR-FR-CPRO-11). CII only: with syntax=ubl or syntax=zugferd it is a 400, so give the engagement number in orderReference instead |
| france.singleTaxablePerson | SingleTaxablePerson | The single taxable person (assujetti unique) the seller is a member of, CGI 242 nonies A 5° bis: memberId (9 digits), name, vatId and address. NormAPI writes BG-11, the member identifier under scheme 0231 and the note TXD (BR-FR-CO-14, BR-FR-CO-15) |
| france.billingAddress | Address | The address the buyer is billed at, when not its own (L441-9). Printed on the page only: EN 16931 has no term for it |
Error responses
Errors are RFC 9457 problem JSON with type, title, detail and status. The status codes carry meaning:
| Status | Meaning | Reaction |
|---|---|---|
| 400 | Request structurally unusable — detail names every field concerned: missing, malformed (a BIC, say, or an X-Normapi-Customer with a space) or impossible to turn into a document (amount and percent together, a percentage with no base, a card number with more than 10 digits). Also: a key bound to a customer, with a header naming another (customer-mismatch) | Fix the request |
| 401 | The key sent is unknown or revoked. Without a key the anonymous limits apply — a wrong key is worse than none. Also: your own PDF sent without a key (api-key-required) | Check the key |
| 402 | The month’s allowance of generated invoices is spent. Deliberately not 429: this does not mean "slow down" but "the plan is full" — validation and parsing stay free | Next plan, or wait for the month to turn |
| 403 | Under /v1/customers: a key without an account (account-required), or a customer’s key reading other customers or changing a ceiling (customer-bound-key) | Use the account’s key |
| 409 | A call with the same Idempotency-Key is still running. Under /v1/customers: the account already holds 100,000 ceilings (too-many-customer-allowances) | Retry with the same key after Retry-After — or remove ceilings no longer needed |
| 413 | Document over 5 MB — your own PDF too — or invoice data over 6 MB | Do not retry |
| 415 | Body is neither XML nor PDF, or part pdf is not a PDF | Do not retry |
| 422 | Readable but not permitted: a PDF without an embedded invoice, and when reading also XML that is no invoice (not well-formed, with a DOCTYPE, the wrong root element) — or, when generating, data the rule set rejects (findings[] names each rule, and in fields the fields of your JSON it concerns), your own PDF that cannot become a PDF/A-3 (violations[]), or an Idempotency-Key reused for a different request | Fix the data, the PDF or the key |
| 429 | Your request budget is exhausted; Retry-After says how many seconds to wait. Without a key also: the day’s invoices are generated (daily-limit-reached), Retry-After runs to midnight. With a customer also: it reached its monthly ceiling (customer-quota-exceeded), Retry-After runs to the start of the month | Wait, then retry — or use a key, or raise the ceiling |
| 503 | All validation slots busy, or for ZUGFeRD all PDF rendering slots — load on our side, not your fault | Retry after Retry-After |
{
"type": "https://normapi.de/problems/invoice-not-permitted",
"title": "Invoice not permitted by the rule set",
"status": 422,
"detail": "... Fields to correct: seller.vatId (BR-DE-16), seller.taxNumber (BR-DE-16).",
"rulesetVersion": "v2026-08-31",
"findings": [
{ "code": "BR-DE-16", "severity": "ERROR",
"text": "[BR-DE-16] ... Umsatzsteueridentifikationsnummer ...",
"fields": ["seller.vatId", "seller.taxNumber"],
"explanation": { "meaning": "...", "cause": "...",
"fix": "Supply at least one of the three. ...",
"url": "https://normapi.com/en/errors#BR-DE-16" } }
]
}Limits
- 30 requests per minute per client, doubling as the burst budget. Beyond it: 429 with Retry-After.
- Without a key, 10 generated invoices a day per client (per IPv6 /64), until midnight German time. Beyond it: 429 of type daily-limit-reached with Retry-After until midnight. Refused data (400, 422) does not count, validating and reading have no daily limit, and a key carries its plan's allowance instead.
- 5 MB per document — real e-invoices are kilobytes.
- Bounded concurrent validations, readings and PDF renderings: under load the API answers fast with 503 instead of slowly with timeouts. Wait briefly and retry.
- Higher quotas for integrations: kontakt@normapi.de.
Client libraries
@normapi/client — TypeScript, zero dependencies, runs in Node 18+, browsers, Deno and Bun. Covers every endpoint: validate(), parse() (from 0.7.0) and generateInvoice(). For the letterhead, generateInvoicePdf() takes the option letterhead (auto or none) from 0.9.0 and returns letterhead and letterheadSkipped.
npm install @normapi/clientFor AI agents, the same API is an MCP server — at https://normapi.com/mcp and as npx @normapi/mcp: set up the MCP server.
import { validate, RateLimitError } from '@normapi/client'
import { readFile } from 'node:fs/promises'
const result = await validate(await readFile('invoice.xml'))
if (result.acceptable) {
console.log(`valid — checked as ${result.scenario}`)
} else {
for (const f of result.findings) {
console.log(`${f.severity} ${f.code}: ${f.text}`)
}
}For every other language the API is deliberately small: one POST with a raw body. The curl examples above translate into any HTTP library in a few lines — here in PHP, because this market runs a lot of WooCommerce and JTL.
<?php
$xml = file_get_contents('invoice.xml');
$ch = curl_init('https://api.normapi.de/v1/validate');
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_POSTFIELDS => $xml,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
'Content-Type: application/xml',
'Accept-Language: en',
'Authorization: Bearer ' . getenv('NORMAPI_KEY'),
],
]);
$result = json_decode(curl_exec($ch), true);
curl_close($ch);
if ($result['acceptable']) {
echo "valid — checked as {$result['scenario']}\n";
} else {
foreach ($result['findings'] as $f) {
echo "{$f['severity']} {$f['code']}: {$f['text']}\n";
if ($f['explanation'] !== null) {
echo " Fix: {$f['explanation']['fix']}\n";
}
}
}Generating with horstoeko, Mustang or another free library, and running the KoSIT validator yourself? The KoSIT validator as an API shows the same check in PHP, Java and CI — no Java installation, no Docker.
Specification & Postman
The full OpenAPI 3.1 specification describes every endpoint, every status code and the field structure — ready for code generators, mock servers and import into any API tool.
Rule set & versioning
Every response names the rule set that produced its verdict in rulesetVersion — currently v2026-08-31. The XRechnung rule set updates roughly twice a year; an invoice that is valid today can draw advisories or errors from a newer release.
We email when the rule set changes: subscribe to notifications. What individual rules mean and how to fix them: the error-code reference. To try it without writing code: the validator, and with an account the playground: real calls to create, check and read, without a key, with the call as curl, TypeScript or Python beside them.