> ## Documentation Index
> Fetch the complete documentation index at: https://docs.invopop.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Smart Receipts supplier registration guide

> Register suppliers to issue smart receipts in Italy using the Italian Smart Receipts app.

## Introduction

Before a company can issue electronic tickets (*documento commerciale/scontrino elettronico*) in Italy, they must be registered as a supplier in Invopop with the credentials they use on the *Agenzia delle Entrate* (AdE) portal, so that receipts can be relayed to the AdE on their behalf.

In this guide you'll learn how to register a supplier using the [Smart Receipts Italy app](https://docs.invopop.com/apps/smart-receipts-italy.md). Once a supplier is registered, continue with the companion guide: [Italy: Issuing receipts](https://docs.invopop.com/guides/it-ticket.md).

| - | Sandbox | Live |
| - | - | - |
| **Supplier** | Test data accepted | Real Partita IVA and AdE credentials required |

## Prerequisites

To register a supplier for Smart Receipts, you will need:

* An Italian tax ID (Partita IVA) for the supplier.
* The supplier's *codice fiscale*.
* The supplier's [AdE portal](https://ivaservizi.agenziaentrate.gov.it/portale/) credentials (password and PIN).

## Setup

There are three key processes to prepare:

1. Create a supplier post-registration workflow.
2. Connect the Italian Smart Receipts app.
3. Configure a supplier registration workflow.

> [!NOTE]
>
> These instructions work in both sandbox and live environments. The only differences are in supplier data and registration details when using test environments.

