Most articles about automating invoicing were written for a business in the US or the UK, where you can generate a PDF with your logo on it and email it. In Portugal that is not an invoice. It is a nicely formatted document with no legal standing.
This is the guide we wish existed when clients ask us to "just automate the invoices." Some of it is genuinely constrained by law. Most of the time that gets wasted, though, is in the parts around the invoice — and those you can automate completely.
A necessary disclaimer: we build systems, we are not accountants or tax advisers. Rules change and your situation is specific. Confirm anything below with your contabilista before acting on it.
What the rules actually constrain
Three things catch people out.
Invoices must be issued through certified software. Portugal requires invoicing software certified by the Autoridade Tributária for most businesses. That means you cannot have a script generate a compliant invoice PDF from scratch, however tidy your automation is. The invoice has to come out of a certified system — InvoiceXpress, Vendus, Moloni, Sage, Primavera, Toconline and similar.
This is less limiting than it sounds, because the good ones have proper APIs. You are not writing an invoicing engine; you are automating the act of telling a certified engine what to bill.
ATCUD and the QR code. Compliant invoices carry a unique document code and a QR code, tied to series registered with the AT in advance. Your certified tool handles this — but it is exactly why "I'll just build my own invoice PDF" ends badly.
SAF-T. Your accountant needs a standard export file from that certified system. Another reason to work with the tool rather than around it.
The upshot: do not automate the issuing of the invoice document. Automate everything that surrounds it. That is where the hours are anyway.
Where the time actually goes
When we sit with a client and time this properly, issuing the invoice is rarely the expensive part. The cost is in:
- Working out what to bill — digging through a calendar, a WhatsApp thread, a notebook
- Chasing the details you need: NIF, address, correct legal name
- Retyping the same client into the invoicing tool for the eleventh time
- Remembering to invoice at all, usually three weeks late
- Chasing payment, then chasing it again, then feeling awkward about it
- Reconciling what came into the bank against what was invoiced
- Assembling everything for the accountant each month
Every one of those can be automated, and none of them touches the certified boundary.
The pattern that works
1. Capture the billable event where it happens
The moment work is done or a booking is completed should be the moment the system knows there is money owed. Not a note to yourself.
For Algarve Know How, that meant completed services triggering the right billing automatically — a NIF registration, a visa renewal, an AL licence each carry their rate, and finishing the job is what starts the invoice. Staff time tracking fed the same pipeline, so hours logged against a client became billable lines rather than a memory test at month end.
2. Keep clients in one place, with a valid NIF
Your client record — legal name, NIF, address, email, payment terms — should exist once and flow into the invoicing tool via its API. Most invoicing platforms will let you create or match a client programmatically.
Collect the NIF at the point of sale, not at invoicing time. Chasing a NIF two weeks later, from a customer who has gone home, is one of the most avoidable time sinks in a Portuguese small business.
3. Let the certified tool issue the document
Your automation calls the API with client, lines, rates, VAT and series. The tool produces the compliant invoice with its ATCUD and QR code, and hands you back a PDF and a URL. Compliance stays where it belongs.
4. Deliver and record it automatically
Email the invoice the moment it exists, from your own domain, with the payment link in it. File a copy in Drive in a sensible folder structure. Log it in your sheet or dashboard. This step alone typically saves more time than people expect, because it is where "I'll do it later" lives.
5. Chase payment without having to be the person chasing
Polite, automatic reminders at day 7, day 14 and day 30, stopping instantly when payment lands. This is the single highest-value piece for most small businesses, for a reason that is not about time: everyone hates chasing, so everyone delays it, and a system that never feels awkward collects faster than a person who does.
We built this shape for Luz Villa Sales.
6. Move recurring clients onto automatic payment
Retainers, subscriptions and maintenance fees should collect themselves via direct debit or a card on file. This changes your cash flow more than any other single item, and it removes an entire monthly ritual.
7. Reconcile
Match incoming payments against issued invoices automatically and flag only the ones that do not match. You want a five-minute exception review, not an hour of comparing two screens.
Recibos verdes and the sole trader case
If you are a sole trader on recibos verdes, the calculus is different. Volume is usually low enough that the Portal das Finanças interface is workable, and there is no certified software requirement in the same way.
The automation that pays off for you is not the invoice. It is the tracking around it: what have I billed this year, what is my running total against the thresholds that matter to me, what is still unpaid, what did I actually earn each month. Most sole traders we meet genuinely do not know these numbers until the accountant tells them in the spring, which is exactly when it is too late to act on them.
A simple sheet with automatic aggregation and a monthly summary email is a couple of hours of work and changes how you run the year.
What this costs
From our own quoting, in 2026:
- Invoice delivery, filing and payment chasing, on top of a tool you already use: €800–€2,000
- Billable events to invoices automatically, including client sync: €1,500–€4,000
- The full picture — time tracking, invoicing, recurring payments, reconciliation, reporting: €4,000–€10,000
Plus your invoicing tool's own subscription, usually €10–€40 a month.
Judge it against your own numbers. If invoicing and chasing costs you six hours a month, and your time is worth €30 an hour, that is €2,160 a year — before counting the invoices that go out late or not at all, which is usually the bigger number.
Three mistakes we see repeatedly
Automating a broken process. If your billing rules are inconsistent, automation makes you inconsistent faster. Fix the rules on paper first. This is genuinely the most common cause of a disappointing automation project.
Building around the certified tool instead of with it. Every few months someone shows us a beautiful custom invoicing system that cannot legally issue an invoice. Use the API.
Not telling the accountant. Your contabilista has a way they want things. Loop them in before you build, not after. A ten-minute call at the start prevents a rebuild.
Where to start
Pick the single worst part. For most people it is chasing payment, and it is also the easiest to automate without touching anything compliance-related.
Get that live. Feel the difference for a month. Then move up the chain toward the billable event.
If you want to talk through what is automatable in your specific setup — including us telling you honestly that your volume does not justify it yet — see what we do on business automation.
Ready to take action?
Let's discuss how we can help your business grow with strategic web solutions and automation.
Start a Conversation