# Italy E-Invoice via Zucchetti Digital Hub®

This feature adds **Zucchetti Digital Hub** as a transport channel for document exchange, so you can exchange Italian electronic invoices with the Exchange System (SdI) through the Zucchetti Digital Hub service. It lets you:

- send sales electronic invoices, which are automatically signed and confirmed on the service;
- receive SdI notifications for sent invoices (delivery to SdI, delivery to recipient, rejection);
- download received purchase invoices.


1. Open the **Document Exchange Profiles** page.
2. Create or select the profile to use for electronic invoicing and set **Zucchetti Digital Hub** as its transport.
3. Choose the **Transport Setup** action: the **Zucchetti Digital Hub Setup** page for the profile opens. If no setup exists yet, it is created automatically.


| Field | Description |
|---|---|
| Profile Code | Document exchange profile the setup refers to. Not editable. |
| API Endpoint | Address of the Zucchetti Digital Hub service. Use the assist button (…) to set the default production address. |
| Username | Username of the Zucchetti Digital Hub account. |
| Password | Account password. It is stored securely and shown masked. |
| Company Code | Code of the company on the Zucchetti Digital Hub service, used to sign in. |
| Company Identifier | Identifier of the company as recipient (transferee) of purchase invoices; required to receive purchase invoices. |
| Last Reception Date/Time | Date and time from which purchase invoices to receive are searched. It is updated automatically during reception. It is normally not editable: to correct it, use the assist button (…), which makes it editable. |


1. Open the **Zucchetti Digital Hub Setup** page from the profile, as described above.
2. In the **API Endpoint** field choose the assist button (…) and confirm the question *Use default production endpoint?* to set the production address.
3. Enter the **Username**, **Password** and **Company Code** provided by Zucchetti.
4. To receive purchase invoices, fill in **Company Identifier** and set **Last Reception Date/Time** to the date and time from which you want to start receiving (choose the assist button to make the field editable).


- **Sending:** each electronic invoice is uploaded to the service and then immediately signed and confirmed. If the service returns a negative outcome, the error message received is shown. An identifier generated at sending time is stored as the invoice's transport ID.
- **Receiving notifications:** for sent sales invoices not yet delivered, the status is queried on the service, in groups of 50, and converted into the corresponding notification:
  - delivery to SdI;
  - delivery to recipient;
  - SdI rejection;
  - invoices still being processed are skipped and checked again at the next reception.
- **Receiving purchase invoices:** received invoices are downloaded day by day starting from **Last Reception Date/Time**, in their unsigned version. After each processed day, **Last Reception Date/Time** moves forward automatically, up to the current date and time. If an invoice can no longer be downloaded because the period has been archived, reception stops with the message *Date … has been archived, move forward*: in this case, move **Last Reception Date/Time** forward.
- **Authentication:** sign-in to the service happens automatically with username, password and company code.