Valifakt API
REST API v1 is available to Pro and Office subscribers. Use it to wire e-invoice conversion and validation into an ERP, accounting system or script. Base URL: https://valifakt.com/api/v1.
Get an API key (Office, 1,000/month) Choose Pro (100/month) Download the OpenAPI spec
Pricing (existing plans)
The key (prefix vf_) arrives by e-mail after Paddle checkout. The API and the website share one monthly quota. Cancel any month; prices include VAT.
| Plan | Price | Conversions / month | Rate limit |
|---|---|---|---|
| Free | €0 | 3 (website only, no key) | 10 anonymous requests/minute on /api/convert and /api/demo |
| Pro | €12 / month (€120 / year) | 100 successful conversions | 10 requests/minute per key |
| Office | €49 / month (€490 / year) | 1,000 successful conversions, validation with no monthly limit | 30 requests/minute per key |
A higher volume plan (api, 100,000 conversions/calendar month, 60 requests/minute) is available on request at hello@valifakt.com, not as a self-serve checkout price.
OpenAPI
Machine-readable description (OpenAPI 3): /api/v1/openapi.json – import it into Postman, Insomnia or a code generator.
Authentication and limits
Header Authorization: Bearer vf_…. Call the API from your server, never from a browser. Only a conversion that ends status: valid counts towards the monthly quota; /validate, errors and needs_input do not. Responses from /convert and /validate carry X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset; HTTP 429 adds Retry-After.
The full endpoint and error table is in the REST API v1 reference. The older X-API-Key endpoints (/api/convert, /api/validate, /api/quota) still work and share the same quota.
Examples
curl
curl -sS -X POST https://valifakt.com/api/v1/convert \
-H "Authorization: Bearer $VALIFAKT_API_KEY" \
-F "country=de" \
-F "format=xrechnung-ubl" \
-F "file=@invoice.pdf;type=application/pdf"
# download the XML from files.xml in the response
curl -sS -o invoice.xml -H "Authorization: Bearer $VALIFAKT_API_KEY" \
https://valifakt.com/api/v1/jobs/JOB_ID/xml
curl -sS -X POST https://valifakt.com/api/v1/validate \
-H "Authorization: Bearer $VALIFAKT_API_KEY" \
-F "file=@xrechnung.xml;type=application/xml"Python
import json, os, requests
API = "https://valifakt.com/api/v1"
H = {"Authorization": f"Bearer {os.environ['VALIFAKT_API_KEY']}"}
with open("invoice.pdf", "rb") as f:
r = requests.post(f"{API}/convert", headers=H, timeout=120,
data={"country": "de", "format": "xrechnung-ubl"},
files={"file": ("invoice.pdf", f, "application/pdf")})
if r.status_code != 200:
err = r.json()["error"]
raise SystemExit(f"{r.status_code} {err['code']}: {err['message']}")
job = r.json()
if job["status"] == "valid":
xml = requests.get(job["files"]["xml"], headers=H, timeout=60)
open("invoice.xml", "wb").write(xml.content)
elif job["status"] == "needs_input":
print("fill in and send again as patch:", [m["field"] for m in job["missing"]])
# e.g. data["patch"] = json.dumps({"buyer_reference": "04011000-1234512345-06"})
print(job["quota"])JavaScript (Node 18+)
// Node.js 18+ (built-in fetch, FormData, Blob)
import { readFile, writeFile } from "node:fs/promises";
const API = "https://valifakt.com/api/v1";
const headers = { Authorization: `Bearer ${process.env.VALIFAKT_API_KEY}` };
const form = new FormData();
form.append("country", "de");
form.append("format", "xrechnung-ubl");
form.append("file", new Blob([await readFile("invoice.pdf")], { type: "application/pdf" }), "invoice.pdf");
const res = await fetch(`${API}/convert`, { method: "POST", headers, body: form });
const body = await res.json();
if (!res.ok) throw new Error(`${res.status} ${body.error.code}: ${body.error.message}`);
if (body.status === "valid") {
const xml = await fetch(body.files.xml, { headers });
await writeFile("invoice.xml", Buffer.from(await xml.arrayBuffer()));
} else {
console.log(body.status, body.missing.map((m) => m.field));
}
console.log(body.quota, res.headers.get("x-ratelimit-remaining"));Open-source client (Python)
MIT licence, no third-party runtime dependencies, Python 3.10+. The client talks only to documented endpoints. Not on PyPI yet; install from the source archive:
python3 -m pip install https://valifakt.com/assets/valifakt-python-client-0.1.0.zipDownload the Python client (zip)
from valifakt import Client
c = Client(api_key="vf_...") # or VALIFAKT_API_KEY
print(c.health())
report = c.validate("invoice.xml")
result = c.convert("invoice.pdf", country="de", format="xrechnung-ubl")
if result["status"] == "valid":
c.download(result["job"], "xml", "invoice.xml")The bundled client uses the stable /api/convert and /api/validate endpoints with the X-API-Key header. The same keys work on REST API v1 with Authorization: Bearer.
Open source: command line and GitHub Action
MIT-licensed and public on GitHub. valifakt-cli checks XRechnung, ZUGFeRD, Peppol BIS and KSeF FA(3) locally (offline) and through the API, converts with your key and emits CI annotations.
pip install "valifakt-cli[offline] @ git+https://github.com/saoudaltamimi/valifakt-cli@v0.1.2"
valifakt validate invoices/*.xmlThe GitHub Action validate-einvoice validates e-invoices in every pull request.
- uses: saoudaltamimi/validate-einvoice@v1
with:
files: invoices/**/*.xmlvalifakt-cli (GitHub) validate-einvoice (GitHub Action)
FAQ
How do I get a key?
Subscribe to Pro (€12/month, 100 successful conversions) or Office (€49/month, 1,000) on the pricing page. Payment is via Paddle. After payment, an API key starting with vf_ is issued and sent by e-mail. Higher volume (the api plan, 100,000 conversions per calendar month) is on request, not a self-serve checkout price.
Does validation use up my conversion quota?
No. POST /api/v1/validate does not increment the monthly counter. The counter increases only when a conversion ends with status valid.
Is there a machine-readable description?
Yes. OpenAPI 3 is at https://valifakt.com/api/v1/openapi.json. There is no Swagger UI on the site (the Content-Security-Policy blocks its CDN scripts).
Facts as of 30.11.2026. This is not tax or legal advice.