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

# Germany issuing invoices guide

> Issue XRechnung and ZUGFeRD invoices in Germany, and send them by email or through Peppol.

## Introduction

Germany requires electronic invoicing for different business scenarios, with two main standards: **XRechnung** and **ZUGFeRD**. Both are semantic data models aligned with the European Norm `EN 16931` and can be implemented using the same syntaxes.

### XRechnung

**XRechnung** is Germany's official standard for electronic invoices in public procurement (called *E-Rechnungen*), though it is also used for B2B transactions. It's part of the implementation of the EU directive `2014/55/EU`, which requires all contracting authorities in the EU to accept electronic invoices in a structured XML format.

XRechnung can be implemented using two different syntaxes:

* **UN/CEFACT CII** (Cross Industry Invoice)
* **OASIS UBL** (Universal Business Language)

Both syntaxes contain the same information but have different field names.

### ZUGFeRD

**ZUGFeRD** is a German standard for electronic invoicing designed to bridge the gap between traditional invoices and digital formats. ZUGFeRD combines a standard PDF/A-3 invoice with an embedded XML file containing the structured data. This hybrid approach makes it especially popular in B2B transactions, as it allows both people and accounting software to work with the same document.

ZUGFeRD is fully aligned with the European Norm `EN 16931` and it is worth noting that ZUGFeRD and [Factur-X](https://docs.invopop.com/guides/fr-pa-invoicing.md#invoice-formats) are a joint project between Germany and France, and their content is identical.

> [!TIP]
>
> When referring to syntaxes, it is important to note that XRechnung, ZUGFeRD, and Factur-X are all *semantic data models*. What this means is that they define the data that must be present in the invoice, but not the actual format of the data or the explicit name of the fields.
>
> To implement the semantic models, there are two syntaxes approved by the EU: UN/CEFACT Cross Industry Invoice ([CII](https://unece.org/trade/documents/2023/10/executive-guide-einvoicing-cross-industry-invoice)) and OASIS Universal Business Language ([UBL](https://docs.OASIS-open.org/ubl/UBL-2.1.html)).

### Channels

Germany has no central platform. Businesses send e-invoices to each other directly, by [email](https://docs.invopop.com/guides/email.md) or through the [Peppol](https://docs.invopop.com/apps/peppol.md) network.

The **Germany send invoice** workflow chooses the channel for each invoice. It sends the XRechnung through Peppol when the invoice has the customer's Peppol ID, and the customer accepts XRechnung there. Otherwise, it sends the XRechnung XML to the customer's email address. For customers that want a PDF, the **ZUGFeRD email invoice** workflow sends a ZUGFeRD PDF by email.

Register the supplier first, on both channels. See the companion guide: [Germany supplier registration guide](https://docs.invopop.com/guides/de-registration.md). For receiving invoices, see [Germany receiving invoices guide](https://docs.invopop.com/guides/de-receiving.md).

## Prerequisites

* A registered supplier. Follow the [Germany supplier registration guide](https://docs.invopop.com/guides/de-registration.md) first.
* The customer's Peppol ID on the invoice, to send through Peppol.
* To send by email, the customer's email address twice: in `emails`, where the **Send email** step reads it, and as an email inbox (`{"email": "..."}` in `inboxes`). XRechnung requires an electronic address for the customer.

## Setup

All of the following steps must be carried out from the [Invopop Console](https://console.invopop.com).

**1. Connect the apps**

1. Navigate to **Configuration** → **Apps**.
2. Find **Email** and **OASIS UBL** in the app discovery list, and click **Connect** on each. The **Germany send invoice** workflow converts the invoice with the OASIS UBL app.
3. Check that the **Germany** and **Peppol** apps are connected. The [supplier registration guide](https://docs.invopop.com/guides/de-registration.md) connects them.

**2. Configure the invoice workflow**

> [card] [Germany send invoice workflow](https://console.invopop.com/redirect/workflows/new?template=de-send)
>
> Add to my workspace →

> [tab] Workflow

> [tab] Code
>
> Copy and paste into a new [Empty Invoice workflow](https://console.invopop.com/redirect/workflows/new?template=empty-invoice) code view.
>
> ```json Germany send invoice workflow theme={"system"}
> {
>     "name": "Germany send invoice",
>     "description": "Send an XRechnung invoice through Peppol, or by email when the customer is not on Peppol",
>     "schema": "bill/invoice",
>     "steps": [
>         {
>             "id": "dc92ffff-e373-11f1-901e-42010a0a0006",
>             "name": "Set state",
>             "provider": "silo.state",
>             "summary": "Set state to `processing`{.state .processing}",
>             "config": {
>                 "state": "processing"
>             }
>         },
>         {
>             "id": "dc9300cb-e373-11f1-807a-42010a0a0006",
>             "name": "Modify silo entry",
>             "provider": "silo.modify",
>             "summary": "Add `de-xrechnung-v3` addon",
>             "config": {
>                 "addons": [
>                     "de-xrechnung-v3"
>                 ],
>                 "sign": false
>             }
>         },
>         {
>             "id": "dc8e9333-e373-11f1-b699-42010a0a0006",
>             "name": "Sign envelope",
>             "provider": "silo.sign"
>         },
>         {
>             "id": "dc9301ae-e373-11f1-85c6-42010a0a0006",
>             "name": "Generate UBL document",
>             "provider": "ubl.generate",
>             "summary": "XRechnung UBL 3",
>             "config": {
>                 "doc_type": "xrechnung-invoice-v2",
>                 "private": false,
>                 "validate_ubl": true
>             }
>         },
>         {
>             "id": "dc930203-e373-11f1-a61e-42010a0a0006",
>             "name": "Verify document can be sent",
>             "provider": "peppol.validate.endpoint",
>             "notes": "Sends through Peppol when the customer's Peppol ID is on the invoice and accepts XRechnung, or else by email",
>             "next": [
>                 {
>                     "code": "true",
>                     "steps": [
>                         {
>                             "id": "dc930245-e373-11f1-80c8-42010a0a0006",
>                             "name": "Send Peppol document",
>                             "provider": "peppol.send"
>                         }
>                     ]
>                 },
>                 {
>                     "code": "false",
>                     "steps": [
>                         {
>                             "id": "dc93028d-e373-11f1-be08-42010a0a0006",
>                             "name": "Send email",
>                             "provider": "email.send",
>                             "summary": "To invoice customers",
>                             "config": {
>                                 "add_invoice_customer": true,
>                                 "attach": "xml",
>                                 "connection_id": "default"
>                             }
>                         }
>                     ]
>                 }
>             ]
>         },
>         {
>             "id": "dc9302db-e373-11f1-be39-42010a0a0006",
>             "name": "Set state",
>             "provider": "silo.state",
>             "summary": "Set state to `sent`{.state .sent}",
>             "config": {
>                 "state": "sent"
>             }
>         }
>     ],
>     "rescue": [
>         {
>             "id": "dc930319-e373-11f1-9458-42010a0a0006",
>             "name": "Set state",
>             "provider": "silo.state",
>             "summary": "Set state to `error`{.state .error}",
>             "config": {
>                 "state": "error"
>             }
>         }
>     ]
> }
> ```

The workflow runs these steps:

1. **Modify silo entry** adds the `de-xrechnung-v3` addon to the invoice.
2. **Generate UBL document** converts the invoice to XRechnung in the UBL syntax, and validates it.
3. **Verify document can be sent** checks the customer's Peppol ID on the invoice: it must be on Peppol and accept XRechnung there. If it does, **Send Peppol document** sends the XRechnung through Peppol. If not, or if the invoice has no Peppol ID for the customer, **Send email** sends the XML to the customer's email address.

> [!NOTE]
>
> For a public authority, the customer's Peppol ID uses scheme `0204`, and the invoice's ordering code holds the authority's Leitweg-ID. The authority gives you both values. They can be the same, but they can also differ.

To always send by email, use the [XRechnung email invoice workflow](https://console.invopop.com/redirect/workflows/new?template=de-xrechnung) instead.

**3. Configure the ZUGFeRD workflow**

> [!NOTE]
>
> You can skip this step if your customers don't want ZUGFeRD PDFs.

> [card] [ZUGFeRD email invoice workflow](https://console.invopop.com/redirect/workflows/new?template=de-zugferd)
>
> Add to my workspace →

> [tab] Workflow

> [tab] Code
>
> Copy and paste into a new [Empty Invoice workflow](https://console.invopop.com/redirect/workflows/new?template=empty-invoice) code view.
>
> ```json ZUGFeRD email invoice workflow theme={"system"}
> {
>     "name": "ZUGFeRD email invoice",
>     "description": "Issue a ZUGFeRD PDF invoice and send it by email",
>     "schema": "bill/invoice",
>     "steps": [
>         {
>             "id": "bd7eb640-abd0-11ef-a013-91c68ca9f44b",
>             "name": "Set state",
>             "provider": "silo.state",
>             "summary": "Set state to `processing`{.state .processing}",
>             "config": {
>                 "state": "processing"
>             }
>         },
>         {
>             "id": "58fb4ce0-6626-11f0-b9ab-1bbe1fa4398c",
>             "name": "Sign envelope",
>             "provider": "silo.sign"
>         },
>         {
>             "id": "56bda1e0-8ef7-11f0-aa0e-dd7c69b95f3c",
>             "name": "Generate PDF",
>             "provider": "pdf",
>             "summary": "German · A4",
>             "config": {
>                 "logo_height": 40,
>                 "locale": "de",
>                 "date_format": "%Y-%m-%d",
>                 "layout": "A4",
>                 "scripting": false
>             }
>         },
>         {
>             "id": "3548d720-6623-11f0-b3db-e7255a5da07c",
>             "name": "Export document",
>             "provider": "silo.export",
>             "summary": "Export to CII ZUGFeRD EN 16931",
>             "config": {
>                 "formats": [
>                     "cii+de-zugferd-v2"
>                 ]
>             }
>         },
>         {
>             "id": "8e665990-81a3-11f0-82cb-9160968ac068",
>             "name": "Embed XML into PDF",
>             "provider": "gov-de.pdf.embed"
>         },
>         {
>             "id": "40cbf807-e2b9-11f1-b3e0-92000948fe40",
>             "name": "Send email",
>             "provider": "email.send",
>             "summary": "To invoice customers",
>             "config": {
>                 "add_invoice_customer": true,
>                 "attach": "pdf",
>                 "connection_id": "default"
>             }
>         },
>         {
>             "id": "c6192a60-abd0-11ef-a013-91c68ca9f44b",
>             "name": "Set state",
>             "provider": "silo.state",
>             "summary": "Set state to `sent`{.state .sent}",
>             "config": {
>                 "state": "sent"
>             }
>         }
>     ],
>     "rescue": [
>         {
>             "id": "c94982c0-abd0-11ef-a013-91c68ca9f44b",
>             "name": "Set state",
>             "provider": "silo.state",
>             "summary": "Set state to `error`{.state .error}",
>             "config": {
>                 "state": "error"
>             },
>             "next": []
>         }
>     ]
> }
> ```

The workflow generates the PDF, exports the ZUGFeRD XML and embeds it into the PDF with the **Embed XML into PDF** step. The **Send email** step sends the PDF to the email address of the invoice's customer. The **Export document** step also offers the ZUGFeRD BASIC and EXTENDED profiles. The invoice must carry the [`de-zugferd-v2`](https://docs.gobl.org/addons/de-zugferd-v2) addon.

## Running

> [!NOTE]
>
> The recommended approach for running jobs is to perform two steps: first upload the document to the [silo](https://docs.invopop.com/api-ref/silo/entries/create-an-entry-put.md), then [create a job](https://docs.invopop.com/api-ref/transform/jobs/create-a-job-post.md).

Invopop uses the [GOBL](https://gobl.org) library to process conversions. GOBL's implementation validates [national business rules](https://www.xoev.de/sixcms/media.php/13/XRechnung-EnglishSummary-v220-final.pdf) in addition to the rules defined in `EN 16931-1`.

Set the `regime` field to `DE` in your invoices. We also recommend using the [GOBL Builder](https://build.gobl.org) to create your own invoices.

## Example invoices

> [accordion] XRechnung B2G invoice
>
> An invoice to a public authority. The [`de-xrechnung-v3`](https://docs.gobl.org/addons/de-xrechnung-v3) addon applies the XRechnung rules, and `ordering.code` carries the authority's Leitweg-ID as the buyer reference. In this example, the Leitweg-ID and the Peppol ID have the same value. For some authorities they differ.
>
> ```json XRechnung B2G Invoice theme={"system"}
> {
>     "$schema": "https://gobl.org/draft-0/bill/invoice",
>     "$regime": "DE",
>     "$addons": [
>         "eu-en16931-v2017",
>         "de-xrechnung-v3"
>     ],
>     "type": "standard",
>     "series": "SAMPLE",
>     "code": "001",
>     "issue_date": "2022-02-01",
>     "currency": "EUR",
>     "supplier": {
>         "name": "Rheinland Technologies GmbH",
>         "tax_id": {
>             "country": "DE",
>             "code": "879558966"
>         },
>         "inboxes": [
>             {
>                 "key": "peppol",
>                 "scheme": "0246",
>                 "code": "DE879558966"
>             }
>         ],
>         "addresses": [
>             {
>                 "num": "27",
>                 "street": "Friedrichstraße",
>                 "locality": "Berlin",
>                 "region": "BE",
>                 "code": "10117",
>                 "country": "DE"
>             }
>         ],
>         "people": [
>             {
>                 "name": {
>                     "given": "John",
>                     "surname": "Doe"
>                 }
>             }  
>         ],
>         "telephones": [
>             {
>                 "num": "+49100200300"
>             }
>         ],
>         "emails": [
>             {
>                 "addr": "billing@example.com"
>             }
>         ]
>     },
>     "customer": {
>         "name": "Deutsche Bahn",
>         "tax_id": {
>             "country": "DE",
>             "code": "811569869"
>         },
>         "inboxes": [
>             {
>                 "key": "peppol",
>                 "scheme": "0204",
>                 "code": "992-90009-96"
>             }
>         ],
>         "addresses": [
>             {
>                 "num": "15",
>                 "street": "Marienplatz",
>                 "locality": "München",
>                 "region": "BY",
>                 "code": "80331",
>                 "country": "DE"
>             }
>         ],
>         "emails": [
>             {
>                 "addr": "test@example.com"
>             }
>         ]
>     },
>     "lines": [
>         {
>             "quantity": "20",
>             "item": {
>                 "name": "Development services",
>                 "price": "90.00",
>                 "unit": "h"
>             },
>             "sum": "1800.00",
>             "discounts": [
>                 {
>                     "reason": "Special discount",
>                     "percent": "10%",
>                     "amount": "180.00"
>                 }
>             ],
>             "taxes": [
>                 {
>                     "cat": "VAT",
>                     "rate": "general"
>                 }
>             ],
>             "total": "1620.00"
>         }
>     ],
>     "ordering": {
>         "code": "992-90009-96"
>     },
>     "payment": {
>         "terms": {
>             "notes": "Will be paid by 2026-06-02"
>         },
>         "instructions": {
>             "key": "credit-transfer+sepa",
>             "credit_transfer": [
>                 {
>                     "iban": "DE89370400440532013000",
>                     "name": "Random Bank Co."
>                 }
>             ]
>         }
>     }
> }
> ```
>
> ```json Built version theme={"system"}
> {
> 	"$schema": "https://gobl.org/draft-0/bill/invoice",
> 	"$regime": "DE",
> 	"$addons": [
> 		"eu-en16931-v2017",
> 		"de-xrechnung-v3"
> 	],
> 	"type": "standard",
> 	"series": "SAMPLE",
> 	"code": "001",
> 	"issue_date": "2022-02-01",
> 	"currency": "EUR",
> 	"tax": {
> 		"ext": {
> 			"untdid-document-type": "380"
> 		}
> 	},
> 	"supplier": {
> 		"name": "Rheinland Technologies GmbH",
> 		"tax_id": {
> 			"country": "DE",
> 			"code": "879558966"
> 		},
> 		"people": [
> 			{
> 				"name": {
> 					"given": "John",
> 					"surname": "Doe"
> 				}
> 			}
> 		],
> 		"endpoints": [
> 			{
> 				"uri": "iso6523-actorid-upis::0246:DE879558966"
> 			}
> 		],
> 		"inboxes": [
> 			{
> 				"key": "peppol",
> 				"scheme": "0246",
> 				"code": "DE879558966"
> 			}
> 		],
> 		"addresses": [
> 			{
> 				"num": "27",
> 				"street": "Friedrichstraße",
> 				"locality": "Berlin",
> 				"region": "BE",
> 				"code": "10117",
> 				"country": "DE"
> 			}
> 		],
> 		"emails": [
> 			{
> 				"addr": "billing@example.com"
> 			}
> 		],
> 		"telephones": [
> 			{
> 				"num": "+49100200300"
> 			}
> 		]
> 	},
> 	"customer": {
> 		"name": "Deutsche Bahn",
> 		"tax_id": {
> 			"country": "DE",
> 			"code": "811569869"
> 		},
> 		"endpoints": [
> 			{
> 				"uri": "iso6523-actorid-upis::0204:992-90009-96"
> 			}
> 		],
> 		"inboxes": [
> 			{
> 				"key": "peppol",
> 				"scheme": "0204",
> 				"code": "992-90009-96"
> 			}
> 		],
> 		"addresses": [
> 			{
> 				"num": "15",
> 				"street": "Marienplatz",
> 				"locality": "München",
> 				"region": "BY",
> 				"code": "80331",
> 				"country": "DE"
> 			}
> 		],
> 		"emails": [
> 			{
> 				"addr": "test@example.com"
> 			}
> 		]
> 	},
> 	"lines": [
> 		{
> 			"i": 1,
> 			"quantity": "20",
> 			"item": {
> 				"name": "Development services",
> 				"price": "90.00",
> 				"unit": "h"
> 			},
> 			"sum": "1800.00",
> 			"discounts": [
> 				{
> 					"reason": "Special discount",
> 					"percent": "10%",
> 					"amount": "180.00"
> 				}
> 			],
> 			"taxes": [
> 				{
> 					"cat": "VAT",
> 					"key": "standard",
> 					"rate": "general",
> 					"percent": "19%",
> 					"ext": {
> 						"untdid-tax-category": "S"
> 					}
> 				}
> 			],
> 			"total": "1620.00"
> 		}
> 	],
> 	"ordering": {
> 		"code": "992-90009-96"
> 	},
> 	"payment": {
> 		"terms": {
> 			"notes": "Will be paid by 2026-06-02"
> 		},
> 		"instructions": {
> 			"key": "credit-transfer+sepa",
> 			"credit_transfer": [
> 				{
> 					"iban": "DE89370400440532013000",
> 					"name": "Random Bank Co."
> 				}
> 			],
> 			"ext": {
> 				"untdid-payment-means": "58"
> 			}
> 		}
> 	},
> 	"totals": {
> 		"sum": "1620.00",
> 		"total": "1620.00",
> 		"taxes": {
> 			"categories": [
> 				{
> 					"code": "VAT",
> 					"rates": [
> 						{
> 							"key": "standard",
> 							"ext": {
> 								"untdid-tax-category": "S"
> 							},
> 							"base": "1620.00",
> 							"percent": "19%",
> 							"amount": "307.80"
> 						}
> 					],
> 					"amount": "307.80"
> 				}
> 			],
> 			"sum": "307.80"
> 		},
> 		"tax": "307.80",
> 		"total_with_tax": "1927.80",
> 		"payable": "1927.80"
> 	}
> }
> ```

> [accordion] XRechnung B2B invoice
>
> An XRechnung invoice to a business customer, with the [`de-xrechnung-v3`](https://docs.gobl.org/addons/de-xrechnung-v3) addon.
>
> ```json XRechnung B2B Invoice theme={"system"}
> {
>     "$schema": "https://gobl.org/draft-0/bill/invoice",
>     "$regime": "DE",
>     "$addons": [
>         "eu-en16931-v2017",
>         "de-xrechnung-v3"
>     ],
>     "type": "standard",
>     "series": "SAMPLE",
>     "code": "001",
>     "issue_date": "2022-02-01",
>     "currency": "EUR",
>     "supplier": {
>         "name": "Rheinland Technologies GmbH",
>         "tax_id": {
>             "country": "DE",
>             "code": "879558966"
>         },
>         "inboxes": [
>             {
>                 "key": "peppol",
>                 "scheme": "0246",
>                 "code": "DE879558966"
>             }
>         ],
>         "addresses": [
>             {
>                 "num": "27",
>                 "street": "Friedrichstraße",
>                 "locality": "Berlin",
>                 "region": "BE",
>                 "code": "10117",
>                 "country": "DE"
>             }
>         ],
>         "people": [
>             {
>                 "name": {
>                     "given": "John",
>                     "surname": "Doe"
>                 }
>             }  
>         ],
>         "telephones": [
>             {
>                 "num": "+49100200300"
>             }
>         ],
>         "emails": [
>             {
>                 "addr": "billing@example.com"
>             }
>         ]
>     },
>     "customer": {
>         "name": "Bavaria Solutions GmbH",
>         "tax_id": {
>             "country": "DE",
>             "code": "993930191"
>         },
>         "inboxes": [
>             {
>                 "key": "peppol",
>                 "scheme": "9930",
>                 "code": "DE993930191"
>             }
>         ],
>         "addresses": [
>             {
>                 "num": "15",
>                 "street": "Marienplatz",
>                 "locality": "München",
>                 "region": "BY",
>                 "code": "80331",
>                 "country": "DE"
>             }
>         ],
>         "emails": [
>             {
>                 "addr": "test@example.com"
>             }
>         ]
>     },
>     "lines": [
>         {
>             "quantity": "20",
>             "item": {
>                 "name": "Development services",
>                 "price": "90.00",
>                 "unit": "h"
>             },
>             "sum": "1800.00",
>             "discounts": [
>                 {
>                     "reason": "Special discount",
>                     "percent": "10%",
>                     "amount": "180.00"
>                 }
>             ],
>             "taxes": [
>                 {
>                     "cat": "VAT",
>                     "rate": "general"
>                 }
>             ],
>             "total": "1620.00"
>         }
>     ],
>     "ordering": {
>         "code": "N"
>     },
>     "payment": {
>         "terms": {
>             "notes": "Will be paid by 2026-06-02"
>         },
>         "instructions": {
>             "key": "credit-transfer+sepa",
>             "credit_transfer": [
>                 {
>                     "iban": "DE89370400440532013000",
>                     "name": "Random Bank Co."
>                 }
>             ]
>         }
>     }
> }
> ```
>
> ```json Built version theme={"system"}
> {
> 	"$schema": "https://gobl.org/draft-0/bill/invoice",
> 	"$regime": "DE",
> 	"$addons": [
> 		"eu-en16931-v2017",
> 		"de-xrechnung-v3"
> 	],
> 	"type": "standard",
> 	"series": "SAMPLE",
> 	"code": "001",
> 	"issue_date": "2022-02-01",
> 	"currency": "EUR",
> 	"tax": {
> 		"ext": {
> 			"untdid-document-type": "380"
> 		}
> 	},
> 	"supplier": {
> 		"name": "Rheinland Technologies GmbH",
> 		"tax_id": {
> 			"country": "DE",
> 			"code": "879558966"
> 		},
> 		"people": [
> 			{
> 				"name": {
> 					"given": "John",
> 					"surname": "Doe"
> 				}
> 			}
> 		],
> 		"endpoints": [
> 			{
> 				"uri": "iso6523-actorid-upis::0246:DE879558966"
> 			}
> 		],
> 		"inboxes": [
> 			{
> 				"key": "peppol",
> 				"scheme": "0246",
> 				"code": "DE879558966"
> 			}
> 		],
> 		"addresses": [
> 			{
> 				"num": "27",
> 				"street": "Friedrichstraße",
> 				"locality": "Berlin",
> 				"region": "BE",
> 				"code": "10117",
> 				"country": "DE"
> 			}
> 		],
> 		"emails": [
> 			{
> 				"addr": "billing@example.com"
> 			}
> 		],
> 		"telephones": [
> 			{
> 				"num": "+49100200300"
> 			}
> 		]
> 	},
> 	"customer": {
> 		"name": "Bavaria Solutions GmbH",
> 		"tax_id": {
> 			"country": "DE",
> 			"code": "993930191"
> 		},
> 		"endpoints": [
> 			{
> 				"uri": "iso6523-actorid-upis::9930:DE993930191"
> 			}
> 		],
> 		"inboxes": [
> 			{
> 				"key": "peppol",
> 				"scheme": "9930",
> 				"code": "DE993930191"
> 			}
> 		],
> 		"addresses": [
> 			{
> 				"num": "15",
> 				"street": "Marienplatz",
> 				"locality": "München",
> 				"region": "BY",
> 				"code": "80331",
> 				"country": "DE"
> 			}
> 		],
> 		"emails": [
> 			{
> 				"addr": "test@example.com"
> 			}
> 		]
> 	},
> 	"lines": [
> 		{
> 			"i": 1,
> 			"quantity": "20",
> 			"item": {
> 				"name": "Development services",
> 				"price": "90.00",
> 				"unit": "h"
> 			},
> 			"sum": "1800.00",
> 			"discounts": [
> 				{
> 					"reason": "Special discount",
> 					"percent": "10%",
> 					"amount": "180.00"
> 				}
> 			],
> 			"taxes": [
> 				{
> 					"cat": "VAT",
> 					"key": "standard",
> 					"rate": "general",
> 					"percent": "19%",
> 					"ext": {
> 						"untdid-tax-category": "S"
> 					}
> 				}
> 			],
> 			"total": "1620.00"
> 		}
> 	],
> 	"ordering": {
> 		"code": "N"
> 	},
> 	"payment": {
> 		"terms": {
> 			"notes": "Will be paid by 2026-06-02"
> 		},
> 		"instructions": {
> 			"key": "credit-transfer+sepa",
> 			"credit_transfer": [
> 				{
> 					"iban": "DE89370400440532013000",
> 					"name": "Random Bank Co."
> 				}
> 			],
> 			"ext": {
> 				"untdid-payment-means": "58"
> 			}
> 		}
> 	},
> 	"totals": {
> 		"sum": "1620.00",
> 		"total": "1620.00",
> 		"taxes": {
> 			"categories": [
> 				{
> 					"code": "VAT",
> 					"rates": [
> 						{
> 							"key": "standard",
> 							"ext": {
> 								"untdid-tax-category": "S"
> 							},
> 							"base": "1620.00",
> 							"percent": "19%",
> 							"amount": "307.80"
> 						}
> 					],
> 					"amount": "307.80"
> 				}
> 			],
> 			"sum": "307.80"
> 		},
> 		"tax": "307.80",
> 		"total_with_tax": "1927.80",
> 		"payable": "1927.80"
> 	}
> }
> ```

> [accordion] ZUGFeRD B2B invoice
>
> A ZUGFeRD invoice to a business customer. The [`de-zugferd-v2`](https://docs.gobl.org/addons/de-zugferd-v2) addon applies the ZUGFeRD rules.
>
> ```json ZUGFeRD B2B Peppol Invoice theme={"system"}
> {
>     "$schema": "https://gobl.org/draft-0/bill/invoice",
>     "$regime": "DE",
>     "$addons": [
>         "eu-en16931-v2017",
>         "de-zugferd-v2"
>     ],
>     "type": "standard",
>     "series": "INV",
>     "code": "PP000003",
>     "issue_date": "2025-04-03",
>     "currency": "EUR",
>     "supplier": {
>         "name": "Rheinland Technologies GmbH",
>         "tax_id": {
>             "country": "DE",
>             "code": "879558966"
>         },
>         "inboxes": [
>             {
>                 "key": "peppol",
>                 "scheme": "0246",
>                 "code": "DE879558966"
>             }
>         ],
>         "addresses": [
>             {
>                 "num": "27",
>                 "street": "Friedrichstraße",
>                 "locality": "Berlin",
>                 "region": "BE",
>                 "code": "10117",
>                 "country": "DE"
>             }
>         ],
>         "emails": [
>             {
>                 "addr": "rechnungen@rheinlandtech.de"
>             }
>         ]
>     },
>     "customer": {
>         "name": "Bavaria Solutions GmbH",
>         "tax_id": {
>             "country": "DE",
>             "code": "993930191"
>         },
>         "inboxes": [
>             {
>                 "key": "peppol",
>                 "scheme": "9930",
>                 "code": "DE993930191"
>             }
>         ],
>         "addresses": [
>             {
>                 "num": "15",
>                 "street": "Marienplatz",
>                 "locality": "München",
>                 "region": "BY",
>                 "code": "80331",
>                 "country": "DE"
>             }
>         ],
>         "emails": [
>             {
>                 "addr": "test@example.com"
>             }
>         ]
>     },
>     "lines": [
>         {
>             "i": 1,
>             "quantity": "12",
>             "item": {
>                 "name": "Sambox services",
>                 "price": "145.00",
>                 "unit": "one"
>             },
>             "sum": "1740.00",
>             "taxes": [
>                 {
>                     "cat": "VAT",
>                     "rate": "general"
>                 }
>             ],
>             "total": "1740.00"
>         }
>     ],
>     "payment": {
>         "terms": {
>             "detail": "Will be paid by 2026-06-02"
>         }
>     }
> }
> ```
>
> ```json Built version theme={"system"}
> {
> 	"$schema": "https://gobl.org/draft-0/bill/invoice",
> 	"$regime": "DE",
> 	"$addons": [
> 		"eu-en16931-v2017",
> 		"de-zugferd-v2"
> 	],
> 	"type": "standard",
> 	"series": "INV",
> 	"code": "PP000003",
> 	"issue_date": "2025-04-03",
> 	"currency": "EUR",
> 	"tax": {
> 		"ext": {
> 			"untdid-document-type": "380"
> 		}
> 	},
> 	"supplier": {
> 		"name": "Rheinland Technologies GmbH",
> 		"tax_id": {
> 			"country": "DE",
> 			"code": "879558966"
> 		},
> 		"endpoints": [
> 			{
> 				"uri": "iso6523-actorid-upis::0246:DE879558966"
> 			}
> 		],
> 		"inboxes": [
> 			{
> 				"key": "peppol",
> 				"scheme": "0246",
> 				"code": "DE879558966"
> 			}
> 		],
> 		"addresses": [
> 			{
> 				"num": "27",
> 				"street": "Friedrichstraße",
> 				"locality": "Berlin",
> 				"region": "BE",
> 				"code": "10117",
> 				"country": "DE"
> 			}
> 		],
> 		"emails": [
> 			{
> 				"addr": "rechnungen@rheinlandtech.de"
> 			}
> 		]
> 	},
> 	"customer": {
> 		"name": "Bavaria Solutions GmbH",
> 		"tax_id": {
> 			"country": "DE",
> 			"code": "993930191"
> 		},
> 		"endpoints": [
> 			{
> 				"uri": "iso6523-actorid-upis::9930:DE993930191"
> 			}
> 		],
> 		"inboxes": [
> 			{
> 				"key": "peppol",
> 				"scheme": "9930",
> 				"code": "DE993930191"
> 			}
> 		],
> 		"addresses": [
> 			{
> 				"num": "15",
> 				"street": "Marienplatz",
> 				"locality": "München",
> 				"region": "BY",
> 				"code": "80331",
> 				"country": "DE"
> 			}
> 		],
> 		"emails": [
> 			{
> 				"addr": "test@example.com"
> 			}
> 		]
> 	},
> 	"lines": [
> 		{
> 			"i": 1,
> 			"quantity": "12",
> 			"item": {
> 				"name": "Sambox services",
> 				"price": "145.00",
> 				"unit": "one"
> 			},
> 			"sum": "1740.00",
> 			"taxes": [
> 				{
> 					"cat": "VAT",
> 					"key": "standard",
> 					"rate": "general",
> 					"percent": "19%",
> 					"ext": {
> 						"untdid-tax-category": "S"
> 					}
> 				}
> 			],
> 			"total": "1740.00"
> 		}
> 	],
> 	"payment": {
> 		"terms": {
> 			"notes": "Will be paid by 2026-06-02"
> 		}
> 	},
> 	"totals": {
> 		"sum": "1740.00",
> 		"total": "1740.00",
> 		"taxes": {
> 			"categories": [
> 				{
> 					"code": "VAT",
> 					"rates": [
> 						{
> 							"key": "standard",
> 							"ext": {
> 								"untdid-tax-category": "S"
> 							},
> 							"base": "1740.00",
> 							"percent": "19%",
> 							"amount": "330.60"
> 						}
> 					],
> 					"amount": "330.60"
> 				}
> 			],
> 			"sum": "330.60"
> 		},
> 		"tax": "330.60",
> 		"total_with_tax": "2070.60",
> 		"payable": "2070.60"
> 	}
> }
> ```

> [accordion] ZUGFeRD B2B invoice with additional fields
>
> A ZUGFeRD invoice with ordering information, payment terms, delivery details and discounts.
>
> ```json ZUGFeRD B2B Invoice with additional fields theme={"system"}
> {
>     "$schema": "https://gobl.org/draft-0/bill/invoice",
>     "$regime": "DE",
>     "$addons": [
>         "eu-en16931-v2017",
>         "de-zugferd-v2"
>     ],
>     "type": "standard",
>     "series": "SAMPLE",
>     "code": "001",
>     "issue_date": "2024-02-13",
>     "currency": "EUR",
>     "tax": {
>         "ext": {
>             "untdid-document-type": "380"
>         }
>     },
>     "supplier": {
>         "name": "Provide One GmbH",
>         "tax_id": {
>             "country": "DE",
>             "code": "111111125"
>         },
>         "people": [
>             {
>                 "name": {
>                     "given": "John",
>                     "surname": "Doe"
>                 }
>             }
>         ],
>         "addresses": [
>             {
>                 "num": "16",
>                 "street": "Dietmar-Hopp-Allee",
>                 "locality": "Walldorf",
>                 "code": "69190",
>                 "country": "DE"
>             }
>         ],
>         "emails": [
>             {
>                 "addr": "billing@example.com"
>             }
>         ],
>         "telephones": [
>             {
>                 "num": "+49100200300"
>             }
>         ]
>     },
>     "customer": {
>         "name": "Sample Consumer",
>         "tax_id": {
>             "country": "DE",
>             "code": "282741168"
>         },
>         "addresses": [
>             {
>                 "num": "25",
>                 "street": "Werner-Heisenberg-Allee",
>                 "locality": "München",
>                 "code": "80939",
>                 "country": "DE"
>             }
>         ],
>         "emails": [
>             {
>                 "addr": "email@sample.com"
>             }
>         ]
>     },
>     "lines": [
>         {
>             "quantity": "20",
>             "item": {
>                 "name": "Development services",
>                 "price": "90.00",
>                 "unit": "h"
>             },
>             "taxes": [
>                 {
>                     "cat": "VAT",
>                     "key": "standard",
>                     "rate": "general",
>                     "percent": "19%",
>                     "ext": {
>                         "untdid-tax-category": "S"
>                     }
>                 }
>             ]
>         }
>     ],
>     "discounts": [
>         {
>             "reason": "Promotion discount",
>             "amount": "10.00",
>             "taxes": [
>                 {
>                     "cat": "VAT",
>                     "key": "standard",
>                     "rate": "general",
>                     "percent": "19%",
>                     "ext": {
>                         "untdid-tax-category": "S"
>                     }
>                 }
>             ],
>             "ext": {
>                 "untdid-allowance": "88"
>             }
>         }
>     ],
>     "charges": [
>         {
>             "reason": "Freight",
>             "amount": "11.00",
>             "taxes": [
>                 {
>                     "cat": "VAT",
>                     "key": "standard",
>                     "rate": "general",
>                     "percent": "19%",
>                     "ext": {
>                         "untdid-tax-category": "S"
>                     }
>                 }
>             ]
>         }
>     ],
>     "ordering": {
>         "code": "PO4711",
>         "period": {
>             "start": "2013-03-10",
>             "end": "2013-04-10"
>         },
>         "contracts": [
>             {
>                 "code": "2013-05"
>             }
>         ],
>         "receiving": [
>             {
>                 "code": "3544"
>             }
>         ],
>         "despatch": [
>             {
>                 "code": "5433"
>             }
>         ]
>     },
>     "payment": {
>         "payee": {
>             "name": "Ebeneser Scrooge AS",
>             "identities": [
>                 {
>                     "label": "CompanyID",
>                     "code": "989823401"
>                 },
>                 {
>                     "label": "0088",
>                     "code": "2298740918237"
>                 }
>             ]
>         },
>         "terms": {
>             "due_dates": [
>                 {
>                     "date": "2013-07-20",
>                     "percent": "100%"
>                 }
>             ],
>             "notes": "2 % discount if paid within 2 days\n            Penalty percentage 10% from due date"
>         },
>         "instructions": {
>             "key": "credit-transfer",
>             "ref": "0003434323213231",
>             "credit_transfer": [
>                 {
>                     "iban": "NO9386011117947",
>                     "bic": "DNBANOKK"
>                 }
>             ],
>             "card": {
>                 "last4": "1234",
>                 "holder": "John Doe"
>             },
>             "direct_debit": {
>                 "ref": "1234567890",
>                 "creditor": "987654321",
>                 "account": "DE89370400440532013000"
>             },
>             "ext": {
>                 "untdid-payment-means": "30"
>             }
>         }
>     },
>     "delivery": {
>         "receiver": {
>             "addresses": [
>                 {
>                     "street": "Deliverystreet 2",
>                     "street_extra": "Side door",
>                     "locality": "DeliveryCity",
>                     "region": "RegionD",
>                     "code": "523427",
>                     "country": "NO"
>                 }
>             ]
>         },
>         "identities": [
>             {
>                 "label": "0088",
>                 "code": "6754238987643"
>             }
>         ],
>         "date": "2024-02-10"
>     }
> }
> ```
>
> ```json Built version theme={"system"}
> {
> 	"$schema": "https://gobl.org/draft-0/bill/invoice",
> 	"$regime": "DE",
> 	"$addons": [
> 		"eu-en16931-v2017",
> 		"de-zugferd-v2"
> 	],
> 	"type": "standard",
> 	"series": "SAMPLE",
> 	"code": "001",
> 	"issue_date": "2024-02-13",
> 	"currency": "EUR",
> 	"tax": {
> 		"ext": {
> 			"untdid-document-type": "380"
> 		}
> 	},
> 	"supplier": {
> 		"name": "Provide One GmbH",
> 		"tax_id": {
> 			"country": "DE",
> 			"code": "111111125"
> 		},
> 		"people": [
> 			{
> 				"name": {
> 					"given": "John",
> 					"surname": "Doe"
> 				}
> 			}
> 		],
> 		"addresses": [
> 			{
> 				"num": "16",
> 				"street": "Dietmar-Hopp-Allee",
> 				"locality": "Walldorf",
> 				"code": "69190",
> 				"country": "DE"
> 			}
> 		],
> 		"emails": [
> 			{
> 				"addr": "billing@example.com"
> 			}
> 		],
> 		"telephones": [
> 			{
> 				"num": "+49100200300"
> 			}
> 		]
> 	},
> 	"customer": {
> 		"name": "Sample Consumer",
> 		"tax_id": {
> 			"country": "DE",
> 			"code": "282741168"
> 		},
> 		"addresses": [
> 			{
> 				"num": "25",
> 				"street": "Werner-Heisenberg-Allee",
> 				"locality": "München",
> 				"code": "80939",
> 				"country": "DE"
> 			}
> 		],
> 		"emails": [
> 			{
> 				"addr": "email@sample.com"
> 			}
> 		]
> 	},
> 	"lines": [
> 		{
> 			"i": 1,
> 			"quantity": "20",
> 			"item": {
> 				"name": "Development services",
> 				"price": "90.00",
> 				"unit": "h"
> 			},
> 			"sum": "1800.00",
> 			"taxes": [
> 				{
> 					"cat": "VAT",
> 					"key": "standard",
> 					"rate": "general",
> 					"percent": "19%",
> 					"ext": {
> 						"untdid-tax-category": "S"
> 					}
> 				}
> 			],
> 			"total": "1800.00"
> 		}
> 	],
> 	"discounts": [
> 		{
> 			"i": 1,
> 			"reason": "Promotion discount",
> 			"amount": "10.00",
> 			"taxes": [
> 				{
> 					"cat": "VAT",
> 					"key": "standard",
> 					"rate": "general",
> 					"percent": "19%",
> 					"ext": {
> 						"untdid-tax-category": "S"
> 					}
> 				}
> 			],
> 			"ext": {
> 				"untdid-allowance": "88"
> 			}
> 		}
> 	],
> 	"charges": [
> 		{
> 			"i": 1,
> 			"reason": "Freight",
> 			"amount": "11.00",
> 			"taxes": [
> 				{
> 					"cat": "VAT",
> 					"key": "standard",
> 					"rate": "general",
> 					"percent": "19%",
> 					"ext": {
> 						"untdid-tax-category": "S"
> 					}
> 				}
> 			]
> 		}
> 	],
> 	"ordering": {
> 		"code": "PO4711",
> 		"period": {
> 			"start": "2013-03-10",
> 			"end": "2013-04-10"
> 		},
> 		"contracts": [
> 			{
> 				"code": "2013-05"
> 			}
> 		],
> 		"receiving": [
> 			{
> 				"code": "3544"
> 			}
> 		],
> 		"despatch": [
> 			{
> 				"code": "5433"
> 			}
> 		]
> 	},
> 	"payment": {
> 		"payee": {
> 			"name": "Ebeneser Scrooge AS",
> 			"identities": [
> 				{
> 					"label": "CompanyID",
> 					"code": "989823401"
> 				},
> 				{
> 					"label": "0088",
> 					"code": "2298740918237"
> 				}
> 			]
> 		},
> 		"terms": {
> 			"due_dates": [
> 				{
> 					"date": "2013-07-20",
> 					"amount": "2143.19",
> 					"percent": "100%"
> 				}
> 			],
> 			"notes": "2 % discount if paid within 2 days\n            Penalty percentage 10% from due date"
> 		},
> 		"instructions": {
> 			"key": "credit-transfer",
> 			"ref": "0003434323213231",
> 			"credit_transfer": [
> 				{
> 					"iban": "NO9386011117947",
> 					"bic": "DNBANOKK"
> 				}
> 			],
> 			"card": {
> 				"last4": "1234",
> 				"holder": "John Doe"
> 			},
> 			"direct_debit": {
> 				"ref": "1234567890",
> 				"creditor": "987654321",
> 				"account": "DE89370400440532013000"
> 			},
> 			"ext": {
> 				"untdid-payment-means": "30"
> 			}
> 		}
> 	},
> 	"delivery": {
> 		"receiver": {
> 			"addresses": [
> 				{
> 					"street": "Deliverystreet 2",
> 					"street_extra": "Side door",
> 					"locality": "DeliveryCity",
> 					"region": "RegionD",
> 					"code": "523427",
> 					"country": "NO"
> 				}
> 			]
> 		},
> 		"identities": [
> 			{
> 				"label": "0088",
> 				"code": "6754238987643"
> 			}
> 		],
> 		"date": "2024-02-10"
> 	},
> 	"totals": {
> 		"sum": "1800.00",
> 		"discount": "10.00",
> 		"charge": "11.00",
> 		"total": "1801.00",
> 		"taxes": {
> 			"categories": [
> 				{
> 					"code": "VAT",
> 					"rates": [
> 						{
> 							"key": "standard",
> 							"ext": {
> 								"untdid-tax-category": "S"
> 							},
> 							"base": "1801.00",
> 							"percent": "19%",
> 							"amount": "342.19"
> 						}
> 					],
> 					"amount": "342.19"
> 				}
> 			],
> 			"sum": "342.19"
> 		},
> 		"tax": "342.19",
> 		"total_with_tax": "2143.19",
> 		"payable": "2143.19"
> 	}
> }
> ```

## FAQ

> [accordion] How do I configure my workspace for German invoicing?
>
> Pick a format based on the recipient: XRechnung (UBL or CII) for B2G via Peppol, ZUGFeRD/Factur-X for B2B where a human-readable PDF is also wanted. Both are EN 16931-compliant, and Invopop generates either from the same GOBL invoice.

> [accordion] Can I send German e-invoices by email?
>
> Yes. The **Germany send invoice** workflow sends the XRechnung XML by email when the customer is not on Peppol, and the **ZUGFeRD email invoice** workflow sends a ZUGFeRD PDF. [Register the supplier](https://docs.invopop.com/guides/de-registration.md) first, as for Peppol. See the [invoicing guide](https://docs.invopop.com/guides/de-invoicing.md).

> [accordion] What's the workflow for issuing Peppol invoices in Germany?
>
> [Register the supplier](https://docs.invopop.com/guides/de-registration.md), then use the **Germany send invoice** workflow of the [invoicing guide](https://docs.invopop.com/guides/de-invoicing.md). It sends the XRechnung through Peppol when the invoice has the customer's Peppol ID and the customer accepts XRechnung there, or by email otherwise. ZUGFeRD invoices go by email.

> [accordion] Which XRechnung syntax should I choose, UBL or CII?
>
> Both syntaxes are equally valid and contain the same information, so in the majority of cases the choice has no consequences.
>
> If you plan on sending invoices through the Peppol network, we recommend using UBL as it is the supported format. If you plan on also issuing invoices in ZUGFeRD or Factur-X, it might be more convenient to use CII, as it is the syntax also supported by ZUGFeRD and Factur-X.

> [accordion] How can I view an XML attached to a PDF?
>
> For ZUGFeRD PDFs, the XML file is embedded within the PDF itself. To extract and view it, you can use the `Attachments` section in Adobe Acrobat Reader.
>
> Alternatively, you can use specialized tools like the [SysTools PDF Extractor](https://www.systoolsgroup.com/pdf/extractor/) to extract the XML file.

> [accordion] Where do I find Germany-specific GOBL documentation?
>
> See the [Germany tax regime in GOBL](https://docs.gobl.org/regimes/de) for tax categories and identifiers. The XRechnung rules live in [`de-xrechnung-v3`](https://docs.gobl.org/addons/de-xrechnung-v3) and the ZUGFeRD rules in [`de-zugferd-v2`](https://docs.gobl.org/addons/de-zugferd-v2). For Peppol, see the [`eu-en16931-v2017`](https://docs.gobl.org/addons/eu-en16931-v2017) addon and the [Peppol app reference](https://docs.invopop.com/apps/peppol.md).

> [accordion] What if the customer is not on the Peppol network?
>
> The **Germany send invoice** workflow sends the XRechnung to the customer's email address instead. Put the address in the customer's `emails` and also as an email inbox, because XRechnung requires an electronic address for the customer. Peppol is not mandatory in Germany, but the invoice must still be an EN 16931 e-invoice. See the [invoicing guide](https://docs.invopop.com/guides/de-invoicing.md).

> [accordion] How do I handle 'Receiver Not Found' errors?
>
> A **Send Peppol document** step fails with `KO` and `receiver not found in the peppol network` when the customer's Peppol ID is not on the network. Check the customer's Peppol ID, or send the invoice by email. The **Germany send invoice** workflow avoids this error: its **Verify document can be sent** step checks the customer's Peppol ID first, and sends by email when the customer is not on Peppol.

More available in our [Germany FAQ](https://docs.invopop.com/faq/germany.md) section

***

> [accordion] 🇩🇪 Invopop resources for Germany
>
> | | |
> | - | - |
> | Compliance | [Invoicing compliance in Germany](https://docs.invopop.com/compliance/germany.md)   [Compliance timeline](https://docs.invopop.com/timelines/germany.md) |
> | Apps | [Germany](https://docs.invopop.com/apps/germany.md)  [Peppol](https://docs.invopop.com/apps/peppol.md)  [Email](https://docs.invopop.com/apps/email.md) |
> | Guides | [Supplier registration](https://docs.invopop.com/guides/de-registration.md)  [Issuing invoices](https://docs.invopop.com/guides/de-invoicing.md)  [Receiving invoices](https://docs.invopop.com/guides/de-receiving.md)  [Chargebee guide](https://docs.invopop.com/guides/cb-germany.md) |
> | FAQ | [Germany FAQ](https://docs.invopop.com/faq/germany.md) |
> | GOBL | [Germany Tax Regime](https://docs.gobl.org/regimes/de)   [German XRechnung Addon](https://docs.gobl.org/addons/de-xrechnung-v3)   [German ZUGFeRD Addon](https://docs.gobl.org/addons/de-zugferd-v2) |
> | GitHub | [gobl.de.xinvoice](https://github.com/invopop/gobl.de.xinvoice) |

> [card] [Participate in our community](https://community.invopop.com)
>
> Ask and answer questions about invoicing in Germany →


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