# Self-billed invoices and credit notes

Source: https://xmlvalid.com/self-billed-invoice

> In a self-billed invoice the buyer bills itself for what a supplier delivered, as publishers do for royalties, platforms for commissions or recyclers for scrap. Germany calls it a Gutschrift, a word people also use for a credit note, which is something else. The e-invoice generator writes both as XRechnung or ZUGFeRD and checks them against EN 16931 and KoSIT's rules before you download them

## Self-billed invoice or credit note

- **A self-billed invoice** (type code 389) is an invoice the buyer writes instead of the supplier. The supplier stays the seller in it; the buyer only takes over the writing. In German VAT law this alone is a Gutschrift (§ 14 (2) UStG).
- **A credit note** (type code 381) is written by whoever sent the invoice, to take back all or part of it: a return, a discount granted later, a wrong amount. In German it is a Rechnungskorrektur or Stornorechnung, though many still call it a Gutschrift.

Both are e-invoices in their own right: between German businesses the e-invoicing mandate applies to them as to any invoice, and the same XRechnung and ZUGFeRD rules check them.

## How it works

1. **Open the generator** with the button above, or choose **Self-billed invoice** as the document in the [e-invoice generator](https://xmlvalid.com/e-invoice-generator), with XRechnung or ZUGFeRD as the format.
2. **Fill in the supplier as the seller**, with its VAT ID or tax number and the bank account you pay into, and your company as the buyer. The lines are what you received, at the supplier's VAT rate; a supplier under a small business scheme gets them without VAT.
3. **Create it**: the XML is checked against the schema and the business rules before you download it, as XML or as a PDF with the XML inside, titled Gutschrift in German.

The generator keeps your own company, invoice numbers and customers in your browser for your invoices. A self-billed invoice leaves them alone: **New invoice** after one starts the next self-billed invoice with your company as the buyer again, numbered after it.

## What Germany asks of it

- The supplier and you agree on self-billing before you write one (§ 14 (2) sentence 2 UStG), usually in the contract.
- The document carries the word "Gutschrift" (§ 14 (4) no. 10 UStG). The type code 389 says so in the XML, and the generator's PDF is titled Gutschrift in German.
- If the supplier objects to it, it loses its effect as an invoice (§ 14 (2) sentence 3 UStG).
- Everything else an invoice needs is the supplier's: its name, address, VAT ID or tax number, the VAT it charges.

## Formats

The generator writes self-billed invoices as XRechnung 3.0 (UBL or CII), ZUGFeRD / Factur-X EN 16931 or EXTENDED and France CTC, which all take type code 389. Peppol BIS Billing does not: self-billing travels over Peppol as a BIS of its own, Peppol BIS Self-Billing, which the [validator](https://xmlvalid.com/validate) checks but the generator doesn't write.

## Questions

### Is a Gutschrift a credit note?

In German VAT law, no: a Gutschrift is a self-billed invoice the buyer writes. What undoes an invoice is a Rechnungskorrektur or Stornorechnung, a credit note in English. The generator writes both.

### Does the supplier have to agree?

Yes. Self-billing has to be agreed before the first self-billed invoice, and a supplier who objects to one takes away its effect as an invoice.

### Is it free?

Yes, without an account or a limit. The invoice is written and checked in your browser.

### Can I check a self-billed invoice I received?

Yes: the validator checks it against the profile it names, and the e-invoice viewer shows it as a PDF to read.

  ### Other tools

- [XML formatter](https://xmlvalid.com/tools/xml-formatter): Pretty-print or minify XML, keeping text, CDATA and comments as written.
- [XML viewer](https://xmlvalid.com/tools/xml-viewer): Read a document as a tree you can fold, search and copy XPaths from.
- [XPath tester](https://xmlvalid.com/tools/xpath-tester): Evaluate XPath 3.1 against a document and see each match with its line.
- [XSD generator](https://xmlvalid.com/tools/xsd-generator): Infer an XML Schema from sample documents, checked against them.
- [XML from XSD](https://xmlvalid.com/tools/xsd-to-xml): Generate a sample XML document from a schema, validated against it.
- [XSLT transformer](https://xmlvalid.com/tools/xslt-transformer): Run XSLT 1.0, 2.0 or 3.0 on a document and see the result, the messages and the files it writes.
- [XML diff](https://xmlvalid.com/tools/xml-diff): Compare two XML documents as trees: changed, added and removed elements, attributes and text.
- [XML to JSON converter](https://xmlvalid.com/tools/xml-to-json): Convert XML to JSON, with arrays where an element repeats or wherever its XSD allows.
- [JSON to XML converter](https://xmlvalid.com/tools/json-to-xml): Convert JSON to XML: @keys become attributes, arrays repeated elements.
- [XML to CSV converter](https://xmlvalid.com/tools/xml-to-csv): Turn a repeating element into CSV rows: invoice lines, products, records.
- [XML to PDF converter](https://xmlvalid.com/tools/xml-to-pdf): Save any XML as a PDF to read, print or attach: indented, coloured, with line numbers.
- [E-invoice viewer](https://xmlvalid.com/tools/e-invoice-viewer): Read an XRechnung, ZUGFeRD, Factur-X or Peppol invoice as a document, and save it as a PDF.
- [E-invoice converter](https://xmlvalid.com/tools/e-invoice-converter): Write an XRechnung, Peppol BIS, ZUGFeRD or Factur-X invoice in another of these formats, checked before you save it.
- [ZUGFeRD validator](https://xmlvalid.com/zugferd-validator): Check a ZUGFeRD or Factur-X PDF: the XML inside against its profile's rules, and the PDF around it.
- [XRechnung validator](https://xmlvalid.com/xrechnung-validator): Check an XRechnung in UBL or CII against EN 16931 and KoSIT's XRechnung rules before you send it.
- [UBL validator](https://xmlvalid.com/ubl-validator): Check a UBL invoice, order or any other UBL 2.1 document against its OASIS schema, and the business rules of the profile it names.
- [Peppol validator](https://xmlvalid.com/peppol-validator): Check a Peppol BIS Billing 3.0 or PINT invoice against the OpenPeppol rules before your access point sends it.
- [P7M viewer: open a .p7m file](https://xmlvalid.com/tools/p7m-viewer): Open a signed .p7m file: the PDF, invoice or document inside it, and who signed it.
- [XRechnung examples to download](https://xmlvalid.com/tools/xrechnung-examples): Example XRechnung and ZUGFeRD invoices to download, one for each common case.
- [E-invoicing mandate in Germany: do I have to?](https://xmlvalid.com/tools/e-invoicing-mandate): Find out whether your invoices in Germany must be e-invoices in 2026, 2027 and from 2028.
- [Factur-X examples](https://xmlvalid.com/tools/factur-x-examples): Example Factur-X invoices of every profile and of the French reform, as XML and as PDF.
- [Leitweg-ID check](https://xmlvalid.com/tools/leitweg-id): Check the form and the check digits of a Leitweg-ID, the address of a German public buyer.
- [Peppol lookup](https://xmlvalid.com/tools/peppol-lookup): Check whether a company is registered in Peppol, under which ID, and which invoices it can receive.
- [PDF to XRechnung](https://xmlvalid.com/pdf-to-xrechnung): Turn a PDF, scan or photo of an invoice into an XRechnung or ZUGFeRD e-invoice: AI fills the form, the rules check it.
- [PDF to ZUGFeRD](https://xmlvalid.com/pdf-to-zugferd): Turn your own PDF invoice into ZUGFeRD: the XML goes inside your PDF, its pages as they are, checked against EN 16931 first.
- [Receive e-invoices for free](https://xmlvalid.com/e-invoice-inbox): An email address of your own for e-invoices: forward an XRechnung or ZUGFeRD invoice and get it back as a PDF to read, checked against its rules.
- [XML validator](https://xmlvalid.com/validate): check a document against XSD, DTD, RelaxNG or Schematron, up to 1 GB.
