> ## Documentation Index
> Fetch the complete documentation index at: https://docs.leadtobill.com/llms.txt
> Use this file to discover all available pages before exploring further.

# E-Invoicing

> Send invoices as ZUGFeRD e-invoices and XRechnung files for public authorities, and see before sending what each invoice will go out as

## Overview

An **e-invoice** is a regular invoice PDF with the same data embedded as
machine-readable XML — the ZUGFeRD format, valid under the EU standard. German
companies must receive their invoices this way from other German companies, and
German public authorities require the stricter **XRechnung** file on top.
LeadToBill produces both as part of sending an invoice: you complete your
workspace's seller data once, tell it per customer what they should receive, and
the invoice dialog shows you before you send whether the invoice will go out as a
plain PDF, an e-invoice, or an XRechnung — and what is still missing if it cannot.

> [card] [Open Workspace profile](https://app.leadtobill.com/settings/profile)
>
> E-invoicing starts with your seller data in the workspace profile.

## Before you start

Invoices are **not available to Timekeepers** — see [Roles](https://docs.leadtobill.com/guides/roles.md).

* **A complete workspace profile.** **Admins only.** An e-invoice needs your legal
  name, full address, IBAN, and a tax identification; XRechnung additionally needs
  a contact person with name, email, and phone. The
  [Workspace profile](https://docs.leadtobill.com/settings/workspace-profile.md) shows **Ready for e-invoicing**
  and **Ready for XRechnung** once this is in place, and its **Guided setup**
  walks you through it.
* **A billing address on each customer**, with country, city, and postal code. For
  customers in another EU country you also need their VAT ID.
* **VAT rates on every line item.** See [VAT rates](https://docs.leadtobill.com/settings/vat-rates.md).

## Steps

**1. Complete your seller data**

**Admins only.** Open [**Workspace profile**](https://app.leadtobill.com/settings/profile)
and select **Guided setup**. The step **Who needs it?** asks who you send
invoices to — **German business customers (B2B)**, **German public authorities
(B2G)**, **Private individuals or other customers** — and explains for each what
it means for you. Fill in **Company identity**, **Tax identification**, **Bank
account & payment**, and, if you invoice authorities, **Contact person**. The
**Review** step lists anything still missing.

Small businesses can switch on **Seller is exempt from VAT**; the page then
explains what that means in your country.

**2. Decide what each customer receives**

Open the customer under [Contacts](https://docs.leadtobill.com/features/contacts.md). The **E-invoice** field
offers:

* **Automatic** — LeadToBill decides per invoice following the German rules:
  a company with a German billing address, invoiced from a German workspace,
  gets **Automatic (ZUGFeRD)**; anyone else gets **Automatic (standard PDF)**.
  Nothing needs reconfiguring when the rules change.
* **Always ZUGFeRD** — this customer always receives an e-invoice, and sending
  is blocked while required data is missing. Use it for business customers
  outside the mandate who want e-invoices, or for a business recorded as a
  person.
* **Public authority (ZUGFeRD + XRechnung)** — for German authorities. Enter
  their **Leitweg-ID / buyer reference**; every invoice additionally produces an
  XRechnung file for the authority's portal.
* **Disabled (standard PDF)** — a regular PDF only. German company customers
  are legally entitled to an e-invoice, so use this only when explicitly agreed.

Below the field, **This customer receives:** states the outcome — **a regular
PDF**, **a hybrid PDF with embedded e-invoice data (ZUGFeRD)**, or **a hybrid PDF
(ZUGFeRD) plus a separate XRechnung file for the portal**. The **?** icons
explain the selected mode and the buyer reference; tap or click them to keep
the text open.

**3. Fix what the customer is missing**

When a customer's data is not enough for the chosen mode, the dialog shows
**E-invoice data is incomplete** with the specific items — a missing billing
address or country, city and postal code, the VAT ID for an EU customer, or
the email address and **Leitweg-ID** an authority needs. Saving is still
possible; the same list appears as a warning after saving.

If the workspace profile itself is incomplete, the dialog says so and links to
the workspace profile.

**4. Check the invoice before you send**

Open a saved draft invoice. Below the customer, the readiness panel reads
**This invoice will go out as an e-invoice — a PDF with the XML embedded.** or
**This invoice will go out as an XRechnung, with a hybrid PDF alongside it.**
when everything is in place.

Otherwise it reads **Sending will be blocked — the e-invoice is missing required
data:** followed by each item. Customer problems come with an **Edit customer
data** button that opens the customer without leaving the invoice; workspace
problems are for an admin to fix in the workspace profile. The panel is
re-checked whenever you save the invoice, its items, or the customer.

The invoice's own e-invoice fields sit in the form: **Payment target (days)**,
linked to the **Due date**; **Service period from** and **to**; and the
**Leitweg-ID / buyer reference**, pre-filled from the customer.

**5. Send the invoice**

**Project responsibles, Controllers and Admins only.** Use **Send** as for any
invoice — see [Invoices](https://docs.leadtobill.com/features/invoices.md). As the
invoice is finalized, LeadToBill produces the hybrid PDF and, for a public
authority, the XRechnung XML. The email attaches the PDF; the XRechnung file is
for the authority's portal and is downloaded from the invoice list with
**Download XRechnung (XML)** in the row menu.

If required data is missing, the send is blocked with **This invoice can't be
sent yet — e-invoicing is required for this workspace and some data is still
missing.** or, for authorities, **… it carries a Leitweg-ID, so it has to be a
valid XRechnung.** Nothing is sent and the invoice stays a draft.

**6. See what went out**

The **Format** column in the invoice list shows how each sent invoice went out:
**PDF**, **ZUGFeRD**, **XRechnung** — an XRechnung invoice shows both badges —
and **QR** for a Swiss [QR-bill](https://docs.leadtobill.com/features/qr-bill.md). Hover over a badge for the
explanation.

**7. Cancel an e-invoice**

**Project responsibles, Controllers and Admins only.** **Cancel invoice** on a
sent invoice opens **Cancel invoice … ?** and explains
that the cancellation invoice (Storno) has to go out in the same form as the
original — **The cancellation will go out as an e-invoice.** or **… as an
XRechnung.** If the workspace profile no longer allows that, the dialog lists
what is missing. **Controllers and Admins only.** They can still choose **Cancel
anyway, without the e-invoice**; everyone else is shown which admin to ask to
complete the workspace profile.

## Good to know

**The rules ship with the app.** **Automatic** applies the German B2B mandate — a
company customer with a German billing address, invoiced from a German workspace.
For a workspace outside Germany, **Automatic** never produces an e-invoice on its
own; use **Always ZUGFeRD** for customers who want one, and **Public authority**
for German authorities, which LeadToBill serves from any seller country.

**XRechnung is German only.** Authorities in other countries use their own
channels, which LeadToBill does not produce yet. For such a customer, **Public
authority (ZUGFeRD)** needs no Leitweg-ID, and the dialog offers **Tell us you
need this country's format**.

**Automatic never treats a person as a business.** A person with a VAT ID gets
a hint suggesting **Always ZUGFeRD** so they receive e-invoices.

**The buyer reference is more than routing.** For any customer it is their own
internal reference — a cost centre or project code — printed on the invoice and
embedded in the e-invoice. Only in **Public authority** mode does it carry the
Leitweg-ID and trigger the XRechnung.

**Payment target drives the due date.** New invoices start from the workspace
default under **Quotes and invoices** in the workspace profile; editing either the
days or the due date updates
the other.

**Cancellations mirror the original.** A Storno goes out as the original did — a
plain PDF stays plain, an e-invoice stays an e-invoice — regardless of the
customer's current setting.

**Missing data never downgrades an invoice.** An invoice that has to go out as an
e-invoice is never sent as a plain PDF instead — sending stays blocked until the
data is complete.

## FAQ

**Do I have to do anything for e-invoicing to work?**
Complete the workspace profile once. Customers in scope of the German mandate then
receive e-invoices automatically; everyone else receives a regular PDF unless you
choose otherwise on the customer.

**Why is sending blocked?**
The invoice is in scope for an e-invoice — by the mandate, by **Always ZUGFeRD**,
or by **Public authority** — and data is missing. The readiness panel in the invoice
lists exactly what; fix the customer from there, or ask an admin for workspace data.

**How do I send an XRechnung to an authority's portal?**
Set the customer to **Public authority (ZUGFeRD + XRechnung)** with their
Leitweg-ID, send the invoice, then use **Download XRechnung (XML)** from the row
menu and upload the file to the portal. The customer's email receives the hybrid
PDF.

**Can I switch e-invoicing off for the workspace?**
No. What each customer receives is decided per customer with the **E-invoice**
field; **Disabled (standard PDF)** turns it off for one customer.

**Why does an old invoice show only PDF?**
The **Format** column records what actually went out at the time. Invoices sent
before e-invoicing was configured stay as they were sent.

**I am a small business without a VAT ID. What do I enter?**
Switch on **Seller is exempt from VAT** in the workspace profile. A tax number and
commercial-register number count as tax identification; a VAT ID, available free of
charge from the Federal Central Tax Office, satisfies every rule.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.