Regulatory Map · Portugal

SAF-T (PT) in Portugal: Invoicing File, Accounting File with the IES and Tax Audits

SAF-T (PT) is the standard XML file in which Portuguese invoicing and accounting systems export their tax data, created by Ordinance No. 321-A/2007 and applied since 2008. Companies and other entities covered by Article 123(1) of the Corporate Income Tax Code (Código do IRC) must produce it whenever the Tax and Customs Inspection services request it or a filing obligation requires it, and every AT-certified invoicing program must be able to export it. The structure in force is version 1.04_01, applicable since 1 July 2017. The main change ahead is in accounting: under Ordinance No. 191/2025/1, the accounting SAF-T (PT) file has to be submitted and validated before the annual IES/DA return for tax periods from 2026, which is filed in 2027 or later.

This guide covers the file itself, its use for invoicing, the accounting submission with the IES and delivery in a tax audit. Certified software, the ATCUD, the QR code and the monthly reporting of invoice data, as well as e-invoicing and B2G, have their own guides for Portugal.

Timeline

Key dates.

  1. Ordinance No. 321-A/2007 created the SAF-T (PT) file, applicable to invoicing transactions from 1 January 2008 and to accounting records from the 2008 financial year.

  2. Ordinance No. 363/2010 made the ability to export the SAF-T (PT) file one of the requirements for the AT to certify an invoicing program.

  3. Ordinance No. 302/2016 came into force for financial years from 2017: the file is produced at the request of the tax inspection services or for filing obligations that require it, and general ledger accounts are mapped to the official taxonomies.

  4. The data structure of Ordinance No. 302/2016, published by the AT as version 1.04_01, came into force. For invoices issued from that date, the data reported to the AT must use this version.

  5. Ordinance No. 31/2019 set the rules for submitting the accounting SAF-T (PT) file before the IES/DA, initially for the IES/DA of tax periods from 2019.

  6. Decree-Law No. 48/2020 set which fields of the accounting file are de-characterised before submission and moved the start to the 2020 periods filed in 2021. The start was later postponed again.

  7. Ordinance No. 191/2025/1 applied the accounting SAF-T (PT) submission rules of Ordinance No. 31/2019 only to the IES/DA for tax periods from 2026, filed in 2027 or later.

  8. First IES/DA returns, for the 2026 tax periods, for which the accounting SAF-T (PT) file must be submitted and validated beforehand.

At a glance

The obligation in brief.

Tax and e-invoicing rules change often. This guide is a summary for orientation: check the official source or talk to us before making decisions.

Summary of SAF-T (PT) in Portugal: Invoicing File, Accounting File with the IES and Tax Audits
ImplementationInvoicing and accounting data since 2008. On request of the tax inspection services or for filing obligations that require it. Accounting file submitted before the IES/DA for tax periods from 2026, filed in 2027 or later.
Legal basisArticle 123(8) of the Código do IRC; Ordinance No. 321-A/2007, as amended by Ordinance No. 302/2016; Article 3(a) of Ordinance No. 363/2010; Ordinance No. 31/2019; Decree-Law No. 48/2020; Ordinance No. 191/2025/1.
Tax AuthorityAutoridade Tributária e Aduaneira (AT), which publishes the structure, the XSD and the validator and receives the files on the Portal das Finanças.
WhoEntities covered by Article 123(1) of the Código do IRC: companies and other entities whose main activity is commercial, industrial or agricultural, with head office or effective management in Portugal or a permanent establishment there. Users of certified invoicing software are also covered. The accounting submission applies to IES/DA filers, including individuals with organised accounting.
FormatXML, structure version 1.04_01 (since 1 July 2017), validated against the XSD published by the AT. Windows-1252 encoding and amounts in euros. Accounts mapped to the taxonomies of Ordinance No. 302/2016 (SNC base or IFRS, SNC for micro-entities, or others).
PeriodIn general one whole financial year. The accounting file is a single file; an invoicing file may exceptionally cover whole months for technical reasons. Users cannot select which documents to include.
Data protectionBefore submission, the accounting software de-characterises descriptions and customer and supplier data with a key from the INCM webservice. The AT keeps only taxonomy-aggregated data outside an audit and can request the key only during a notified inspection (Decree-Law No. 48/2020).
ArchivingBooks, records and supporting documents are kept for 10 years, and computerised systems must be able to export exact copies (Article 19 of Decree-Law No. 28/2019). The AT keeps submitted accounting files until the end of the 15th year after the year they cover.
PenaltiesNot having the mandatory file export model: €225 to €22,500 (Article 120(1) RGIT). Producing the standard export file without the legal data structure: €250 to €5,000 (Article 121(3)). Deliberately refusing to deliver accounting records or tax-relevant documents, including electronic versions: €375 to €75,000 (Article 113(1)).
Questions that matter

