Skip to main content
The e-invoice add-on turns an invoice automation into one that also creates a valid e-invoice. You choose one of two formats:
  • ZUGFeRD: a PDF/A-3 file with the e-invoice data (EN 16931 profile) embedded. People read the PDF; accounting software reads the data inside it.
  • XRechnung: an XML file (XRechnung 3.0) next to your PDF. Public-sector buyers in Germany usually ask for this format.
Every e-invoice is checked with the official validators (KoSIT for XRechnung, Mustang and veraPDF for ZUGFeRD) before it is delivered. A file that fails the check is never sent; the run stops with a message that names the field to fix.
DocsAutomator creates a valid e-invoice format from your data. It does not check your tax treatment and does not give tax advice. Ask your tax advisor which VAT treatment and format apply to you.

Turn on the add-on

  1. Open Settings, then Add-ons.
  2. Switch on E-invoice (ZUGFeRD / XRechnung). Only owners and admins can do this.
  3. Click Settings next to the add-on and enter your seller details.
The add-on is off until you switch it on. Automations without an e-invoice do not change.

Seller details

You enter the seller details once. Every e-invoice automation uses them, unless you give one automation a different seller (see Seller for one automation). The Swiss QR-bill has its own seller details.

Set up an automation

Open an invoice automation and find its E-invoice section. Switch on Create an e-invoice, then fill in the parts below. Most fields suggest a match from your data by name.

Format

  • Format: ZUGFeRD or XRechnung.
  • Document type: Invoice or Credit note. A credit note can also carry the original invoice number.
  • VAT treatment: one of the treatments below.

Document type and VAT treatment per record

When your invoices and credit notes, or your VAT treatments, come from the same automation, each record can decide them:
  1. Under Document type or VAT treatment, click Read it from the record instead.
  2. Pick the field of your data source that holds the value.
Format card with Document type from the record mapped to doc_type and VAT treatment from the record mapped to treatment
The field can hold the plain names a person types, or the codes: Upper and lower case and spaces do not matter. When the field is empty in a record, the choice in the select applies. Any other value, also a number such as 19, stops the run with a message that names the field and lists the values above, for example Document type "Angebot" in the field "Belegart" is not a valid choice.

Seller for one automation

When one workspace invoices for several companies, an automation can use a different seller. Open Use a different seller for this automation in the automation’s Seller card. It lists every seller field.
Seller card with the seller details from Settings and the closed section Use a different seller for this automation
Each field takes a fixed text, or a field of your data source, so each record can name its own company. Which fields come from Settings depends on the legal name:
  • With a legal name: the automation uses another company. Nothing comes from Settings, so the invoice never mixes your company’s details, such as your IBAN, with the other company’s. Fill in every field this company needs. An empty required field stops the run, for example with “Seller IBAN is empty for this automation’s seller.”
  • Without a legal name: the automation keeps your company and changes single fields only, for example another city or another bank account. Empty fields use the value from Settings, and they follow when you change Settings later.
When a field is picked from your data and is empty in a record, the run stops with “Seller name is empty in the mapped field.” (with that field’s name). It does not fall back to the seller in Settings, so an invoice never goes out under the wrong company. Automations that do not use a different seller work as before.
Open section Use a different seller for this automation with the legal name Lumen GmbH: nothing comes from Settings, and the empty required fields are marked Required

Invoice and buyer fields

Map each field to a field of your data source, or enter a fixed text (for example a fixed buyer country “DE” or fixed payment terms). Leitweg-ID: public-sector buyers in Germany give you a Leitweg-ID (for example 991-12345-67). Map it to Leitweg-ID or buyer reference. For other buyers of an XRechnung, use the reference they give you.

Line items

Pick where the lines come from: a linked table or relation (Airtable, Notion, SmartSuite), the subtasks or a relationship field (ClickUp), another sheet (Google Sheets), or the line_items_1 list of each request (API and the other request-based sources). A Google Forms response has no line items, so the response itself is one line. A discount line can have a negative price; the e-invoice turns “1 × -10.00” into “-1 × 10.00”, the same amount.

Totals

Map the Gross total field that your document prints. Net total and VAT total are optional. DocsAutomator recalculates every total from the lines: each line is quantity × net price, VAT is calculated per VAT rate on the total of those lines, and the gross total is net plus VAT. The run stops when a mapped total differs from the recalculated one by more than 1 cent. Within 1 cent, the e-invoice carries the amount your document prints, so the PDF and the e-invoice show the same numbers.
Spreadsheets and databases often calculate VAT per line and round each line. On many lines this can drift by more than 1 cent. Calculate VAT once per rate on the summed line totals, as the e-invoice does.

Discount on the whole invoice

