5 min readUpdated:

SAF-T in Portugal: what is the invoicing file?

The invoicing SAF-T (PT) is a standardised XML file containing records from the program you use to issue documents. Under the rules of the AT (Portugal’s tax authority), it provides the basis for one way of communicating those details, but exporting it does not prove that they were communicated. These are different actions with different results.

What is the invoicing SAF-T?

The invoicing SAF-T contains the tax records relating to issued documents and provides the basis for communicating those details to the AT. Portaria n.º 302/2016, anexo I defines the format and structure of this tax audit file. Here, the relevant part is the one relating to invoicing.

The XML file is not the invoice or the PDF you send to your customer. It is not e-Fatura either: e-Fatura (the AT’s portal of invoices issued with your NIF) is where communicated information is integrated. If you have a question about the document to prepare, see the explanation of the pro-forma invoice or the steps for issuing a recibo verde. The guidance on invoices and receipts brings these tasks together.

Article 3.º of Decreto-Lei n.º 198/2012 provides for a communication route using a standardised file structured on the basis of SAF-T (PT). That does not mean every field in the audit file is sent to the AT. It is useful to distinguish the exported content from the set of details communicated.

What information does it contain, and where does it come from?

The invoicing program exports records from its database, including information about the issuer, period, customers, products or services, and issued documents. Portaria n.º 302/2016 describes these categories and requires the application itself to perform the export. Get the file from the program you use to issue documents; do not compile or alter it by hand.

The Portaria provides for a full or partial annual tax period. Check the interval covered by the file and the purpose of the export: this rule is not an instruction to always communicate data from the start of the year, and it does not set the communication deadline.

Before using the file, compare its records with the issued documents:

  • Check the issuer’s NIF.
  • Check the period covered by the export.
  • Check the identifiers, dates, amounts and applicable tax information, including the original reason for not applying tax, where one exists.

Article 3.º of Decreto-Lei n.º 198/2012 lists the details to be communicated; the customer’s NIF depends on the conditions set out there. Do not turn that provision into a universal requirement for every customer. In FAQ 4976, the AT clarifies that the information communicated must reflect the issued documents.

As for the program, article 4.º of Decreto-Lei n.º 28/2019 includes using invoicing software among the conditions that require a certified program. The AT maintains the list of certified programs and their versions.

To choose the functions and plan for your work, compare the criteria for choosing an invoicing program.

Are exporting, validating and communicating the same thing?

Exporting creates the file, validating checks its structural conformity, and communicating transmits the details to the AT; saving the XML, by itself, does not prove integration in e-Fatura.

Portaria n.º 302/2016 requires compliance with the XSD validation scheme and the specified content. Checking the structure does not certify the program or, by itself, confirm that each document has been treated correctly for tax purposes. A structurally compliant file still needs to match the source documents.

Article 3.º of Decreto-Lei n.º 198/2012 provides for communication in real time, by file or by direct entry. Anyone required to produce SAF-T must choose communication in real time or by file. Your program may already communicate through a webservice: before sending a file, check which route is being used and which documents have been communicated.

For invoices and faturas-recibo (invoices and receipts in one, for a payment received at once) issued on the Portal das Finanças (the AT’s online portal), the AT explains in FAQ 4940 that separate communication is not needed because it already has the information at the time of issue. This answer refers to those documents; it does not allow you to draw the same conclusion about any receipt.

For communication by file, check the result under «Consultar ficheiros» (“View files”). In FAQ 4999 and 5002, the AT distinguishes the processing statuses and explains that «Integrado com sucesso» (“Integrated successfully”) means all documents in the different classes have been integrated in e-Fatura. Having only the XML saved does not demonstrate that result.

The «Rejeitado» (“Rejected”) status does not always mean that invoices are missing from the communication. The AT explains that a file containing only documents already communicated through a webservice, with no changes, may be rejected without requiring action for that reason. Read the result before deciding to resend it.

To send the file and check integration, follow the guide to submitting SAF-T.

As a practical precaution, keep the export and a record of the transmission and the status shown. Also check the applicable communication deadline: identifying the file does not settle that question.

Is it the same file as the accounting SAF-T?

The invoicing and accounting SAF-T files share information, but the accounting file also includes the chart of accounts and accounting entries, while the invoicing file contains invoicing records. Portaria n.º 302/2016 distinguishes the common information from the specific information when separate files are generated.

If the request came from your accountant, check whether they need invoicing data or accounting data. That question helps you avoid choosing an export based only on the name SAF-T. For invoicing, the next thing to check is the source program, the period covered and the evidence that the information was communicated to the AT.

Frequently asked questions

SAF-T: what is it?

SAF-T (PT) is a standardised XML file containing tax records exported by the program. For invoicing, it brings together data from issued documents and provides the basis for one way of communicating them to the AT. It is not the invoice sent to the customer, and saving the file does not prove that the records were communicated.

What does the SAF-T invoicing file contain?

Under the structure set out in Portaria n.º 302/2016, the file brings together information about the issuer, the period, customers, products or services, and invoicing documents. The program exports these records from its database. The data communicated to the AT must reflect the documents issued.

Is exporting the SAF-T the same as communicating it to the AT?

No. Exporting creates the file; communicating transmits the document details to the AT. Structural validation is a separate step too. For communication by file, the AT reports the integration result in e-Fatura. Check that status and keep a record instead of relying only on the exported XML.

Are the invoicing SAF-T and accounting SAF-T the same?

No. Portaria n.º 302/2016 provides for common and specific information when programs generate separate files. The invoicing file contains invoicing records; the accounting file includes the chart of accounts and accounting entries. Check which one you were asked for before exporting.

BravoLisa

Your purchase documents together

Lisa reads purchase receipts and invoices. The Free plan is available in Portugal; it does not issue invoices or prepare Portuguese tax returns.

Free

Free

Purchase receipts and invoices, with the source document.

  • Purchase documents read by Lisa
  • Purchase receipts and invoices together
  • Bank statement uploads
  • No credit card needed
Start free
Chat with a person (opens in a new tab)