> For the complete documentation index, see [llms.txt](https://wiki.dieagenturverwaltung.de/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://wiki.dieagenturverwaltung.de/die-agenturverwaltung-en/onboarding/nummernsysteme/gutschrifts-und-rechnungsnummern.md).

# Credit invoice and invoice numbers

### **Best practice for invoices**

The numbers consist of\
\<RG-prefix>-\<customer-code>-\<four-digit year>-\<three-digit sequential number>

> RG-TUI-2018-012\
> RG-BAB-2019-001

The three-digit sequential invoice number restarts at the turn of the year with 001. If there really are more than 999 invoices for a customer in one year, the number automatically becomes four digits.

#### Advantages of this pattern <a href="#vorteile-dieses-musters" id="vorteile-dieses-musters"></a>

* The number is suitable as a filename - even on a web server
* The prefix distinguishes between invoice and estimate
* In a file system, files named by invoice number automatically sort by customer, year and sequential number
* The customer code defines a separate number series for the customer 
* Customers cannot deduce the agency's revenue
* If customer codes are established in the agency, they are easy to search by

#### Number ranges for **invoice numbers**

In addition, the agency software allows maintaining invoice numbers in so-called invoice number series.\
For example, you can open a separate invoice number series for each customer. **This way it is not apparent from the invoice number whether and how many invoices you issue to other customers**. German tax law permits maintaining such invoice number series.

Contact us if you have further questions on this topic.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://wiki.dieagenturverwaltung.de/die-agenturverwaltung-en/onboarding/nummernsysteme/gutschrifts-und-rechnungsnummern.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