Follow these steps in the [Invopop Console](https://console.invopop.com).

**1. Create Supplier post-registration workflow**

> [card] [Smart Receipts supplier post-registration workflow](https://console.invopop.com/redirect/workflows/new?template=it-ticket-post-registration)
>
> Add to my workspace →

> [tab] Workflow

> [tab] Code
>
> Copy and paste into a new [Empty Party workflow](https://console.invopop.com/redirect/workflows/new?template=empty-party) code view.
>
> ```json SDI supplier post-registration workflow theme={"system"}
> {
>     "name": "SDI supplier post-registration",
>     "description": "Mark an SDI customer as registered",
>     "schema": "org/party",
>     "steps": [
>         {
>             "id": "7e8d8070-3870-11ef-af29-4533d56cea03",
>             "name": "Set state",
>             "config": {
>                 "state": "registered"
>             },
>             "summary": "Set state to `registered`{.state .registered}",
>             "provider": "silo.state"
>         }
>     ],
>     "rescue": []
> }
> ```

**2. Connect the Italian Smart Receipts app**

1. Navigate to **Configuration** → **Apps**.
2. Find **Italian Smart Receipts** in the app discovery list.
3. Click **Connect** to activate.

![Smart Receipts App](https://mintcdn.com/invopop/-KQ2_uysex-mWyqz/assets/guides/it-ticket-app.png?fit=max\&auto=format\&n=-KQ2_uysex-mWyqz\&q=85\&s=ba776cd869793840a07c305a93439915)

Click the **Configure** button on the app, and choose the "Post-registration workflow" we created in the previous step.

Click the **Save** button.

**3. Configure the supplier registration workflow**

> [card] [Smart receipts supplier registration workflow](https://console.invopop.com/redirect/workflows/new?template=it-ticket-register-supplier)
>
> Add to my workspace →

> [tab] Workflow

> [tab] Code
>
> Copy and paste into a new [Empty Party workflow](https://console.invopop.com/redirect/workflows/new?template=empty-party) code view.
>
> ```json Smart Receipts register supplier workflow theme={"system"}
> {
>     "name": "Smart Receipts register supplier",
>     "description": "Register a supplier with AdE",
>     "schema": "org/party",
>     "steps": [
>         {
>             "id": "1a1be400-2b32-11f0-984e-0542d5f28f0b",
>             "name": "Sign envelope",
>             "provider": "silo.close"
>         },
>         {
>             "id": "de116bb0-25b4-11f0-864a-193f213df097",
>             "name": "Register supplier with AdE",
>             "provider": "ticket-it.register"
>         },
>         {
>             "id": "e0a1b380-25b4-11f0-864a-193f213df097",
>             "name": "Set state",
>             "provider": "silo.state",
>             "summary": "Set state to `processing`{.state .processing}",
>             "config": {
>                 "state": "processing"
>             }
>         }
>     ],
>     "rescue": [
>         {
>             "id": "1deb1470-2b32-11f0-984e-0542d5f28f0b",
>             "name": "Set state",
>             "provider": "silo.state",
>             "summary": "Set state to `error`{.state .error}",
>             "config": {
>                 "state": "error"
>             }
>         }
>     ]
> }
> ```

## Register a supplier

You can register suppliers either manually via the Invopop Console or programmatically via the API. The process is essentially the same. We'll demonstrate the manual process first, followed by the [API flow](#register-a-supplier-via-the-api).

> [!WARNING]
>
> Suppliers in Italy using this system must generate and provide their [AdE](https://ivaservizi.agenziaentrate.gov.it/portale/)
> credentials so that invoices can be processed on their behalf. This is not an automated service and can only be
> performed manually by a representative of the supplier.

1. Navigate to **Parties** → **Suppliers** in the sidebar
2. Click **+ New Supplier**
3. In the editor, enter the supplier details

Here's an example using test data (only valid for sandbox environments):

> [accordion] View supplier Data for sandbox
>
> ```json theme={"system"}
> {
>     "$schema": "https://gobl.org/draft-0/org/party",
>     "uuid": "018fbeda-bc61-7000-b66d-398ce3e21c43",
>     "name": "Milano Pizza",
>     "tax_id": {
>         "country": "IT",
>         "code": "48220010093"
>     },
>     "identities": [
>         {
>             "key": "it-fiscal-code",
>             "code": "MRTMTT91D08F205J"
>         }
>     ]
> }
> ```
>
> > [!NOTE]
> >
> > You may notice that we included the Italian fiscal code in the supplier, this is not necessary at the moment but will be asked for, if not provided, during the registration process.

Tap **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. Tap the **Meta** tab to see the registration link:

![Supplier Registration Link](https://mintcdn.com/invopop/-KQ2_uysex-mWyqz/assets/guides/it-ticket-reg-link.png?fit=max\&auto=format\&n=-KQ2_uysex-mWyqz\&q=85\&s=83439ccd6817ca3fb3478ddf42ebeaa6)

> [!NOTE]
>
> You can access the registration link via the API by [fetching the silo
> entry](https://docs.invopop.com/api-ref/silo/entries/fetch-an-entry.md) and reading the `meta` row where
> the `key` is set to `registration-link`.

Tap the registration link and a new browser window will be presented with a form to upload the credentials for the supplier. Note that this form can be shared directly with the supplier if required.

![Issuer Registration Form](https://mintcdn.com/invopop/-KQ2_uysex-mWyqz/assets/guides/it-ticket-reg-sp.png?fit=max\&auto=format\&n=-KQ2_uysex-mWyqz\&q=85\&s=f28cf6ae052e1508140cebf8f5c10c7a)

The details from this form are sent securely to our local partner who will be responsible for sending them to the AdE.
We will update the supplier with the provided *codice fiscale* for future use but will not store any type of credentials.

> [!WARNING]
>
> These credentials will expire every 90 days. You must first update your credentials on the official AdE web portal, then enter these new credentials in our registration form. You can use the same registration link to update your credentials.

If the credentials expire before they're renewed, the supplier's next receipt, refund or void fails: the step ends `KO` with the fault code `invalid-credentials` ("Please update the credentials for the supplier"). The code appears in the [job's faults](https://docs.invopop.com/api-ref/transform/jobs/fetch-a-job.md#response-faults) and in the `faults` of a [webhook](https://docs.invopop.com/guides/webhooks.md) step in the workflow's error flow. Invopop doesn't warn before the 90 days are up, so track the renewal date on your side, and use that fault code to prompt the supplier to renew through the same registration link. Sandbox doesn't check credentials, so this case can only happen in live.

At this point, you're ready to start issuing receipts on behalf of the supplier. Head over to the [Smart Receipts issuing guide](https://docs.invopop.com/guides/it-ticket.md) to continue.

## Register a supplier via the API

The whole registration process can also be completed programmatically. This is useful in [white-label](https://docs.invopop.com/guides/white-label.md) setups where you want to collect the supplier's credentials inside your own product instead of sharing Invopop's hosted form.

**1. Upload the supplier**

Use the [Create an entry](https://docs.invopop.com/api-ref/silo/entries/create-an-entry-put.md) endpoint to upload the supplier [party](https://docs.gobl.org/draft-0/org/party), like the example in the previous section. The party must include the company `name` and an Italian `tax_id` (Partita IVA). Optionally include the `it-fiscal-code` identity and an email address to pre-fill the registration form.

**2. Run the registration workflow**

Send the supplier to the registration workflow using the [Create a job](https://docs.invopop.com/api-ref/transform/jobs/create-a-job-put.md) endpoint with the IDs of the **silo entry** and the **supplier registration workflow** created during setup.

**3. Fetch the registration link**

[Fetch the silo entry](https://docs.invopop.com/api-ref/silo/entries/fetch-an-entry.md) and read the `meta` row where the `key` is `registration-link`. The `link_url` will look like this:

```
https://ticket-it.invopop.com/register/{owner_id}/{entry_id}?exp={expiry}&sig={signature}
```

The URL is signed: the `exp` and `sig` query parameters are validated on every request, so always use the `link_url` exactly as returned. Requests with missing or modified parameters are rejected.

**4. Submit the credentials**

Opening the link in a browser presents the hosted registration form. To submit the credentials from your own product instead, send a `PUT` request to the `link_url` (keeping the query parameters intact) with the following JSON body:

```json theme={"system"}
{
  "fiscal_id": "48220010093",
  "codice_fiscale": "MRTMTT91D08F205J",
  "email": "supplier@example.com",
  "password": "supplier-ade-password",
  "pin": "12345678"
}
```

| Field | Required | Description |
| - | - | - |
| `fiscal_id` | Yes | The supplier's Partita IVA, without the `IT` country prefix. |
| `codice_fiscale` | Yes | The supplier's *codice fiscale*. It will be stored in the supplier party for future use. |
| `password` | Yes | The supplier's AdE portal password. |
| `pin` | Yes | The supplier's AdE portal PIN. |
| `email` | No | Email address to receive AdE notifications. Updates the supplier party if changed. |

A `200` response means the registration is complete and the post-registration workflow configured in the app will be launched. Errors are returned as `{"error": "<message>"}` with a `400` status for client errors (invalid or expired link, missing fields) or `500` for server errors.

The same endpoint can be called again with the same link to update the supplier's credentials when they expire.

## Unregister a supplier

Unregistering a supplier revokes their receipt issuing privileges. You might need to unregister a supplier because they are no longer your client or because of a change in their Partita IVA. Unregistering disables receipt issuance for the supplier with our local partner and removes the registration link and *codice fiscale* stored with the supplier. To do so, use the following workflow template:

> [card] [Smart Receipts unregister supplier](https://console.invopop.com/redirect/workflows/new?template=it-ticket-unregister-supplier)
>
> Add to my workspace →

> [tab] Workflow

> [tab] Code
>
> Copy and paste into a new [Empty Party workflow](https://console.invopop.com/redirect/workflows/new?template=empty-party) code view.
>
> ```json Smart Receipts unregister supplier workflow theme={"system"}
> {
>     "name": "Smart Receipts unregister supplier",
>     "description": "Unregister a supplier from AdE to stop issuing receipts",
>     "schema": "org/party",
>     "steps": [
>         {
>             "id": "8c00e272-ded1-4600-8e86-24e0ffb8c0b2",
>             "name": "Unregister supplier from AdE",
>             "provider": "ticket-it.deregister",
>             "summary": "Stop issuing receipts for this supplier"
>         },
>         {
>             "id": "c8a3aa22-4f06-48a8-9a81-f89b281de700",
>             "name": "Set state",
>             "provider": "silo.state",
>             "summary": "Set state to `void`{.state .void}",
>             "config": {
>                 "state": "void"
>             }
>         }
>     ],
>     "rescue": [
>         {
>             "id": "26ff28ea-3a4a-4c04-b415-4ed6d8bb8cad",
>             "name": "Set state",
>             "provider": "silo.state",
>             "summary": "Set state to `error`{.state .error}",
>             "config": {
>                 "state": "error"
>             }
>         }
>     ]
> }
> ```

Run the workflow on the supplier's silo entry, the same one you registered earlier. On success, the entry moves to the `Void` state. If the supplier was never registered, the step is skipped without error. To issue receipts for the supplier again, run the [registration workflow](#register-a-supplier) and submit their AdE credentials once more.

## FAQ

> [accordion] How do I onboard a new supplier in Italy?
>
> Provide the supplier's Partita IVA and Codice Fiscale (where different) in their party configuration. No certificate upload is needed — Invopop transmits to SDI over its own accredited channel.

> [accordion] How are supplier credentials stored in Invopop for Italy?
>
> No supplier certificates are required. Invopop exchanges documents with SDI over its own accredited channel; only the Partita IVA and routing metadata are stored.

> [accordion] How do I register a supplier with Smart Receipts?
>
> Create the supplier party with its Partita IVA and run the Smart Receipts Register Supplier workflow. The workflow returns a signed registration link in the silo entry's meta. Open the link (or share it with the supplier) and submit the supplier's AdE credentials. Once the form is accepted, the post-registration workflow runs and the supplier can start issuing receipts. See the [supplier registration guide](https://docs.invopop.com/guides/it-ticket-supplier.md) for the full steps.

> [accordion] What credentials does Smart Receipts require to authenticate a supplier?
>
> The supplier's own Agenzia delle Entrate portal credentials: the password and PIN they use at ivaservizi.agenziaentrate.gov.it, together with their Partita IVA and *codice fiscale*. Only a representative of the supplier can generate these. They are submitted through the registration link and passed securely to our local partner, who uses them to transmit receipts to the AdE on the supplier's behalf. Invopop stores the *codice fiscale* on the party but never stores the password or PIN.

> [accordion] How often do the supplier's AdE credentials need to be renewed?
>
> Every 90 days. The supplier must first renew the credentials on the AdE portal, then resubmit them through the same registration link (or via the API `PUT` to the link) so receipt issuance is not interrupted. If they aren't renewed in time, issuing fails with the fault code `invalid-credentials` until the supplier resubmits them.

More available in our [Italy FAQ](https://docs.invopop.com/faq/italy.md) section

***

> [accordion] 🇮🇹 Invopop resources for Italy
>
> | | |
> | - | - |
> | Compliance | [Invoicing compliance in Italy](https://docs.invopop.com/compliance/italy.md)   [Compliance timeline](https://docs.invopop.com/timelines/italy.md) |
> | Apps | [Italy](https://docs.invopop.com/apps/italy.md)  [SDI Italy](https://docs.invopop.com/apps/sdi-italy.md)  [Smart Receipts Italy](https://docs.invopop.com/apps/smart-receipts-italy.md) |
> | Guides | SDI — [Issuing invoices](https://docs.invopop.com/guides/it-sdi-invoicing.md) · [Status](https://docs.invopop.com/guides/it-sdi-status.md) · [Receiving invoices](https://docs.invopop.com/guides/it-sdi-reception.md) · [Archiving](https://docs.invopop.com/guides/it-sdi-archiving.md)  [SDI sending guide (legacy)](https://docs.invopop.com/guides/it-sdi-sending.md)  [SDI receiving guide (legacy)](https://docs.invopop.com/guides/it-sdi-receiving.md)  [Smart Receipts supplier registration](https://docs.invopop.com/guides/it-ticket-supplier.md)  [Smart Receipts issuing guide](https://docs.invopop.com/guides/it-ticket.md) |
> | FAQ | [Italy FAQ](https://docs.invopop.com/faq/italy.md) |
> | GOBL | [Italy Tax Regime](https://docs.gobl.org/regimes/it)   [Italy SDI FatturaPA Addon](https://docs.gobl.org/addons/it-sdi-v1)   [Italy AdE Ticket Addon](https://docs.gobl.org/addons/it-ticket-v1) |
> | GitHub | [gobl.fatturapa](https://github.com/invopop/gobl.fatturapa) |

> [card] [Participate in our community](https://community.invopop.com)
>
> Ask and answer questions about invoicing in Italy →


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.