Invoice and admin automation in Portugal: what you can automate, and what the AT rules require
Certified software, ATCUD, QR codes, SAF-T and the 2027 signature rule, plus the order-to-cash and expense flows worth automating, a worked example and the controls that keep it safe.

In Portugal you can automate almost everything around an invoice, but not the invoice itself. Invoices must be issued by software certified by the Tax and Customs Authority (AT), carry an ATCUD code and a QR code, and be reported to the AT, either in real time or through a monthly SAF-T file by the 5th of the following month. The right approach is to let your CRM, shop or job system tell the certified program to issue the invoice through its API, then automate everything around it: sending, payment links with MB WAY and Multibanco, reminders, matching payments, capturing supplier invoices and preparing the monthly pack for your accountant. For a small services firm, that can save more than a dozen hours a month.
This guide sets out the rules your automation must respect, the order-to-cash and expense flows worth automating, a worked example, and the controls that keep it safe, including the qualified electronic signature currently due in 2027. The worked example includes a calculator that adds the cash-flow effect for your own business.
The rules automation must respect
| Rule | What it means in practice |
|---|---|
| Certified invoicing software | Invoices must be issued by a program certified by the AT. An automation tool, spreadsheet or custom script must never generate its own invoice PDFs |
| ATCUD | A unique document code on every invoice, mandatory since 2023, generated by the certified software from series registered with the AT |
| QR code | Required on invoices since 2022, also produced by the certified software |
| Reporting to the AT | Invoice data sent in real time by the software, or in the monthly SAF-T billing file by the 5th of the following month |
| Qualified electronic signature | PDF invoices are accepted without one until 31 December 2026; the requirement is currently scheduled for 1 January 2027, after several postponements |
| Corrections | Errors are fixed with credit notes issued by the certified software, never by editing or deleting an invoice |
| Archiving | Invoices and supporting documents must be kept for the legal retention period, generally ten years |
The golden rule: your automation instructs the certified program; the certified program issues the invoice. Using non-certified software to issue invoices exposes a business to fines, and it is the single most common mistake in home-made invoicing automations.
Order to cash: the flow worth automating
Sales side
From job done to money in the bank
Issue automatic
deal won in CRMorder paid in shopcall via API
ResultThe certified program issues the invoice with ATCUD and QR code, using data your team already entered
Collect automatic
MB WAY linkMultibanco referencepolite reminders
ResultCustomers can pay in seconds, and reminders go out before and after the due date until they do
Reconcile automatic
gateway webhookbank feedmark paid
ResultPayments are matched to invoices, receipts issued, and reminders stopped
Most certified invoicing programs used in Portugal, such as InvoiceXpress, Moloni, Vendus and TOConline, offer an API or ready-made connectors for shops and automation platforms. Portuguese payment gateways such as Easypay and ifthenpay can generate MB WAY requests and Multibanco references per invoice and notify your systems when payment arrives.
The expense side
Supplier invoices are the other half of the admin load. A typical automated flow:
- Capture. Supplier invoices arrive in a dedicated email address, or staff forward photos of receipts by email or WhatsApp.
- Extract. An AI step reads the supplier’s tax number (NIF), date, ATCUD, net amount, VAT and total.
- Check. The data is compared with what the supplier reported to the AT on the e-Fatura portal, and anything that does not match is flagged.
- Approve. The right person approves the expense with one click.
- Hand over. The document and its data go to your accounting software or your accountant’s folder, named and filed consistently.
Keep a person checking amounts and VAT on AI-extracted data until you have seen it run accurately for a few months. Extraction is good, not perfect.
What to automate first
| Workflow | Time it saves | Difficulty |
|---|---|---|
| Payment reminders with MB WAY or Multibanco | Hours chasing, and days of cash flow | Simple |
| Invoice creation from CRM or shop | Several minutes per invoice, and typing errors | Medium |
| Recurring invoices for retainers and subscriptions | Monthly routine work | Simple |
| Payment matching and receipts | Reconciliation time at month end | Medium |
| Supplier invoice capture with AI | Data entry and lost receipts | Medium |
| Monthly accountant pack | The end-of-month scramble | Simple |
Our guide to what to automate first explains how to score and prioritise workflows like these.
A worked example
Illustrative
A five-person services firm, 120 invoices a month
| Before | After | |
|---|---|---|
| Time per invoice | 8 minutes copying data, emailing | 1 minute reviewing |
| Hours a month | 16 | 2 |
| Value of time saved | €490 a month at €35/h | |
| Build cost | About €1,800 3 days at €75/h | |
| Payback | About 4 months after €40/month running costs |
Not counted: faster payment from automatic reminders and instant MB WAY links, which for many firms is worth more than the hours saved.
For build and running costs by workflow size, see how much business automation costs.
Run your own numbers, including the part the example leaves out: money arriving sooner.
Controls that keep it safe
- Never issue twice. Each invoice request carries a unique reference, so a retry cannot create a duplicate. Duplicates must then be cancelled with credit notes, which is exactly the mess automation should prevent.
- Get VAT right. Standard rates differ between the mainland (23%), Madeira (22%) and the Azores (16%), and exemptions and reverse-charge sales to EU businesses need the right wording. Map each product or service to its VAT treatment once, with your accountant, and let the software apply it.
- Approve before sending at first. Run the first month or two with a person approving each invoice before it goes out. Then switch to exceptions only.
- Check the monthly report. Compare what the software reported to the AT with your own records each month.
- Protect access. API keys belong to the business, stored securely, with access removed when people leave.
- Handle data properly. Invoicing and payment providers process personal data on your behalf, so sign their data processing terms under the GDPR.
Preparing for 2027
If the qualified electronic signature requirement takes effect on 1 January 2027 as currently scheduled, PDF invoices sent by email will need it to count as electronic invoices. Ask your invoicing provider now how they will support it, whether by signing PDFs or by sending structured electronic invoices, and whether your automations need any change. Check the final date with your accountant, because it has moved before.
Getting payments in faster also depends on how you remind people. Our guide to WhatsApp Business automation covers payment reminders by WhatsApp, which many Portuguese customers answer faster than email.
Want invoicing that runs itself, within the rules? Our automation team connects your CRM or shop to your certified invoicing software, adds MB WAY and Multibanco payments, reminders and reconciliation, and builds the expense capture your accountant will thank you for. Send us a brief and the specialist who would do the work will reply within one business day.
This guide explains the rules in plain language and is not tax advice. Confirm the treatment of your own invoices with a certified accountant.
Frequently asked questions
Can I automate invoicing in Portugal?
Yes, but invoices must be issued by software certified by the Tax and Customs Authority. The usual approach is to have your CRM, shop or job system instruct the certified program through its API, then automate sending, payment links, reminders and reconciliation around it.
When is the SAF-T billing file due?
The monthly SAF-T billing file must be submitted to the AT by the 5th of the month after the invoices were issued. Many certified programs can instead report each invoice in real time.
What are ATCUD and the QR code?
ATCUD is a unique document code that must appear on every invoice, mandatory since 2023. The QR code has been required since 2022. Both are generated by certified invoicing software.
Do PDF invoices need a digital signature?
PDF invoices are accepted without a qualified electronic signature until 31 December 2026. The requirement is currently scheduled to apply from 1 January 2027, after several postponements, so confirm the date with your accountant.
Can customers pay invoices by MB WAY or Multibanco automatically?
Yes. Portuguese payment gateways can generate an MB WAY request or a Multibanco reference for each invoice and notify your systems when the payment arrives, so the invoice is marked paid and reminders stop.
Is AI reliable for reading supplier invoices?
It is good but not perfect. AI can extract the supplier tax number, date, ATCUD, VAT and totals, but a person should check amounts and VAT until the process has proven accurate, and the data can be compared with what suppliers reported on e-Fatura.

