> ## 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

> Send and receive XRechnung and ZUGFeRD invoices by email or through Peppol.

> [tab] Description
>
> > [card] [Register suppliers](https://docs.invopop.com/guides/de-registration.md)
> >
> > Supplier registration guide ›
>
> > [card] [Issue invoices](https://docs.invopop.com/guides/de-invoicing.md)
> >
> > Issuing guide ›
>
> > [card] [Receive invoices](https://docs.invopop.com/guides/de-receiving.md)
> >
> > Receiving guide ›
>
> | | |
> | - | - |
> | Developer | [Invopop](https://invopop.com) |
> | Category | Government |
> | Scope | B2B, B2G |
> | Country | [Germany](https://docs.invopop.com/compliance/germany.md) |
>
> Germany has no central e-invoicing platform. Businesses exchange **XRechnung** and **ZUGFeRD** invoices directly with their customers, by [email](https://docs.invopop.com/guides/email.md) or through the [Peppol](https://docs.invopop.com/apps/peppol.md) network.
>
> Invopop's **Germany app** adds the steps that German suppliers and invoices need. It approves every supplier, on both channels, and it builds ZUGFeRD PDFs. Invopop converts the invoices to XRechnung or ZUGFeRD.
>
> **Key features**
>
> * **Email or Peppol:** send and receive invoices with the [Email](https://docs.invopop.com/apps/email.md) app, or through [Peppol](https://docs.invopop.com/apps/peppol.md).
> * **Supplier approval:** every supplier's representative completes an onboarding with an ID document and a proof of ownership. Invopop then registers the supplier on Peppol.
> * **Peppol ID:** registration adds the supplier's GEBA (scheme `0246`), the default Peppol identifier for German businesses.
> * **ZUGFeRD PDFs:** embed the exported ZUGFeRD XML into the invoice PDF.
> * **ZUGFeRD import:** create an invoice from a ZUGFeRD PDF that you received.
>
> Check out the guides below to get started:
>
> * [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)
>
> ## FAQ
>
> Invoicing questions
>
> > [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.
>
> Registering supplier questions
>
> > [accordion] How do I onboard a new supplier in Germany?
> >
> > Register every supplier with the [supplier registration guide](https://docs.invopop.com/guides/de-registration.md), whether it uses email or Peppol. The supplier's legal representative completes an onboarding, and Invopop then registers the supplier on Peppol.
>
> > [accordion] How do I register a supplier with Peppol in Germany?
> >
> > Run the **Germany register supplier** workflow. It adds the supplier's GEBA (scheme `0246`, its VAT ID with the `DE` prefix) as its Peppol ID when the party has none, and publishes an onboarding link. Once the onboarding is approved, Invopop registers the supplier on Peppol.
>
> Receiving questions
>
> > [accordion] How do I receive e-invoices by email in Germany?
> >
> > Register the supplier with the [supplier registration guide](https://docs.invopop.com/guides/de-registration.md) first. Then register it for email with the [Email](https://docs.invopop.com/apps/email.md) app, which gives the supplier an `invopop.email` address. The Email app imports each XRechnung or ZUGFeRD invoice sent there as a GOBL invoice. See the [receiving guide](https://docs.invopop.com/guides/de-receiving.md).
>
> > [accordion] Do I need to register the supplier to receive e-invoices?
> >
> > Yes. Register every supplier first with the [supplier registration guide](https://docs.invopop.com/guides/de-registration.md). The registration also registers the supplier on Peppol, so it can receive through Peppol. To receive by email, also register the supplier with the Email app, which gives it its address.
>
> > [accordion] How do I import received invoices via Peppol?
> >
> > Register the recipient as a Peppol participant with Invopop as their Access Point. Incoming documents are routed through your configured Import workflow, which converts the UBL or CII payload to GOBL and stores the entry in the Expenses folder.
>
> > [accordion] Can I remove UBL or CII from the 'Peppol receive invoice' workflow if I only use one format?
> >
> > Yes. Either format can be removed based on your needs. The default template includes both for comprehensiveness, but if you're certain you'll only receive invoices in one syntax, dropping the other simplifies the workflow and reduces the apps you need to activate.
>
> > [accordion] How are incoming Peppol documents converted into GOBL?
> >
> > The Import workflow's UBL and CII parser steps map the inbound XML into a GOBL invoice. From there you can route it to webhooks, Google Drive, accounting integrations, or any other destination. The GOBL representation is the single source of truth for downstream processing.
>
> More answers in our [Germany FAQ](https://docs.invopop.com/faq/germany.md) section

> [tab] Actions
>
> The following workflow actions will be available once you install and enable this app.
>
> Registration
>
> > [card] Register supplier for approval
> >
> > &#x20;100/mo
> > Add the GEBA Peppol inbox to a party without one, and publish the onboarding link that the supplier follows.
>
> > [card] Wait for supplier approval
> >
> > Wait for the supplier to complete the onboarding. Once it is approved, store the approval on the party.
>
> > [card] Unregister supplier
> >
> > Cancel an open onboarding and remove the supplier's approval. A new registration starts a new onboarding.
>
> Documents
>
> > [card] Embed XML into PDF
> >
> > Embed the ZUGFeRD or XRechnung CII XML that the **Export document** step stored into the invoice PDF, producing a PDF/A-3.
>
> > [card] Import ZUGFeRD PDF
> >
> > &#x20;1
> > Create an invoice from the ZUGFeRD PDF at the URL in the job's `url` argument, and store the PDF on the invoice. To receive invoices by email, use the [Email](https://docs.invopop.com/apps/email.md) app.

> [tab] Workflows
>
> Invoice workflows
>
> > [accordion] Germany send invoice
> >
> > ```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"
> >             }
> >         }
> >     ]
> > }
> > ```
>
> > [accordion] XRechnung email invoice
> >
> > ```json XRechnung email invoice workflow theme={"system"}
> > {
> >     "name": "XRechnung email invoice",
> >     "description": "Issue an XRechnung 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": "66c0eb20-8efb-11f0-825d-d9d5f5eb9a66",
> >             "name": "Export document",
> >             "provider": "silo.export",
> >             "summary": "Export to UBL XRechnung 3",
> >             "config": {
> >                 "formats": [
> >                     "ubl+de-xrechnung-v3"
> >                 ]
> >             }
> >         },
> >         {
> >             "id": "56bda1e0-8ef7-11f0-aa0e-dd7c69b95f3c",
> >             "name": "Generate PDF",
> >             "provider": "pdf",
> >             "summary": "English · A4",
> >             "config": {
> >                 "date_format": "%Y-%m-%d",
> >                 "layout": "A4",
> >                 "locale": "en",
> >                 "logo_height": 40,
> >                 "scripting": false
> >             }
> >         },
> >         {
> >             "id": "40c704ed-e2b9-11f1-8e4f-92000948fe40",
> >             "name": "Send email",
> >             "provider": "email.send",
> >             "summary": "To invoice customers",
> >             "config": {
> >                 "add_invoice_customer": true,
> >                 "attach": "xml",
> >                 "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"
> >             }
> >         }
> >     ]
> > }
> > ```
>
> > [accordion] ZUGFeRD email invoice
> >
> > ```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": []
> >         }
> >     ]
> > }
> > ```
>
> Party workflows
>
> > [accordion] Germany register supplier
> >
> > ```json Germany register supplier workflow theme={"system"}
> > {
> >     "name": "Germany register supplier",
> >     "description": "Approve a German supplier and register it with Peppol",
> >     "schema": "org/party",
> >     "steps": [
> >         {
> >             "id": "1ea98e81-e2ab-11f1-b473-92000948fe40",
> >             "name": "Register supplier for approval",
> >             "provider": "gov-de.register.approval",
> >             "notes": "Adds the Peppol inbox and publishes the onboarding link"
> >         },
> >         {
> >             "id": "1ea98f1b-e2ab-11f1-81ed-92000948fe40",
> >             "name": "Set state",
> >             "provider": "silo.state",
> >             "summary": "Set state to `processing`{.state .processing}",
> >             "config": {
> >                 "state": "processing"
> >             }
> >         },
> >         {
> >             "id": "1ea98f66-e2ab-11f1-8ab0-92000948fe40",
> >             "name": "Wait for supplier approval",
> >             "provider": "gov-de.wait.approval",
> >             "notes": "Pauses until the supplier completes the onboarding and it is approved"
> >         },
> >         {
> >             "id": "1ea98fa3-e2ab-11f1-a171-92000948fe40",
> >             "name": "Register party on Peppol",
> >             "provider": "peppol.register",
> >             "summary": "Send and receive · documents of the party's country · in Peppol Directory",
> >             "config": {
> >                 "disable": false,
> >                 "mode": "automatic",
> >                 "sending_only": false,
> >                 "doc_groups": [],
> >                 "directory": true
> >             },
> >             "notes": "Publishes the party, enabling Peppol routing for sending and receiving"
> >         },
> >         {
> >             "id": "1ea98fe6-e2ab-11f1-9c5f-92000948fe40",
> >             "name": "Set state",
> >             "provider": "silo.state",
> >             "summary": "Set state to `registered`{.state .registered}",
> >             "config": {
> >                 "state": "registered"
> >             }
> >         }
> >     ],
> >     "rescue": [
> >         {
> >             "id": "1ea0faee-e2ab-11f1-a240-92000948fe40",
> >             "name": "Set state",
> >             "provider": "silo.state",
> >             "summary": "Set state to `error`{.state .error}",
> >             "config": {
> >                 "state": "error"
> >             }
> >         }
> >     ]
> > }
> > ```
>
> > [accordion] Germany unregister supplier
> >
> > ```json Germany unregister supplier workflow theme={"system"}
> > {
> >     "name": "Germany unregister supplier",
> >     "description": "Unregister a German supplier from Peppol and remove its approval",
> >     "schema": "org/party",
> >     "steps": [
> >         {
> >             "id": "1ea9949a-e2ab-11f1-8531-92000948fe40",
> >             "name": "Unregister supplier from Peppol",
> >             "provider": "peppol.unregister"
> >         },
> >         {
> >             "id": "1ea994ef-e2ab-11f1-a6a0-92000948fe40",
> >             "name": "Unregister supplier",
> >             "provider": "gov-de.unregister"
> >         },
> >         {
> >             "id": "1ea99526-e2ab-11f1-8830-92000948fe40",
> >             "name": "Set state",
> >             "provider": "silo.state",
> >             "summary": "Set state to `void`{.state .void}",
> >             "config": {
> >                 "state": "void"
> >             }
> >         }
> >     ],
> >     "rescue": [
> >         {
> >             "id": "1ea99559-e2ab-11f1-b61a-92000948fe40",
> >             "name": "Set state",
> >             "provider": "silo.state",
> >             "summary": "Set state to `error`{.state .error}",
> >             "config": {
> >                 "state": "error"
> >             }
> >         }
> >     ]
> > }
> > ```

> [tab] Documents
>
> > [accordion] Germany supplier
> >
> > A company with its German VAT ID. Registration adds its Peppol inbox.
> >
> > ```json Germany supplier example theme={"system"}
> > {
> >     "$schema": "https://gobl.org/draft-0/org/party",
> >     "name": "Rheinland Technologies GmbH",
> >     "tax_id": {
> >         "country": "DE",
> >         "code": "879558966"
> >     },
> >     "addresses": [
> >         {
> >             "num": "27",
> >             "street": "Friedrichstraße",
> >             "locality": "Berlin",
> >             "region": "BE",
> >             "code": "10117",
> >             "country": "DE"
> >         }
> >     ],
> >     "emails": [
> >         {
> >             "addr": "rechnungen@rheinlandtech.de"
> >         }
> >     ]
> > }
> > ```
>
> > [accordion] Germany customer
> >
> > A B2B customer addressed by its VAT number under scheme `9930`.
> >
> > ```json Germany customer example theme={"system"}
> > {
> >     "$schema": "https://gobl.org/draft-0/org/party",
> >     "name": "Muster Handel GmbH",
> >     "tax_id": {
> >         "country": "DE",
> >         "code": "111111125"
> >     },
> >     "inboxes": [
> >         {
> >             "key": "peppol",
> >             "scheme": "9930",
> >             "code": "DE111111125"
> >         }
> >     ],
> >     "addresses": [
> >         {
> >             "num": "10",
> >             "street": "Berliner Strasse",
> >             "locality": "Berlin",
> >             "region": "BE",
> >             "code": "10117",
> >             "country": "DE"
> >         }
> >     ],
> >     "emails": [
> >         {
> >             "addr": "buchhaltung@musterhandel.de"
> >         }
> >     ]
> > }
> > ```
>
> > [accordion] Germany government customer
> >
> > A public authority addressed by a Peppol ID under scheme `0204`, the Leitweg-ID scheme.
> >
> > ```json Germany government customer example theme={"system"}
> > {
> >     "$schema": "https://gobl.org/draft-0/org/party",
> >     "name": "Bundesverwaltungsamt",
> >     "inboxes": [
> >         {
> >             "key": "peppol",
> >             "scheme": "0204",
> >             "code": "991-33333TEST-33"
> >         }
> >     ],
> >     "addresses": [
> >         {
> >             "num": "50",
> >             "street": "Barbarastraße",
> >             "locality": "Köln",
> >             "region": "NW",
> >             "code": "50735",
> >             "country": "DE"
> >         }
> >     ],
> >     "people": [
> >         {
> >             "name": {
> >                 "given": "Erika",
> >                 "surname": "Mustermann"
> >             }
> >         }
> >     ],
> >     "emails": [
> >         {
> >             "addr": "rechnungseingang@bva.bund.de"
> >         }
> >     ]
> > }
> > ```
>
> > [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"
> > 	}
> > }
> > ```
>
> > [!NOTE]
> >
> > Copy and paste any of these into the [GOBL builder](https://build.gobl.org) to preview and verify it.

***

> [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 the Germany app →


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