Introduction
Before a supplier can issue tax documents in Portugal through Invopop’s certified implementation, they must be registered with the AT Portugal app, provide their credentials for the Autoridade Tributária e Aduaneira (AT) web services, and register the document series they will issue with. Sandbox suppliers registered in simulation mode skip the credentials, as the AT web services are simulated. In this guide you’ll learn how to register a supplier using the AT Portugal app, keep their data up to date, manage their document series, and unregister them when they should no longer issue invoices from your workspace. Once a supplier is registered, continue with the companion guide: Portugal: Issuing invoices.Prerequisites
To register a supplier with the AT, you will need:- Supplier details, including:
- Legal business name
- Tax ID
- Business address
- An email address for the supplier to access the Supplier Portal
- The supplier’s credentials to access the AT’s web services for registering series and report documents in real-time (not needed for sandbox suppliers in simulation mode)
Sandbox modes
In sandbox, the Register supplier with AT step’s configuration selects how the supplier talks to the AT. Live enrollments ignore this setting and always use the AT production environment.- Testing works exactly as live does, but against the AT’s testing environment. The supplier must be a real company or self-employed individual, and you need their AT web-services credentials to register series and report documents.
- Simulation never sends anything to the AT. Invopop answers series registration and real-time reporting of invoices, payments, work documents and transport documents locally, returning the same kind of responses the AT would: series get a validation code, and transport documents get an AT code. The supplier doesn’t need to be a real company, so several workspaces can share the same NIF.
config:
Setup
There are four key processes to prepare:- connect the AT Portugal app,
- create a supplier post-registration workflow,
- configure the AT Portugal app, and,
- configure a supplier registration workflow.
Connect the AT Portugal App
- Navigate to Configuration → Apps.
- Find AT Portugal in the app discovery list.
- Click Connect to activate.
Create Supplier post-registration workflow
AT supplier post-registration workflow
- Workflow
- Code
Configure the AT Portugal App
- Navigate to Configuration → Apps.
- Find AT Portugal in the connected apps list.
- Click Configure and choose the “Post-registration workflow” we created in the previous step.
- Click the Save button.
Configure the supplier registration workflow
AT supplier registration workflow
- Workflow
- Code
Register a supplier
Submit the Supplier Information
- Company
- Self-employed individual
Obtain the Supplier's AT Credentials
- Go to the AT’s Portal das Finanças and click on the Iniciar Sessão button.
- Authenticate by any of the available methods.
- Go to Todos os Serviços > Autenticação de Contribuintes > Gestão de Utilizadores.
- Click on the Criar Novo Utilizador button.
- Fill in the form with the required information. We recommend setting a name that identifies the purpose of the user, for example “Invopop User”.
- Select the user permissions, depending on the supplier needs:
WSE– Always required. It allows to register series for any document type.WFA– Required if the supplier wants to submit invoices to the AT in real-time, rather than using SAF-T.WDT– Required if the supplier wants to submit transport documents (e.g. “Guia de Remessa”, “Guia de Transporte”, etc.) to the AT in real-time, rather than using SAF-T.
- Click on the Submeter button to create the user.
- Store the username and password in a secure location, as they will be needed in the next step.
Provide the Supplier's AT Credentials and Register Series
- Go to the Invopop AT Portugal Supplier Portal
- Enter the email address provided in the supplier’s information. The system will send to the provided address a code to complete the authentication process.
- Once logged in, go to Credentials, enter the AT credentials obtained in the previous step, and press Save. For suppliers in simulation mode, the credentials form is disabled and you can go straight to the next step.
- Go to the Series section, click + Register and register at least a series for each document type that the supplier will issue.
Updating supplier data
After a supplier has been registered, you may need to update their information over time — for example, a change of address. Keep in mind that supplier data is used in two different contexts:- SAF-T reports use the data stored in the Supplier Record. To have updated information appear in SAF-T reports, update the Supplier Record directly via the API or the Console. Re-running the registration workflow is not necessary for data-only changes.
- Printed PDFs use the supplier details included in each individual invoice, not from the Supplier Record. Make sure the invoice data is correct at the time of issuance.
Series management
Series management in Portugal has specific requirements that differ from other countries. Understanding these particularities is essential for proper document issuance.Naming
All series names in Portugal must follow a specific format:- Document type prefix: The name must start with a code indicating the document type (e.g.,
FT,FS,FR,NC…), followed by a space. - Base name: After the space, you can add any custom name you prefer. The custom name can contain letters, numbers, and most special characters, but not spaces, forward slashes (
/), or carets (^).
FT A001, NC 2024-01, FR INV-2024
When you register series through the Supplier Portal, you’re asked to provide a base name (without the document prefix) and select the document types you plan to issue. The portal combines each selected prefix with the base name, registers every resulting series with the AT, and retrieves the corresponding validation code required for generating ATCUD codes.
Sequence assignment
Unlike other countries, Portugal regulations do not allow pre-assigning sequence numbers to documents. The sequence number (i.e., the document’scode property) is automatically assigned during the Record document for SAF-T step in your workflow, following AT regulations. This is why you’ll find no sequence step in Portugal workflow templates and you should not add one.
Series type
Every series registered with the AT has a type that determines its purpose. You must choose one of three types when registering a series, whether through the Supplier Portal or the API:Unregister a supplier
Unregistering a supplier revokes their invoice issuing privileges from your workspace. You might need to unregister an entity because the supplier is no longer your client or because of a change in their Tax ID. To do so, use the following workflow template:AT unregister supplier
- Workflow
- Code
FAQ
How do I register a supplier with AT?
How do I register a supplier with AT?
What credentials does AT require to authenticate a supplier?
What credentials does AT require to authenticate a supplier?
WSE permission, to register series; add WFA if documents are reported in real time. This applies to live and to sandbox testing mode: in sandbox simulation mode the AT is simulated and no credentials are needed.How are supplier credentials stored in Invopop for Portugal?
How are supplier credentials stored in Invopop for Portugal?
Can I test in sandbox without a real company or AT credentials?
Can I test in sandbox without a real company or AT credentials?
simulation mode. Invopop then simulates the AT web services: you can register series and report documents in real time with any valid Portuguese NIF, and the supplier doesn’t need AT credentials. Nothing is sent to the AT. Use the default testing mode instead to test against the AT’s testing environment with a real company and credentials. Live always uses the AT production environment. See Sandbox modes.🇵🇹 Invopop resources for Portugal
🇵🇹 Invopop resources for Portugal