Skip to main content

Machine-Readable Invoice Formats

Learn how to set up ZUGFeRD and XRechnung formats in ZEP and activate them for your customers.

Written by Gideon Weller

ZEP supports structured, machine-readable invoice formats based on the ZUGFeRD, XRechnung and Swiss QR standards. Setup requires several steps – from company data through to activation per customer and project. XRechnung and ZUGFeRD are the common electronic invoice (e-invoice) formats.

Available Formats

  • ZUGFeRD: Hybrid format – the PDF contains an embedded XML file. Recommended for exchange with German and European business customers. Available versions: 1 (outdated), 2.1.1 (outdated), 2.2, 2.3.2 and 2.5.2. Version 2.5.2 is the most recent one and the only one ZEP generates in more than one profile. It is technically equivalent to Factur-X 1.09.2, its French counterpart, and business partners in France know it under that name.

  • XRechnung: Purely XML-based format, mandatory for invoices to public sector clients in Germany. Available versions: current version (recommended) as well as 2.1 (1 Feb 2022), 2.2 (1 Aug 2022), 2.3.1 (1 Aug 2023) and 3.0.1 (1 Feb 2024). All versions of the 3.0 series carry the same identifier in the document. Under the 3.0.1 entry, ZEP therefore produces the current state of that series, even though the label in the selection stays the same.

  • Swiss QR Code and Swiss QR+Swico: Swiss standard for electronic payment instructions.

When you change the format, you do not have to open every customer address individually. The Change machine-readable invoice format mass operation in the customer overview sets it for many customers in one pass.

You select the unit of fixed-price and article items from the list of units, see Units in invoice items.

Note: Invoicing is included in ZEP Operations and ZEP Business.

Step 1 – Enter Company Data

Go to Administration > My Company > Company Data. For ZUGFeRD and XRechnung, ZEP checks these details when the invoice is created:

  • Name

  • Address with Address line 1, ZIP Code, Location and country

  • Tax no. or VAT No.

For complete invoices we also recommend phone, email, commercial register number and court of registration, management and the Global identification number with ID type.

Under Administration > My Company > Bank details, store your company's bank account, which appears on the invoice. ZEP requires at least one bank account.

Note: If departments have their own sender data, ZEP checks these details at the department under Department as company. This applies as soon as the option Use this data for the sender on invoices is active there. For details, see Create and Manage Departments.

My Company > Company data Change settings with address, ZIP, city, country, contact, VAT ID, tax number, business ID number, GLN and SEPA creditor ID

Step 2 – Activate Format per Customer

The machine-readable format is configured per customer address. Open Customer > [Customer Name] > General > Addresses and select the desired format from the Machine-readable invoice format field.

Warning: Once a machine-readable format has been selected, the invoice address can no longer be freely edited during invoice creation. The change is only applied when all mandatory fields are present at the customer: postcode, city, country code and address line 1.

Note: To set the format for several customers at once, mark the customers concerned in the customer overview and choose Change machine-readable invoice format from the Actions menu. That is the way to go when you switch your customer base to a new version. ZEP then changes only the billing address, or the primary billing address, and customers with an incomplete address are skipped. The procedure is described in Customer overview.

Additional Requirements for ZUGFeRD

The embedded XML file carries details about the invoice recipient that ZEP cannot derive from the invoice text. You maintain two of them at the customer before the first ZUGFeRD invoice is created:

  • At the customer under Addresses: select the Country Id 'ZUGFeRD'. The field appears for every ZUGFeRD and XRechnung format and is also required for XRechnung.

  • Under Customer > [Customer Name] > General > Data > Invoice tab: check the customer's VAT ID.

Warning: Once ZUGFeRD is activated for a customer, invoices to that customer are only permitted in ZUGFeRD format.

Choosing the ZUGFeRD Profile

If you have selected ZUGFeRD 2.5.2 for the customer, the ZUGFeRD profile field appears underneath. The profile determines how much detail the embedded XML file carries. The field does not appear for the older ZUGFeRD versions, which know only one scope.

  • Basic: the smallest scope, sufficient for simply structured invoices.

  • EN 16931 (Comfort): the default in ZEP. This profile complies with the European standard EN 16931 and therefore carries the details an e-invoice must provide in Germany.

  • Extended: the largest scope, it takes additional details such as those needed for cross-border transactions.

Tip: If your invoice recipient does not require a particular profile, keep the default EN 16931 (Comfort).

Note: If you switch your customer base to ZUGFeRD 2.5.2 using the Change machine-readable invoice format mass operation in the customer overview, the same field appears there. You therefore choose the profile for all the customers you marked in one pass.

Additional Requirements for XRechnung

