E-invoices by API
You send JSON and get back an e-invoice. Before it is returned, every document is checked by the KoSIT validator with the XRechnung configuration; ZUGFeRD/Factur-X PDFs are also checked with Mustang (PDF/A-3 and profile rules). If a document we generate fails validation, it is not returned and you are not charged.
eInvoiceBuddy is a software tool. It builds and technically checks files; it does not transmit them (no Peppol access point, no French plateforme agréée) and does not give tax or legal advice.
Formats
format | Output | Validated against (KoSIT scenario) |
|---|---|---|
xrechnung-ubl | XRechnung 3.0, UBL 2.1 Invoice / CreditNote | EN16931 XRechnung (UBL) |
xrechnung-cii | XRechnung 3.0, UN/CEFACT CII D16B | EN16931 XRechnung (CII) |
facturx | ZUGFeRD 2.5 / Factur-X 1.09, EN 16931 profile, PDF/A-3 | EN16931 (CII) + Mustang |
en16931-cii | Plain EN 16931 CII | EN16931 (CII) |
peppol-bis | Peppol BIS Billing 3.0 | not enabled yet |
Supported cases include standard and zero rates, exemptions (for example small businesses), reverse charge, intra-EU supplies and credit notes. XRechnung Extension and CVD documents are refused up front, free of charge, with 422 unsupported_profile.
Example
curl {API_BASE}/v1/invoices \
-H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
-d '{ "format": "xrechnung-ubl", "invoice": { "number": "RE-2026-0042", "issueDate": "2026-11-21", "currency": "EUR",
"buyerReference": "04011000-1234512345-06", "seller": { … }, "buyer": { … },
"lines": [ { "name": "Maintenance", "quantity": 1, "unitCode": "MON", "netPrice": "1000.00", "vat": { "category": "S", "rate": 19 } } ] } }'
The response contains the document, the computed totals and the validation result. KoSIT warnings and notes are passed through but do not block. Send Accept: application/xml to get the raw XML. The full example is in the documentation.
Errors you can act on
Invalid input is refused before anything is generated, free of charge, and every issue names the field, the EN 16931 business term and the rule:
{ "code": "BR-DE-15", "path": "buyerReference", "bt": "BT-10",
"message": "buyerReference (BT-10) is required for XRechnung; for German public buyers it is the Leitweg-ID" }
Endpoints
| Endpoint | Purpose |
|---|---|
POST /v1/invoices | Generate and validate an invoice |
POST /v1/preflight | Rule check and totals without generating; not metered |
POST /v1/validate | Validate your own XML (synchronous) or ZUGFeRD/Factur-X PDF (as a job); findings by rule ID |
GET /v1/jobs/{id}, GET /v1/jobs/{id}/document | Status and result of asynchronous jobs |
GET /v1/usage | Plan, usage, quota |
GET /v1/formats | Supported formats (no key needed) |
One verdict: every validation result satisfies valid === (errors.length === 0).
Asynchronous jobs: ZUGFeRD/Factur-X and PDF validation answer 202 with a job. Poll the status, or get a signed callback (HMAC-SHA256). It takes seconds when warm; after an idle period the first request can take a few minutes.
Retention: a job's input is deleted as soon as the job finishes, and results after 24 hours. The API does not store invoice content permanently.
Fair billing: a job counts at most once, and only when its result is attributable to your input. Nothing counts while our engine is starting or unavailable.
Try it free: test mode
With a free key you can:
- validate your own e-invoices without limit (
POST /v1/validate,POST /v1/preflight); - generate documents in test mode. They go through the same generation and validation, but are visibly marked "TEST – not a valid invoice". A test document is not an invoice and must not be sent to customers, booked, or presented as an invoice.
Real, valid invoices need a paid plan from €15 a month. Rate limits and daily limits also apply in test mode.
Limits
Quota, requests per minute and daily limits depend on the plan (see pricing). One engine job runs per key at a time. Status codes: 401 bad key, 402 quota used up, 422 invalid input, 429 rate limit, 202 job accepted, 503 capacity guard. Full details in the documentation.
Planned
- WooCommerce plugin (free on wordpress.org): generates the e-invoice when an order completes. Not available yet.
- XRechnung 4.0, once the final version is out (expected in spring 2027, according to KoSIT).