A discount on the whole invoice, for example a 10 % loyalty discount, has its own card. A discount on one line stays a line with a negative price.
  1. Open Optional fields in the Discount card.
  2. Map Discount amount to the field with the discount in euros, or Discount percent to the field with the percent of the line total.
  3. Optional: map Discount reason, for example a field that holds “Treuerabatt”. When it is empty, the e-invoice says “Rabatt”.
  4. When your lines have more than one VAT rate, set Discount VAT rate to the rate the discount reduces, for example a fixed 19.
Discount card with Discount amount, Discount percent and Discount reason mapped to request keys and a fixed Discount VAT rate of 19
  • Empty means no discount. A record without a discount amount or percent, or with 0, gets an e-invoice without a discount.
  • Percent: the number counts as written, in percent. 10 and 10 % mean 10 %, and 0,5 and 0.5 mean 0.5 %. An Airtable percent field that shows 10 % also means 10 %. A number field below 1, such as 0.5, counts as a fraction (50 %), so for half a percent use a percent field or type 0,5 %. The amount is rounded to the cent.
  • Discount VAT rate: the number counts as written, in percent, like the discount percent. 19 and 19 % mean 19 %, and 0,5 and 0.5 mean 0.5 %. An Airtable percent field that shows 19 % also means 19 %, and a number field below 1, such as 0.19, counts as a fraction (19 %).
  • Amount and percent both mapped: the amount counts, so a rounded percent on your document never stops a run.
  • VAT rate: with one VAT rate on the lines, the discount takes that rate. With reverse charge, intra-EU supplies and small businesses, the discount carries no VAT, like the lines.
  • Credit notes: a discount stored as a negative number works too; the e-invoice shows it as a positive discount.
  • Totals: map Gross total to the total after the discount. The e-invoice recalculates the VAT per rate after the discount and checks the gross total within 1 cent. Net total can be the total before or after the discount.

Final invoices

A final invoice (Schlussrechnung) lists all the work and then deducts the partial invoices the buyer has already paid (Abschlagsrechnungen). Map Amount already paid in the Invoice card to the field that holds the paid amount.
Invoice card with Amount already paid mapped to the request key paid
  • Map Gross total to the full gross total of all lines, as before, not to the amount still to pay.
  • The e-invoice carries the amount already paid, and the amount due is the gross total minus the amount already paid.
  • When the amount already paid equals the gross total, the amount due is 0.
  • The run stops when the amount already paid is negative (“Amount already paid cannot be negative.”) or larger than the gross total (“Amount already paid cannot be larger than the gross total.”).
List the numbers of the paid partial invoices in the Note field. A retention (Sicherheitseinbehalt) is not a payment, so it does not go into the amount already paid. Write it in the Note field, for example “Sicherheitseinbehalt 5 % (595,00 EUR) bis zur Abnahme.”

Values DocsAutomator reads

  • Amounts: euros only. German and English notation both work (1.234,56, 1,234.56, 1.234,56 €). An amount with another currency sign, such as $4,887.50, stops the run with “is not in euros”.
  • Dates: 2026-10-31, 31.10.2026 and written dates such as 31. Oktober 2026 or October 31, 2026. A date that can be read two ways, such as 03/04/2026, stops the run.
  • Linked records: a buyer field mapped to a linked customer (Airtable linked record, Notion relation, SmartSuite linked record) uses the customer’s name.

Test document

The Test document card in the E-invoice section creates a test document from your data and shows every problem it finds, field by field, next to the preview. Fix them and create another test document until the card shows no problems. Test documents are free and do not count against your plan. Their e-invoice is valid, but it is marked as a test: the invoice number starts with TEST- and a note says “Testdokument, keine Rechnung. Test document, not an invoice.”

Where the files go

ZUGFeRD: the PDF is the e-invoice. It goes wherever your automation sends the PDF: the data source field, Google Drive, email and the API response. XRechnung: the PDF goes where it always goes, and the XML file goes to the places below. With every data source, the XML is also saved next to the PDF in your Google Drive folder and attached to the automation’s email, when the automation uses them. OneDrive and Dropbox receive only the PDF for now.

Settings that do not combine with an e-invoice

  • Signing and acceptance: an e-invoice cannot be signed. Turn off signing for the automation first.
  • Merge PDFs: a ZUGFeRD PDF cannot include merged PDFs. Turn off Merge PDFs, or choose XRechnung.
  • PDF templates and fonts: a ZUGFeRD PDF needs every font embedded. If your PDF template uses fonts that are not embedded, embed them in the template, or choose XRechnung.

Common messages and fixes

Archiving

Keep every e-invoice for 8 years in its original file.

E-invoices from the API and AI clients

Last modified on November 21, 2026