Laden Sie eine XML-Rechnung hoch und prüfen Sie die Regeln vor dem Versand. Wir zeigen ein Ergebnis nur, wenn tatsächlich eine Live-API-Validierung stattgefunden hat. Ist die API nicht erreichbar, erhalten Sie keinen erfundenen "grünen Haken".
Dieses Werkzeug dient der serverseitigen Validierung von XML-Dokumenten. Wir zeigen ein Ergebnis nur, wenn das Validierungsgateway von eFaktúra centrum antwortet; bei einem Ausfall erhalten Sie keine falsche Bestätigung.
Verwenden Sie den öffentlichen Validator für Test- oder anonymisierte XML-Dateien. Produktivdokumente und sensible Daten gehören in den Workspace-/API-Modus mit Audit-Trail, Aufbewahrungsrichtlinie und höheren Limits.
# Validierung einer einzelnen XML-Datei über JSON-Payload curl -X POST https://efakturacentrum.sk/api/validate-file \ -H "Content-Type: application/json" \ -d '{ "filename": "faktura.xml", "content": "<Invoice xmlns=\"urn:oasis:names:specification:ubl:schema:xsd:Invoice-2\">...</Invoice>" }' # Batch-Validierung mehrerer XML-Dateien curl -X POST https://efakturacentrum.sk/api/validate \ -H "Content-Type: application/json" \ -d '{ "files": [ { "filename": "faktura1.xml", "content": "<Invoice>...</Invoice>" }, { "filename": "faktura2.xml", "content": "<Invoice>...</Invoice>" } ] }'
import { readFile } from "node:fs/promises"; const xml = await readFile("faktura.xml", "utf8"); const response = await fetch("https://efakturacentrum.sk/api/validate-file", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ filename: "faktura.xml", content: xml }) }); const result = await response.json(); console.log(result.valid, result.fatal_count, result.issues);
import json from urllib.request import Request, urlopen with open("faktura.xml", "r", encoding="utf-8") as f: xml = f.read() payload = json.dumps({"filename": "faktura.xml", "content": xml}).encode("utf-8") req = Request( "https://efakturacentrum.sk/api/validate-file", data=payload, headers={"Content-Type": "application/json"}, method="POST", ) print(json.loads(urlopen(req, timeout=30).read()))
{
"filename": "faktura.xml",
"valid": false,
"fatal_count": 1,
"warning_count": 0,
"summary": {
"invoice_id": "FV-2026-0001",
"seller_name": "Moja Firma s.r.o.",
"payable_amount": "1240.00",
"currency": "EUR"
},
"issues": [
{
"level": "fatal",
"layer": "EN16931",
"rule_id": "BR-CO-10",
"message": "Súčet riadkov nesedí s LegalMonetaryTotal."
}
]
}