XRechnung is aimed at public sector clients. They assign every invoice-receiving department an identifier of its own, which ZEP cannot derive and therefore expects at the customer:

  • Under Customer > [Customer Name] > General > Data > Invoice tab: enter the Buyer reference (BT-10). The buyer reference uniquely identifies the public sector client's invoice recipient department.

Step 3 – XRechnung Fields per Project

Once a machine-readable format is activated for the customer, the XRechnung tab appears in the associated project under Project > [Project Name] > General > Data & Plan. There you can enter optional BT fields at project level:

  • Project reference (BT-11): The buyer's reference to the project.

  • Contract reference (BT-12): Identifier of the underlying contract.

  • Allocation number (BT-17): Reference to the procurement procedure, e.g. for public sector contracts.

  • Object number (BT-18): Object identifier, e.g. a construction project ID.

  • Paymentterms (BT-20): Payment terms as free text.

  • Comment (BT-22): General note text for the invoice.

Project Change data XRechnung tab with fields Project reference BT-11, Contract reference BT-12, Award number BT-17, Object number BT-18 and Note BT-22

Step 4 – File Format

For customers with a machine-readable invoice format, ZEP sets the file format automatically: when you create the invoice, the Invoice file format field shows the format stored for the customer. For all other customers, the file format from Administration > Billing > Settings applies.

Attachments in the E-Invoice

Some invoice recipients require a proof of performance to be included directly in the XML file of the e-invoice. Whether ZEP embeds an attachment there depends on the format:

  • XRechnung: ZEP embeds every PDF file you upload in the Invoice attachment (PDF max. 5 MB) field when creating the invoice into the XML file. The file name serves as the document identifier there (BT-122). If you recreate the invoice, ZEP includes the attachment again.

  • ZUGFeRD: ZEP appends the uploaded file as additional pages to the visible PDF. It is not included in the embedded XML file.

This also applies to the invoice attachment that ZEP generates from the project times: it only appears in the PDF. If a recipient requires the proof of performance in the XML file, switch the customer to XRechnung and upload the proof as a PDF in the Invoice attachment (PDF max. 5 MB) field.

VAT Category for Items Without VAT

An invoice item with 0 % VAT must state in the e-invoice why no tax applies. As soon as you set the tax rate of an invoice item to 0 %, the fields Tax Exemption Reason and VAT category appear for that purpose. The category has three values:

  • Tax-exempt / zero-rated: the service is exempt from VAT or is taxed at zero per cent.

  • Reverse charge (tax liability of the service recipient): the recipient owes the tax, which is usual for customers in other EU countries.

  • Not taxable domestically: the turnover is not subject to German VAT, which is usual for customers outside the EU.

ZEP proposes the category from the Identifier for the country field, which you maintain under Customer > [Customer Name] > General > Data: EU gives reverse charge, Drittland (third country) gives "Not taxable domestically", anything else gives "Tax-exempt / zero-rated". You can change the proposal in every item.

Warning: When the invoice is created, ZEP checks the categories and stops if a rule of the standard is breached. With reverse charge, the VAT ID of the customer and your own VAT ID must both be stored. Items marked Not taxable domestically must not share an invoice with other items, and they require an identifier other than a VAT ID: a supplier number at the customer, or at your own company the global ID, the business identification number or the commercial register number.

Note: These checks apply to every ZUGFeRD version and to XRechnung. If the customer address carries no machine-readable format, ZEP produces no e-invoice and therefore does not check the categories.

Units in invoice items

An e-invoice states the unit of each item as a standardized code, for example HUR for hour. That is why the Unit field of articles and invoice items offers a list in which every unit carries its code.

The field appears for items of the type fixed price and article, including fixed-price partial and final invoices. For items billed by effort, ZEP sets the unit itself, such as hour.

You maintain the list under Administration > Billing > Units. Common units are already set up, including hour, day, week, month, year, piece, lump sum, percent and kilometer. If a unit is missing, create it via New Unit:

  • E-invoice unit: Select the unit from the catalog of standardized units. ZEP pre-fills the names. After saving, the e-invoice unit can no longer be changed.

  • Names: There is one field per language. The invoice shows the name in the language of the invoice item. The English name is mandatory and applies to every language without its own name. You can adjust the names at any time, for example "hrs" instead of "hour". A changed name also applies to items and articles that already use this unit.

A unit that is used in invoice items or articles cannot be deleted.

Note: You can still type in a unit freely. If it matches the code or a name from the list, ZEP selects that unit. Otherwise it remains as a separate entry. If ZEP cannot assign a typed unit to a standardized code, it goes into the e-invoice with the code C62 (one, a unit without further specification). Existing articles and items keep their unit.

Tip: Assign a unit from the list to your articles under Administration > Billing > Articles. If you select an article in an invoice item, ZEP takes over its unit.

Did this answer your question?