Skip to main content

Overview

After an organization completes e-invoicing onboarding, it starts to automatically receive e-invoices and credit notes from vendors directly into Tesouro accounts payable. Incoming e-invoices are processed into payables 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, 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 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 endpoint. No need to set up credentials.
  2. Receive the e-invoicing via email (XML or PDF) in the ZUGFeRD format in the organization’s dedicated mailbox.
  3. Tesouro automatically detects if the email contains payables e-invoices by analyzing the attached files.
  4. A payable object is created in Tesouro.
This approach only works for accounts payable in Germany.

See also