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.
Key dates.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
First IES/DA returns, for the 2026 tax periods, for which the accounting SAF-T (PT) file must be submitted and validated beforehand.
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.
| Implementation | Invoicing 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 basis | Article 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 Authority | Autoridade Tributária e Aduaneira (AT), which publishes the structure, the XSD and the validator and receives the files on the Portal das Finanças. |
| Who | Entities 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. |
| Format | XML, 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). |
| Period | In 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 protection | Before 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). |
| Archiving | Books, 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. |
| Penalties | Not 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)). |