Chat on WhatsApp

O que é SAFT-PT e-Fatura e como integrar com a Autoridade Tributária?

SAFT-PT (Standard Audit File for Tax, Portugal) is the XML e-invoice format mandated by the Portuguese Autoridade Tributária (AT). Portugal was the first EU country with mandatory e-Fatura (since 2013), well ahead of France (Factur-X 2026+) or Italy (FatturaPA 2019).

Concrete obligations for a Portuguese Magento store:

  • Every B2C invoice must be issued through certified billing software (Magento + a certified extension, or Magento + an external invoicing tool).
  • SAFT-PT XML must be generated at order/invoice completion and submitted to AT in real-time (via webservice) or monthly (via batch upload, mandatory by month +1).
  • ATCUD code (unique document code, mandatory since 2023) and QR code on every invoice (with hash, date, total, ATCUD).
  • Digital signature on every invoice using a certified hash algorithm chained to the previous invoice.

Magento integration: we connect Magento’s sales_invoice events to a certified PT billing module (Saphety, Vendus, Moloni, Primavera, PHC), Magento → certified module → AT webservice. Or for €5M+ stores, we build a direct AT integration via the «Comunicação de Facturas» SOAP API.

Was this helpful?