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

# E-invoicing and SDI

> Issue XML invoices to the Italian Sistema di Interscambio, receive supplier invoices, manage the archive.

Arya integrates submission to Italy's **Sistema di Interscambio (SDI)** via certified providers (Acube, FatturaInCloud, MailUp) to issue e-invoices in **FatturaPA XML** format compliant with Italian regulations.

<Frame>
  <img src="https://mintcdn.com/agevole/BUuJGD62nuns4mJL/images/finance/en/invoice-detail.svg?fit=max&auto=format&n=BUuJGD62nuns4mJL&q=85&s=05956861bfa020259d69299142e03978" alt="E-invoice detail with SDI status" width="1200" height="720" data-path="images/finance/en/invoice-detail.svg" />
</Frame>

## SDI integration setup

<Steps>
  <Step title="Pick a provider">
    **Settings → Integrations → E-invoicing** → choose from:

    * **Acube** (technical provider with dedicated account)
    * **FatturaInCloud** (full invoicing platform)
    * **MailUp** (another certified provider)

    You need an account with the provider with API credentials.
  </Step>

  <Step title="Enter credentials">
    API key / token from the provider. Arya tests the connection immediately.
  </Step>

  <Step title="Configure series">
    For invoices to private individuals without VAT (B2C), set up a dedicated series to avoid numbering conflicts.
  </Step>

  <Step title="Verify channel authorisation">
    The provider must be delegated on *Fatture e Corrispettivi* (Italian Revenue Agency portal) on behalf of your VAT number.
  </Step>
</Steps>

## Issue an invoice

<Steps>
  <Step title="From an accepted quote">
    **Quote → ⋯ → Convert to invoice** (fastest, prefilled data).
  </Step>

  <Step title="From scratch">
    **Finance → Invoices → + New invoice**. Pick customer (must have VAT/tax code + SDI code or PEC).
  </Step>

  <Step title="Fill lines">
    Each line: description, quantity, unit price, VAT rate, optional nature code (for exempt, reverse charge, etc.).
  </Step>

  <Step title="Fiscal data">
    * **Document type**: TD01 invoice, TD24 deferred invoice, TD27 self-invoice, others
    * **Payment method**: MP05 bank transfer, MP08 card, MP12 RIBA, etc.
    * **Payment terms**: days or fixed date
  </Step>

  <Step title="Submit to SDI">
    Click **Issue and send SDI**. Arya:

    1. Generates compliant XML
    2. Digitally signs (if configured)
    3. Sends to provider → SDI
    4. Updates status in real time

    <Frame>
      <img src="https://mintcdn.com/agevole/BUuJGD62nuns4mJL/images/finance/en/sdi-send-dialog.svg?fit=max&auto=format&n=BUuJGD62nuns4mJL&q=85&s=da8386b0d980ec95bd036e50ae6cf3b0" alt="SDI send dialog with data confirmation" width="1200" height="720" data-path="images/finance/en/sdi-send-dialog.svg" />
    </Frame>
  </Step>
</Steps>

## SDI statuses

| Status          | Meaning                                           |
| --------------- | ------------------------------------------------- |
| Draft           | Not yet issued                                    |
| Sent to SDI     | File in transit to SDI                            |
| Delivered       | SDI delivered to customer                         |
| Rejected        | SDI rejected (file error) — Arya shows the reason |
| Missed delivery | PEC inbox full — recovery via tax portal          |
| Accepted        | Customer accepted (for PA)                        |
| Refused         | PA customer refused                               |

## Incoming invoices (received)

Arya auto-downloads received invoices from your provider:

<Steps>
  <Step title="Periodic sync">
    Every N hours Arya polls the provider → downloads new XMLs → creates records.
  </Step>

  <Step title="Review and allocation">
    You review, assign the invoice to a chart-of-accounts entry, optionally to a [project](/en/projects/overview) or cost category.
  </Step>

  <Step title="Accounting entry">
    Arya auto-generates double-entry bookkeeping.
  </Step>
</Steps>

## Legal archiving (conservazione sostitutiva)

E-invoices must be archived for 10 years under Italian law. Arya manages **legal archiving** via certified provider (included in Premium plans):

* Certified timestamp
* Digital signature of the archiver
* On-demand access to archived invoices
* Distribution package export on request

## Frequently asked questions

<AccordionGroup>
  <Accordion title="Can I issue invoices without SDI integration?">
    Yes, in "courtesy" mode: Arya generates the PDF but doesn't submit to SDI. Useful for drafts, or manual submission.
  </Accordion>

  <Accordion title="What if the customer has no SDI code or PEC?">
    Arya inserts `0000000` and the recipient retrieves the invoice from their tax portal. For flat-rate regime customers enable the "Private individual" flag.
  </Accordion>

  <Accordion title="How do I handle reverse charge invoices?">
    On the line item pick VAT rate `N6.x` (reverse charge nature code). Arya compiles the XML correctly.
  </Accordion>

  <Accordion title="Can I issue self-invoices (TD17, TD19)?">
    Yes, select the document type. Arya supports: TD01 invoice, TD02 advance payment, TD04 credit note, TD05 debit note, TD17/TD18/TD19 self-invoices, TD24 deferred, TD25 deferred 3rd period, TD27 ceiling overflow self-invoice.
  </Accordion>
</AccordionGroup>
