---
title: "Receive invoices by email"
description: "Learn how to give suppliers one address for their invoices and choose who may use it."
---

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

# Receive invoices by email

Each customer gets one email address for supplier invoices, such as `acme-gmbh-k3f9@inbox.certinvo.com`. An
XML or PDF invoice that an approved sender mails there is filed and checked like a file you upload in the
console. This guide shows how to set up the address and what happens to each mail.

Your own invoices, the ones you send out, go to a second address with its own senders. See
[Mail invoices to your send address](/how-to/invoices/send-an-invoice-by-email#mail-invoices-to-your-send-address).

## 1. List the senders you accept

1. In the console, open **Einstellungen**, then **Rechnungen**, then **E-Mail-Versand**; the inbox is the page's first part.
2. Under **Freigegebene Absender**, write one entry per line:
   - An address, such as `buchhaltung@lieferant.de`, accepts one sender.
   - A domain, such as `@lieferant.de`, accepts every address at that domain. It does not accept its
     subdomains.
3. To refuse mail its sender's server did not sign, tick **Signierte E-Mails verlangen (DKIM oder DMARC)**. It is
   off by default. A refused mail keeps its files, so a person can still let it in.
4. Choose **Speichern**. It waits until the list has been read, so a list that did not load is never
   saved over; a list that could not be read says so, with **Erneut versuchen**.

The first save creates your address and shows it above the list. The four random characters at its end make
it hard to guess. The list holds up to 200 entries.

To add many senders at once, choose **Importieren und exportieren** beside **Speichern**. It downloads the
list, or a sample, as CSV, Excel or JSON, one column `sender`, and imports a file: the block shows what the file would
add before you choose to import. An import only adds; it never removes a sender.

You can do the same through the API:

- `PUT /v1/email-inbox` with `{ "senders": [...] }` saves the list; `"requireSignedMail": true` also refuses mail that
  passed neither DKIM nor DMARC. Left out, the setting stays as it was. Only a signed-in person can save it.
- `GET /v1/email-inbox` returns the address, the list and the last 20 mails.
- `GET /v1/data-files/email-inbox-senders?format=csv` downloads the list as a file (`csv`, `xlsx` or `json`), one
  column `sender`; `/sample` is a file to fill in. `POST .../previews` with `{ "data": "<base64>" }` says what a
  file would add, row by row, and `POST .../imports` with the same file and the preview's `basedOn` adds it. An
  import only adds: a sender the file leaves out stays. Only a signed-in person can import.
- `GET /v1/arrivals/not-accepted?direction=in` returns every mail and SFTP file that did not become an invoice,
  and every file that could not be read, newest first, a page at a time. Pass its `nextCursor` as `cursor` for
  the next page.
- `POST /v1/arrivals/not-accepted/{id}/allow` adds a refused mail's sender to the list and files the files it
  kept. `POST /v1/arrivals/not-accepted/{id}/dismiss` deletes them. Only a signed-in person can let a sender in; a key may dismiss.
- A file that could not be read has an id such as `file-12`. `GET /v1/arrivals/not-accepted/{id}/file` downloads
  it, and `.../dismiss` deletes it.
- A file with a virus also has an id such as `file-12`, with the reason `virus-found` and the scanner's name for the
  virus in `virus`. It has no download; `.../dismiss` deletes the row.

## 2. Give the address to your suppliers

Suppliers send their invoices to the address as attachments. One mail may carry several invoices.

## What happens to a mail

| The mail | What happens | Where you see it |
| --- | --- | --- |
| From an approved sender, with XML or PDF files | Each XML and PDF is filed as a received invoice and checked. Other attachments, such as a logo, are left out. | **Eingang**, as an invoice |
| From anyone else | Nothing is filed. Its XML and PDF files are kept for 30 days. | **Eingang**, tab **Nicht angenommen**: **Absender nicht freigegeben** |
| From an approved sender, with no XML or PDF, attached or in a ZIP | Nothing is filed. | **Eingang**, tab **Nicht angenommen**: **Keine Rechnungsdatei angehängt** |
| From an approved sender, with a ZIP | Each XML and PDF inside the ZIP is filed as if it were attached. Folders, other files and a ZIP inside the ZIP are left out. A file's name is read as the ZIP states it: as UTF-8 when the ZIP says so, else as Code Page 437, which a ZIP made by Windows Explorer uses. So `März.pdf` keeps its `ä`. | **Eingang**, as an invoice |
| With a ZIP that is damaged, has a password, holds more than 100 invoice files or unpacks to more than 50 MB | Nothing of the mail is filed. A file whose bytes do not match the ZIP's own checksum makes the ZIP damaged. | **Eingang**, tab **Nicht angenommen**: **ZIP-Datei nicht lesbar** |

The tab **Nicht angenommen** is the last tab above the inbound list. It shows each mail and SFTP file that did not
become an invoice, newest first, with the sender and the subject.

If a refused sender was meant to get through, choose **Absender erlauben und ablegen** in its row. The sender is
added to the list, and the files the mail kept are filed and checked like any mail. **Verwerfen** deletes the kept
files instead. A refused mail keeps its files for 30 days; after that, or for a mail that kept none, add the sender
in step 1 and ask for the invoice again. Each kept file is at most 10 MB, the upload limit.

A file that was filed and then could not be read also gets a row of its own in **Nicht angenommen**, under the mail
it came in. A PDF with no invoice data inside says **Keine E-Rechnung**: it is a plain PDF, so ask the supplier for
XRechnung or ZUGFeRD. Any other file says **Datei nicht lesbar** and why. Either one can be downloaded with
**Herunterladen** for 30 days, or deleted with **Verwerfen**.

Every received file is scanned for viruses before it is filed, including each file from a ZIP. A file with a virus is
never filed and never kept. Its row in **Nicht angenommen** says **Virus gefunden:** and the scanner's name for the
virus, such as `Eicar-Test-Signature`. It offers only **Verwerfen**, and it goes after 30 days. The other files of
the same mail are filed as usual. When the virus scan cannot run, the file waits and is filed once the scan has run.

Filed invoices appear in the inbound list with their check, as any upload does. They count against your
plan's documents like an upload. When the email provider delivers the same mail twice, it is filed once.

## Who may

Setting up the inbox needs an owner, an admin or a developer. Anyone else gets 403 `role_required`. 

## See also

- [Send an invoice by email](/how-to/invoices/send-an-invoice-by-email)
- [Check a received invoice](/how-to/invoices/check-a-received-invoice)
- [Send and receive invoices by SFTP](/how-to/invoices/send-and-receive-invoices-by-sftp)

Source: https://docs.certinvo.com/how-to/invoices/receive-invoices-by-email/index.mdx