Frequently asked questions.

From when do I have to submit the accounting SAF-T (PT) with the IES?

From the IES/DA for tax periods from 2026, filed in 2027 or later (Article 3 of Ordinance No. 191/2025/1). The file is submitted and validated on the Portal das Finanças before the IES/DA; without it, the IES/DA cannot be sent when it includes Annex A or I. The AT then pre-fills the cover page and Annexes A and I from the file, and those fields can only be corrected by submitting a new file.

What are the deadlines for submitting the accounting SAF-T (PT)?

Article 3(1) of Ordinance No. 31/2019 sets them according to the type of taxpayer, the date by which the accounts must be approved and whether the tax period follows the calendar year. Check the deadlines in force with the AT before the first IES/DA for the 2026 periods. A certified accountant (contabilista certificado) submits it, and the AT validates it within 10 days.

Which SAF-T (PT) version do I have to use?

Version 1.04_01, the data structure of Ordinance No. 302/2016, applicable since 1 July 2017. The AT publishes the XSD and a local validator on the Portal das Finanças. According to the AT, data for invoices issued from 1 July 2017 cannot be reported with earlier versions, and under Ordinance No. 302/2016 general ledger accounts are mapped to the official taxonomies for financial years from 2017.

Does the AT see all the details of my accounts?

Not outside an audit. Under Decree-Law No. 48/2020, the software de-characterises account, journal and entry descriptions and customer and supplier data with a key from the INCM before sending the file, together with a checksum of the original. After validation, the AT may use only data aggregated by taxonomy and must delete the detail from its databases. It can obtain the key only during a notified inspection, and the INCM informs the taxpayer when that happens.

Can the AT ask for the SAF-T (PT) in a tax audit?

Yes. Under point 1 of Ordinance No. 321-A/2007, as amended by Ordinance No. 302/2016, the file must be produced whenever the Tax and Customs Inspection services request it within their powers. Each application exports its own records for the whole period requested, and deliberately refusing to deliver accounting records or tax-relevant documents is fined €375 to €75,000 (Article 113 RGIT).

How we help

Our approach to SAP integration and SAF-T (PT)

SAF-T (PT) asks a SAP or ERP system to export complete invoicing and accounting data in version 1.04_01, with every general ledger account mapped to the right taxonomy, master data and documents consistent with what was printed and reported, and data from other invoicing applications covered by their own files. For the IES of the 2026 periods, the accounting file also has to be de-characterised with the INCM key and validated before the return, so errors in mapping or master data become blocking.

We start with SAP Document and Reporting Compliance and the SAP localisation for Portugal wherever the standard covers the scenario, and complement them with our Code10 eCompliance Hub and integration services where taxonomy mapping, data from other systems or local requirements go beyond it, so that the file can be validated against the XSD before it reaches the AT.

See how Code10 eCompliance Hub works See all implementation options: SAP DRC, Code10 eCompliance Hub and eCompliance as a Service
Let’s start with your context

Can your SAP system produce a valid SAF-T (PT) accounting file for the 2026 IES?

Tell us which systems and countries are involved and we will review the scope with the team that implements these obligations.

Request a demo