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

# Receive e-invoices

> Receive e-invoices via the PEPPOL network or email and automatically process them into accounts payable.

## Overview

After an organization completes [e-invoicing onboarding](/finops/guides/e-invoicing/onboarding), it starts to automatically receive e-invoices and credit notes from vendors directly into Tesouro [accounts payable](/finops/guides/accounts-payable/index).

Incoming e-invoices are processed into [payables](/finops/guides/accounts-payable/payables/index) with the `payable_origin` field set to `"einvoicing"`, indicating they were received via an e-invoicing network. The original e-invoice file is stored and accessible through the `einvoice_file_url` field in the payable object.

For [credit notes](/finops/guides/accounts-payable/credit-notes/index), the document's origin is specified in the `origin` field.

## Receive payables e-invoices via email

In Germany, payables e-invoices can be sent via email in the [ZUGFeRD format](https://de.wikipedia.org/wiki/ZUGFeRD) as an alternative to the PEPPOL network. This allows organizations to receive structured e-invoices without being registered on PEPPOL.

### How email receiving works

To receive payables e-invoices via email into Tesouro:

1. Create an e-invoicing connection via the [`POST /einvoicing-connections`](/finops/reference/openapi/einvoicing-connections/post-einvoicing-connections) endpoint. No need to set up credentials.
2. Receive the e-invoicing via email (XML or PDF) in the [ZUGFeRD format](https://de.wikipedia.org/wiki/ZUGFeRD) in the organization's dedicated [mailbox](/finops/guides/advanced/mailboxes).
3. Tesouro automatically detects if the email contains payables e-invoices by analyzing the attached files.
4. A payable object is created in Tesouro.

<Note>
  This approach only works for [accounts payable](/finops/guides/accounts-payable/payables/collect) in Germany.
</Note>

## See also

* [Send e-invoices](/finops/guides/e-invoicing/receive)
* [Collect payables](/finops/guides/accounts-payable/payables/collect)
