Skip to main content

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.
To choose the mode, open the registration workflow in the Console, select the Register supplier with AT step and pick a Mode. In the workflow’s code view, this is the step’s config:
The mode is stored on the supplier each time the registration workflow runs, so to switch a supplier between modes, change the step’s mode and re-run the workflow on the supplier.
Switching a supplier between testing and simulation clears any AT credentials stored for it. Credentials entered in simulation mode are never checked against the AT, so they can’t be carried over to testing. After switching to testing, the supplier must enter their credentials again in the Supplier Portal.

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.
All of the following steps must be carried out from the Invopop Console.
1

Connect the AT Portugal App

  1. Navigate to Configuration → Apps.
  2. Find AT Portugal in the app discovery list.
  3. Click Connect to activate.
2

Create Supplier post-registration workflow

AT supplier post-registration workflow

Add to my workspace →
3

Configure the AT Portugal App

  1. Navigate to Configuration → Apps.
  2. Find AT Portugal in the connected apps list.
  3. Click Configure and choose the “Post-registration workflow” we created in the previous step.
  4. Click the Save button.
4

Configure the supplier registration workflow

AT supplier registration workflow

Add to my workspace →

Register a supplier

1

Submit the Supplier Information

This can be done either manually via the Invopop Console or programmatically via the API. The process is essentially the same; here we’ll do it manually.Find the Parties section of the sidebar and click Suppliers. Click the + New Supplier button to be presented with a new editor. You can use the following example as a template, and replace it with the details of your company. Note that you’ll need the details of a real company or self-employed individual in live and in sandbox testing mode. In simulation mode, any valid Portuguese NIF will do:
Portugal AT supplier example
Each supplier must have a unique email address. The email serves as the login for the Supplier Portal, so it can only be linked to one supplier. Attempting to register a different supplier with an already-used email will result in an error.
Click Build, ensure there are no errors, and click Save.We should now see the document. Find and click the Select Workflow button. Select the Register Supplier workflow created during setup, and click Run Workflow.The execution should be successful, and the silo entry will now be in the “Processing” state.
2

Obtain the Supplier's AT Credentials

Skip this step for sandbox suppliers in simulation mode: the AT web services are simulated, so no credentials are needed.
To complete the registration process, the supplier will need to obtain the credentials of a user with the necessary permissions in the AT’s Portal das Finanças. To create a new user, the supplier can follow these steps:
  1. Go to the AT’s Portal das Finanças and click on the Iniciar Sessão button.
  2. Authenticate by any of the available methods.
  3. Go to Todos os Serviços > Autenticação de Contribuintes > Gestão de Utilizadores.
  4. Click on the Criar Novo Utilizador button.
  5. Fill in the form with the required information. We recommend setting a name that identifies the purpose of the user, for example “Invopop User”.
  6. 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.
  7. Click on the Submeter button to create the user.
  8. Store the username and password in a secure location, as they will be needed in the next step.
3

Provide the Supplier's AT Credentials and Register Series

White-label integration: If you need to fully integrate this functionality into your own platform, the AT Portugal API provides programmatic access to manage credentials, register series, and generate SAF-T reports without requiring suppliers to use the Supplier Portal as described below.
Now, the supplier will need to complete the registration process in the Invopop’s Supplier Portal:
  1. Go to the Invopop AT Portugal Supplier Portal
  2. 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.
  3. 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.
  4. Go to the Series section, click + Register and register at least a series for each document type that the supplier will issue.
Once the series are registered, the supplier will be able to issue documents using them. When this happens, the system will automatically execute the “Post-registration workflow” if one was configured.
For detailed information about series management in Portugal, including naming conventions and automatic sequence assignment, see the Series management section below.
At this point, you’re ready to start issuing documents on behalf of the supplier. Head over to the AT issuing invoices guide to continue.

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.
If you need to change the supplier’s login email for the Supplier Portal, update the email in the Supplier Record and re-run the registration workflow so the portal access is updated accordingly.

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 (^).
Examples: 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’s code 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:
The series type is set at registration time and cannot be changed afterward. Make sure to choose the correct type for your use case.

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

Add to my workspace →
Unregistering also releases the supplier’s Supplier Portal email address, so it becomes available again for registering a supplier in the same or in any other workspace.

FAQ

Run the AT Register Supplier workflow on the supplier, provide their AT web-service credentials (not needed for sandbox suppliers in simulation mode), then register at least one series per document type they’ll issue. Both can be done in the supplier portal or through the API (credentials, series). Each series gets a validation code from the AT, used to build the ATCUD on every document. See Register a supplier.
An AT web-services sub-user (username and password) created in the AT portal, in both models. It always needs the 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.
Invopop stores the AT web-service credentials encrypted at rest, in both models: they’re needed to register series, and for real-time reporting. Sandbox suppliers in simulation mode don’t need credentials; any entered are stored without being checked against the AT, and are cleared if the supplier switches to testing mode. In the SAF-T model, the supplier (or their accountant) also downloads the monthly SAF-T file and uploads it to the AT’s portal.
Yes. Set the Register supplier with AT step to 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.
More available in our Portugal FAQ section

Participate in our community

Ask and answer questions about Portugal’s regulation →