SII (Suministro Inmediato de Información)

With the Spain - Base Layer, the SII (Llevanza de libros registro del IVA a través de la Sede electrónica de la AEAT) is handled by the Suministro Inmediato de Información en el IVA module. It sends the VAT data of customer invoices and vendor bills to the web service of the AEAT, or of the regional tax agency of the company. The SII is mandatory for companies with a turnover above 6 M€, for the taxpayers registered in the REDEME, and optional for the others.

Note

The standard Spain - SII EDI Suministro de Libros module described in the SII section of the Spain page cannot be installed together with the base layer.

Configuration

Certificate

The requests are signed with the electronic certificate of the company (a .p12 or .pfx file).

  1. Go to Accounting ‣ Configuration ‣ AEAT ‣ Certificates AEAT and click New.

  2. Enter a name, upload the certificate File, and enter a Folder Name.

  3. Click Obtain Keys, enter the password of the certificate, and confirm with Obtain Keys.

  4. Click To Active to use this certificate.

Tip

The certificate is also used by the other AEAT web services, such as the check of contact data against the AEAT census.

Company

Open the company form (Settings app) and:

  1. In the AEAT tab, check the Tax Agency (the AEAT or a regional tax agency).

  2. In the SII tab, tick Enable SII, then set:

    • Sii Start Date: invoices dated before this date are not sent;

    • Is it the SII test environment?: keep it ticked while testing; untick it to send the data to the production web service;

    • Method: Automatic queues the invoices for sending when they are confirmed; with Manual, the invoices are sent only when you request it;

    • Sii Period: Monthly or Quarterly;

    • SII Description Method: how the description of the operation sent to the SII is built (Automatic from the invoice lines, Fixed text, or Manual on each invoice), optionally preceded by the SII Customer header or SII Supplier header;

    • Send Mode: On validate, At fixed time, or With delay (the default, which leaves time to correct a mistake before the invoice is sent).

screenshot: finance-fl-spain-sii-oca-company
menu
Settings ‣ Companies ‣ (the Spanish company) ‣ SII tab
shows
The SII tab of the company form with "Enable SII" ticked, the SII start date, the test environment checkbox, Method "Automatic", period "Monthly", the description configuration and the "Send Mode" set to "With delay".
highlight
The "Enable SII" and "Is it the SII test environment?" fields.
data
Spanish demo company.
module
l10n_es_aeat_sii_oca
notes
English UI, light theme, 1440px width.

Journals, fiscal positions, and taxes

  • On the sales and purchase journals, the Enable SII option (Localization Settings tab) is ticked by default. Untick it for a journal whose documents must not be sent.

  • The fiscal positions of the Spanish chart of accounts carry the SII data (registration keys, exemption and non-subject causes). Check them when you create a new fiscal position.

  • The taxes are sent according to the SII tax map, which covers the default Spanish taxes.

Send invoices

With the automatic method, a customer invoice or vendor bill is queued for sending when it is confirmed, and sent according to the Send Mode. The SII tab of the invoice shows:

  • the Description and the Registration key of the operation, proposed from the company settings and the fiscal position;

  • in the result section, the Send state, the CSV code returned by the tax agency, and the Send error if the invoice was rejected.

To send an invoice immediately, click Send now in the SII tab. To send several invoices, select them in the list view, and click Actions ‣ Send Invoices to SII.

If the sending failed, correct the invoice and click Send to SII. If a sent invoice is modified (for example, after resetting it to draft and confirming it again), the modification is sent again. To cancel a sent invoice in the SII, cancel the invoice, then click Send cancellation to SII.

Tip

In the invoice and bill lists, use the SII not sent, SII sent, and SII failed filters to follow up the sending, and correct and resend the rejected documents.

screenshot: finance-fl-spain-sii-oca-invoice
menu
Accounting ‣ Customers ‣ Invoices ‣ (a sent invoice) ‣ SII tab
shows
The SII tab of a confirmed customer invoice: description, registration key "01", send state "Sent", the CSV code and the send date.
highlight
The "Send state" and "CSV" fields.
data
Spanish demo company, SII test environment.
module
l10n_es_aeat_sii_oca
notes
English UI, light theme, 1440px width.