Вы находитесь на странице: 1из 53

SII-AEAT Integration Interface V5 (TXT)

SII-AEAT Integration Interface V5 (TXT)

Document title: SII-AEAT Integration Interface V5 (TXT)


File name: INTEGRATION_LAYOUT_TXT_SUMINISTROLR_AEAT_SII_V5.odt
Version: 1.0
Status: --
Date: 2017-05-11
Author:

Collaborators

Name Organization Email Function

EDICOM GROUP Consultor

Changes record

Version Date Action description Author Motive

1 2017-05-10 AV y BAV record books to Travel Agencies and Travel Agencies Deregistration have been added David Gmez Rolln Change to v5 version.
together with the customization of the fields related.
Update of the list related to the fields TIPOLIBRO, TIPONOEXENCIN, MERTIPONOEXENCIN,
SERVTIPONOEXENCIN, REGESPECIAL, MEDIO, IDEMISORTIPO and IDCONTRATIPO.
The new fiels TITTULARNOMEXT, NOMBREEMISOREXT y RAZONCONTRAEXT are added to
complete the information of the company name fields up to 120 characters.
The new fields BASESINIMP, REGADD1, REGADD2, IDSUMPROPIO and USOPRIVADO and
NUMACUERDO are added.
Change the status in the TIPONOEXENCION for Invoices Received.
Add LRINMUEBLE file to include information about 15 properties.
The fields NUMERODUA and FECCONTABLEDUA are deprecated
Remove comments, customization and value lists in DEPRECATED fields.

SII-AEAT Integration Interface V5 (TXT) | | 2


SII-AEAT Integration Interface V5 (TXT)

Content index
1. Standards and Recommendations......................................................................................................................................................................................................................................................... 4
2. Link File Proposal..................................................................................................................................................................................................................................................................................... 5
2.1. Record Book submission response global header data.....................................................................................................................................................................................................................................................6
2.2. Record Book Entry. All books................................................................................................................................................................................................................................................................................................16
2.3. Record Book Entry. Grouped Invoices Detail. (FE and FR) ............................................................................................................................................................................................................................................36
2.4. Record Book Entry. Rectified Invoices detail. (FE and FR)............................................................................................................................................................................................................................................37
2.5. Record Book Entry. Taxes breakdowns. (FE and FR) ......................................................................................................................................................................................................................................................38
2.6. Record Book Entry. Taxes breakdown. VAT detail. (FE and FR)...................................................................................................................................................................................................................................43
2.7. Record Book Entry. Receivables/Payables detail. (CE and PR) ...................................................................................................................................................................................................................................45
2.8. Properties breakdowns. Only for FE with REGESPECIAL 12 or 13. ............................................................................................................................................................................................................................47

3. Examples................................................................................................................................................................................................................................................................................................. 49
3.1. SIILR.TXT (Record Book submission response global header data) ...........................................................................................................................................................................................................................49
3.2. LRAPUNTE.TXT (Record Book Entry. All books.) .............................................................................................................................................................................................................................................................49
3.3. LRGRUP.TXT (Record Book Entry. Grouped Invoices Detail. (FE and FR)) ...............................................................................................................................................................................................................49
3.4. LRRECT.TXT (Record Book Entry. Rectified Invoices detail. (FE and FR)) ...............................................................................................................................................................................................................50
3.5. LRIMP.TXT (Record Book Entry. Taxes breakdowns. (FE and FR)) .............................................................................................................................................................................................................................50
3.6. LRIVA.TXT (Record Book Entry. Taxes breakdown. VAT detail. (FE and FR)) ...........................................................................................................................................................................................................50
3.7. LRCOBRO.TXT (Record Book Entry. Receivables/Payables detail. (CE and PR)) ...................................................................................................................................................................................................51
3.8. LRINMUEBLE.TXT (Properties breakdowns. Only for FE with REGESPECIAL 12 or 13.) ......................................................................................................................................................................................51

4. Supported partners................................................................................................................................................................................................................................................................................ 52
5. Associated documents.......................................................................................................................................................................................................................................................................... 53

SII-AEAT Integration Interface V5 (TXT) | | 3


Standards and Recommendations SII-AEAT Integration Interface V5 (TXT)

1. STANDARDS AND RECOMMENDATIONS


1. Records may be fixed format or fields with separators.
2. Numeric fields are justified to the right and filled in with zeros to the left, whereas alphanumeric fields are justified to the left and must be filled in with spaces until the total length of the field is completed. The record may
be truncated in one position if no more fields are going to be used (in other words, the last ones not used are not filled in with blanks in the case of fixed format, but the positions must be preserved by means of
separators in the case of records with separators).
3. Numeric fields which do not have to be filled in can be left blank. The value 0 just has to be indicated when the value of this field is 0.
4. We recommend including the largest amount of data. The fields in bold are the minimum data that must be filled in for any book.
5. The decimal sign may be indicated either with '.' or with ',' although it may also be indicated without any symbol (fixed number of decimals).
6. The positive sign may be indicated with '+', '0' or with a blank space.
7. The Link File Proposal section shows a different files to be generated. The Type column indicates whether the field is alphanumeric (X) or numeric (N). The Ini column indicates the position where the field begins and
the End column where the field ends. The Len column would indicate the total field length. In numeric fields, when 15,3 is indicated in the Len column it means that it is a field with 15 positions, of which there would be
one position for the sign, 10 for the whole part, one for the decimal symbol and 3 for the decimals. For example -1234567890.123 or 01234567890.123 or +1234567890.123.

SII-AEAT Integration Interface V5 (TXT) | 1.Standards and Recommendations | 4


Link File Proposal SII-AEAT Integration Interface V5 (TXT)

2. LINK FILE PROPOSAL


2.1. Record Book submission response global header data
SIILR.TXT SIILRCabecera

2.2. Record Book Entry. All books.


LRAPUNTE.TXT SIILRApunte

2.3. Record Book Entry. Grouped Invoices Detail. (FE and FR)
LRGRUP.TXT SIILRApunteGR SIILRApunteREC SIILRApunteIMP SIILRApunteCOB SIILRApunteINMU...

2.4. Record Book Entry. Rectified Invoices detail. (FE and FR)
LRRECT.TXT SIILRApunteIVA

2.5. Record Book Entry. Taxes breakdowns. (FE and FR)


LRIMP.TXT
2.6. Record Book Entry. Taxes breakdown. VAT detail. (FE and FR)
LRIVA.TXT
2.7. Record Book Entry. Receivables/Payables detail. (CE and PR)
LRCOBRO.TXT
2.8. Properties breakdowns. Only for FE with REGESPECIAL 12 or
13.
LRINMUEBLE.TXT

SII-AEAT Integration Interface V5 (TXT) | 2.Link File Proposal | 5


Record Book submission response global header data SII-AEAT Integration Interface V5 (TXT)

2.1. Record Book submission response global header data


Description: Mandatory record. A record book is a group of notes of the same type that are presented together in a transaction.
Physical file name: SIILR.TXT
Mandatory: Mandatory
This section is repeatable with the following restrictions:
Minimum number of occurrences: 1
Maximum number of occurrences: 99999

Lengt
Field Type Description
h

IDLR X 10 Record book file key


TIPOLIBRO X 10 Type of book submitted.

Permitted values list:


BI: Investment assets
CE: Charge of invoices issued in RECC
FE: Invoices issued
FR: Invoices received
OI: Intra-community transactions
CM: Cash receivables
PR: Payment of invoices received in RECC
OS: Insurance operations
AV: Travel Agencies
BBI: Investment Assets deregistration
BCM: Cash Receivables deregistration
BFE: Invoices Issued deregistration
BFR: Invoices Received deregistration
BOI: Intra-community transactions deregistration
BOS: insurance operations deregistration
BAV: Travel Agencies deregistration
VERSION X 20 Message formal definition version. Currently version 0.7

Investment assets: Mandatory

Receivables issued: Mandatory

Cash receivables: Mandatory

Intra-community transactions: Mandatory

SII-AEAT Integration Interface V5 (TXT) | 2.Link File Proposal | 6


Record Book submission response global header data SII-AEAT Integration Interface V5 (TXT)

Lengt
Field Type Description
h

Received payments: Mandatory

Invoices issued: Mandatory

Invoices received: Mandatory

Investment Assets deregistration: Mandatory

Cash Receivables deregistration: Mandatory

Invoices Issued deregistration: Mandatory

Invoices Received deregistration: Mandatory

Intra-community transactions deregistration: Mandatory

Insurance operations: Mandatory

Insurance operations deregistration: Mandatory

Travel Agencies: Mandatory

Travel Agencies deregistration: Mandatory


TITULARNOM X 40 Company name, name of holder of the Record Book

It's mandatory to fill at least one of the following fields: TITULARNOM or TITULARNOMEXT.
It will always be concatenated fields TITULARNOM and TITULARNOMEXT.
It's up to the customer to use only one of the fields, or split the information between both fields, so it will be concatenated up to the 120 allowed positions.

Investment assets: Conditional


It's mandatory to fill at least one of the following fields: TITULARNOM or TITULARNOMEXT.
It will always be concatenated fields TITULARNOM and TITULARNOMEXT.
It's up to the customer to use only one of the fields, or split the information between both fields, so it will be concatenated up to the 120 allowed positions.
Will be informed the first 120 concatenation ones starting from the left.

Receivables issued: Conditional


It's mandatory to fill at least one of the following fields: TITULARNOM or TITULARNOMEXT.
It will always be concatenated fields TITULARNOM and TITULARNOMEXT.
It's up to the customer to use only one of the fields, or split the information between both fields, so it will be concatenated up to the 120 allowed positions.
Will be informed the first 120 concatenation ones starting from the left.

Cash receivables: Conditional


It's mandatory to fill at least one of the following fields: TITULARNOM or TITULARNOMEXT.
It will always be concatenated fields TITULARNOM and TITULARNOMEXT.
It's up to the customer to use only one of the fields, or split the information between both fields, so it will be concatenated up to the 120 allowed positions.
Will be informed the first 120 concatenation ones starting from the left.

Intra-community transactions: Conditional


It's mandatory to fill at least one of the following fields: TITULARNOM or TITULARNOMEXT.

SII-AEAT Integration Interface V5 (TXT) | 2.Link File Proposal | 7


Record Book submission response global header data SII-AEAT Integration Interface V5 (TXT)

Lengt
Field Type Description
h

It will always be concatenated fields TITULARNOM and TITULARNOMEXT.


It's up to the customer to use only one of the fields, or split the information between both fields, so it will be concatenated up to the 120 allowed positions.
Will be informed the first 120 concatenation ones starting from the left.

Received payments: Conditional


It's mandatory to fill at least one of the following fields: TITULARNOM or TITULARNOMEXT.
It will always be concatenated fields TITULARNOM and TITULARNOMEXT.
It's up to the customer to use only one of the fields, or split the information between both fields, so it will be concatenated up to the 120 allowed positions.
Will be informed the first 120 concatenation ones starting from the left.

Invoices issued: Conditional


It's mandatory to fill at least one of the following fields: TITULARNOM or TITULARNOMEXT.
It will always be concatenated fields TITULARNOM and TITULARNOMEXT.
It's up to the customer to use only one of the fields, or split the information between both fields, so it will be concatenated up to the 120 allowed positions.
Will be informed the first 120 concatenation ones starting from the left.

Invoices received: Conditional


It's mandatory to fill at least one of the following fields: TITULARNOM or TITULARNOMEXT.
It will always be concatenated fields TITULARNOM and TITULARNOMEXT.
It's up to the customer to use only one of the fields, or split the information between both fields, so it will be concatenated up to the 120 allowed positions.
Will be informed the first 120 concatenation ones starting from the left.

Investment Assets deregistration: Conditional


It's mandatory to fill at least one of the following fields: TITULARNOM or TITULARNOMEXT.
It will always be concatenated fields TITULARNOM and TITULARNOMEXT.
It's up to the customer to use only one of the fields, or split the information between both fields, so it will be concatenated up to the 120 allowed positions.
Will be informed the first 120 concatenation ones starting from the left.

Cash Receivables deregistration: Conditional


It's mandatory to fill at least one of the following fields: TITULARNOM or TITULARNOMEXT.
It will always be concatenated fields TITULARNOM and TITULARNOMEXT.
It's up to the customer to use only one of the fields, or split the information between both fields, so it will be concatenated up to the 120 allowed positions.
Will be informed the first 120 concatenation ones starting from the left.

Invoices Issued deregistration: Conditional


It's mandatory to fill at least one of the following fields: TITULARNOM or TITULARNOMEXT.
It will always be concatenated fields TITULARNOM and TITULARNOMEXT.
It's up to the customer to use only one of the fields, or split the information between both fields, so it will be concatenated up to the 120 allowed positions.
Will be informed the first 120 concatenation ones starting from the left.

Invoices Received deregistration: Conditional


It's mandatory to fill at least one of the following fields: TITULARNOM or TITULARNOMEXT.
It will always be concatenated fields TITULARNOM and TITULARNOMEXT.
It's up to the customer to use only one of the fields, or split the information between both fields, so it will be concatenated up to the 120 allowed positions.
Will be informed the first 120 concatenation ones starting from the left.

Intra-community transactions deregistration: Conditional


It's mandatory to fill at least one of the following fields: TITULARNOM or TITULARNOMEXT.
It will always be concatenated fields TITULARNOM and TITULARNOMEXT.
It's up to the customer to use only one of the fields, or split the information between both fields, so it will be concatenated up to the 120 allowed positions.

SII-AEAT Integration Interface V5 (TXT) | 2.Link File Proposal | 8


Record Book submission response global header data SII-AEAT Integration Interface V5 (TXT)

Lengt
Field Type Description
h

Will be informed the first 120 concatenation ones starting from the left.

Insurance operations: Conditional


It's mandatory to fill at least one of the following fields: TITULARNOM or TITULARNOMEXT.
It will always be concatenated fields TITULARNOM and TITULARNOMEXT.
It's up to the customer to use only one of the fields, or split the information between both fields, so it will be concatenated up to the 120 allowed positions.
Will be informed the first 120 concatenation ones starting from the left.

Insurance operations deregistration: Conditional


It's mandatory to fill at least one of the following fields: TITULARNOM or TITULARNOMEXT.
It will always be concatenated fields TITULARNOM and TITULARNOMEXT.
It's up to the customer to use only one of the fields, or split the information between both fields, so it will be concatenated up to the 120 allowed positions.
Will be informed the first 120 concatenation ones starting from the left.

Travel Agencies: Conditional


It's mandatory to fill at least one of the following fields: TITULARNOM or TITULARNOMEXT.
It will always be concatenated fields TITULARNOM and TITULARNOMEXT.
It's up to the customer to use only one of the fields, or split the information between both fields, so it will be concatenated up to the 120 allowed positions.
Will be informed the first 120 concatenation ones starting from the left.

Travel Agencies deregistration: Conditional


It's mandatory to fill at least one of the following fields: TITULARNOM or TITULARNOMEXT.
It will always be concatenated fields TITULARNOM and TITULARNOMEXT.
It's up to the customer to use only one of the fields, or split the information between both fields, so it will be concatenated up to the 120 allowed positions.
Will be informed the first 120 concatenation ones starting from the left.
NIFREPRESENTA X 9 NIF of legal representative submitting the record book.

Only for representatives of minors

Investment assets: Conditional

Receivables issued: Conditional

Cash receivables: Conditional

Intra-community transactions: Conditional

Received payments: Conditional

Investment Assets deregistration: Conditional

Cash Receivables deregistration: Conditional

Intra-community transactions deregistration: Conditional

Invoices Issued deregistration: Conditional

Invoices Received deregistration: Conditional

SII-AEAT Integration Interface V5 (TXT) | 2.Link File Proposal | 9


Record Book submission response global header data SII-AEAT Integration Interface V5 (TXT)

Lengt
Field Type Description
h

Invoices received: Conditional

Invoices issued: Conditional

Insurance operations: Conditional

Insurance operations deregistration: Conditional

Travel Agencies: Conditional

Travel Agencies deregistration: Conditional


TITULARNIF X 9 NIF of person submitting the record book.

Investment assets: Mandatory

Receivables issued: Mandatory

Cash receivables: Mandatory

Intra-community transactions: Mandatory

Received payments: Mandatory

Investment Assets deregistration: Mandatory

Cash Receivables deregistration: Mandatory

Intra-community transactions deregistration: Mandatory

Invoices Issued deregistration: Mandatory

Invoices Received deregistration: Mandatory

Invoices received: Mandatory

Invoices issued: Mandatory

Insurance operations: Mandatory

Insurance operations deregistration: Mandatory

Travel Agencies: Mandatory

Travel Agencies deregistration: Mandatory


OPERACION X 20 Type of communication to make.
For books BI, FE, FR, OI, CM, OS and AV = A0 A1 A4
For books CE and PR. = A0
For books BBI, BCM, BFE, BFR, BOI, BOS and BAV = B0

SII-AEAT Integration Interface V5 (TXT) | 2.Link File Proposal | 10


Record Book submission response global header data SII-AEAT Integration Interface V5 (TXT)

Lengt
Field Type Description
h

Permitted values list:


A0: Registration (a new invoice entry is added to the record book)
A1: Modification - Correction of registration errors (the information communicated replaces that existing)
A4: Travellers Regime Invoice Modification.
B0: Deregistration (A record added previously is deleted)

Investment assets: Mandatory

Permitted values list:


A0: Registration (a new invoice entry is added to the record book)
A1: Modification (the information communicated replaces that existing)
A4: Travellers Regime Invoice Modification.

Cash receivables: Mandatory

Permitted values list:


A0: Registration (a new invoice entry is added to the record book)
A1: Modification (the information communicated replaces that existing)
A4: Travellers Regime Invoice Modification.

Intra-community transactions: Mandatory

Permitted values list:


A0: Registration (a new invoice entry is added to the record book)
A1: Modification (the information communicated replaces that existing)
A4: Travellers Regime Invoice Modification.

Received payments: Mandatory

Permitted values list:


A0: Registration (a new invoice entry is added to the record book)

Investment Assets deregistration: Mandatory

Permitted values list:


B0: Deregistration (A record added previously is deleted)

Receivables issued: Mandatory

Permitted values list:


A0: Registration (a new invoice entry is added to the record book)

Cash Receivables deregistration: Mandatory

Permitted values list:


B0: Deregistration (A record added previously is deleted)

Intra-community transactions deregistration: Mandatory

Permitted values list:

SII-AEAT Integration Interface V5 (TXT) | 2.Link File Proposal | 11


Record Book submission response global header data SII-AEAT Integration Interface V5 (TXT)

Lengt
Field Type Description
h

B0: Deregistration (A record added previously is deleted)

Invoices Issued deregistration: Mandatory

Permitted values list:


B0: Deregistration (A record added previously is deleted)

Invoices Received deregistration: Mandatory

Permitted values list:


B0: Deregistration (A record added previously is deleted)

Invoices received: Mandatory

Permitted values list:


A0: Registration (a new invoice entry is added to the record book)
A1: Modification (the information communicated replaces that existing)
A4: Travellers Regime Invoice Modification.

Invoices issued: Mandatory

Permitted values list:


A0: Registration (a new invoice entry is added to the record book)
A1: Modification (the information communicated replaces that existing)
A4: Travellers Regime Invoice Modification.

Insurance operations: Mandatory

Permitted values list:


A0: Registration (a new invoice entry is added to the record book)
A1: Modification - Correction of registration errors (the information communicated replaces that existing)
A4: Travellers Regime Invoice Modification.

Insurance operations deregistration: Mandatory

Permitted values list:


B0: Deregistration (A record added previously is deleted)

Travel Agencies: Mandatory

Permitted values list:


A0: Registration (a new invoice entry is added to the record book)
A1: Modification - Correction of registration errors (the information communicated replaces that existing)
A4: Travellers Regime Invoice Modification.

Travel Agencies deregistration: Mandatory

Permitted values list:


B0: Deregistration (A record added previously is deleted)

SII-AEAT Integration Interface V5 (TXT) | 2.Link File Proposal | 12


Record Book submission response global header data SII-AEAT Integration Interface V5 (TXT)

Lengt
Field Type Description
h

TITULARNOMEXT X 120 Company name extension, name of holder of the Record Book

It will always be concatenated fields TITULARNOM and TITULARNOMEXT.


It's up to the customer to use only one of the fields, or split the information between both fields, so it will be concatenated up to the 120 allowed positions.

Investment assets: Conditional


It's mandatory to fill at least one of the following fields: TITULARNOM or TITULARNOMEXT.
It will always be concatenated fields TITULARNOM and TITULARNOMEXT.
It's up to the customer to use only one of the fields, or split the information between both fields, so it will be concatenated up to the 120 allowed positions.
Will be informed the first 120 concatenation ones starting from the left.

Receivables issued: Conditional


It's mandatory to fill at least one of the following fields: TITULARNOM or TITULARNOMEXT.
It will always be concatenated fields TITULARNOM and TITULARNOMEXT.
It's up to the customer to use only one of the fields, or split the information between both fields, so it will be concatenated up to the 120 allowed positions.
Will be informed the first 120 concatenation ones starting from the left.

Cash receivables: Conditional


It's mandatory to fill at least one of the following fields: TITULARNOM or TITULARNOMEXT.
It will always be concatenated fields TITULARNOM and TITULARNOMEXT.
It's up to the customer to use only one of the fields, or split the information between both fields, so it will be concatenated up to the 120 allowed positions.
Will be informed the first 120 concatenation ones starting from the left.

Intra-community transactions: Conditional


It's mandatory to fill at least one of the following fields: TITULARNOM or TITULARNOMEXT.
It will always be concatenated fields TITULARNOM and TITULARNOMEXT.
It's up to the customer to use only one of the fields, or split the information between both fields, so it will be concatenated up to the 120 allowed positions.
Will be informed the first 120 concatenation ones starting from the left.

Received payments: Conditional


It's mandatory to fill at least one of the following fields: TITULARNOM or TITULARNOMEXT.
It will always be concatenated fields TITULARNOM and TITULARNOMEXT.
It's up to the customer to use only one of the fields, or split the information between both fields, so it will be concatenated up to the 120 allowed positions.
Will be informed the first 120 concatenation ones starting from the left.

Invoices issued: Conditional


It's mandatory to fill at least one of the following fields: TITULARNOM or TITULARNOMEXT.
It will always be concatenated fields TITULARNOM and TITULARNOMEXT.
It's up to the customer to use only one of the fields, or split the information between both fields, so it will be concatenated up to the 120 allowed positions.
Will be informed the first 120 concatenation ones starting from the left.

Invoices received: Conditional


It's mandatory to fill at least one of the following fields: TITULARNOM or TITULARNOMEXT.
It will always be concatenated fields TITULARNOM and TITULARNOMEXT.
It's up to the customer to use only one of the fields, or split the information between both fields, so it will be concatenated up to the 120 allowed positions.
Will be informed the first 120 concatenation ones starting from the left.

Investment Assets deregistration: Conditional


It's mandatory to fill at least one of the following fields: TITULARNOM or TITULARNOMEXT.
It will always be concatenated fields TITULARNOM and TITULARNOMEXT.

SII-AEAT Integration Interface V5 (TXT) | 2.Link File Proposal | 13


Record Book submission response global header data SII-AEAT Integration Interface V5 (TXT)

Lengt
Field Type Description
h

It's up to the customer to use only one of the fields, or split the information between both fields, so it will be concatenated up to the 120 allowed positions.
Will be informed the first 120 concatenation ones starting from the left.

Cash Receivables deregistration: Conditional


It's mandatory to fill at least one of the following fields: TITULARNOM or TITULARNOMEXT.
It will always be concatenated fields TITULARNOM and TITULARNOMEXT.
It's up to the customer to use only one of the fields, or split the information between both fields, so it will be concatenated up to the 120 allowed positions.
Will be informed the first 120 concatenation ones starting from the left.

Invoices Issued deregistration: Conditional


It's mandatory to fill at least one of the following fields: TITULARNOM or TITULARNOMEXT.
It will always be concatenated fields TITULARNOM and TITULARNOMEXT.
It's up to the customer to use only one of the fields, or split the information between both fields, so it will be concatenated up to the 120 allowed positions.
Will be informed the first 120 concatenation ones starting from the left.

Invoices Received deregistration: Conditional


It's mandatory to fill at least one of the following fields: TITULARNOM or TITULARNOMEXT.
It will always be concatenated fields TITULARNOM and TITULARNOMEXT.
It's up to the customer to use only one of the fields, or split the information between both fields, so it will be concatenated up to the 120 allowed positions.
Will be informed the first 120 concatenation ones starting from the left.

Intra-community transactions deregistration: Conditional


It's mandatory to fill at least one of the following fields: TITULARNOM or TITULARNOMEXT.
It will always be concatenated fields TITULARNOM and TITULARNOMEXT.
It's up to the customer to use only one of the fields, or split the information between both fields, so it will be concatenated up to the 120 allowed positions.
Will be informed the first 120 concatenation ones starting from the left.

Insurance operations: Conditional


It's mandatory to fill at least one of the following fields: TITULARNOM or TITULARNOMEXT.
It will always be concatenated fields TITULARNOM and TITULARNOMEXT.
It's up to the customer to use only one of the fields, or split the information between both fields, so it will be concatenated up to the 120 allowed positions.
Will be informed the first 120 concatenation ones starting from the left.

Insurance operations deregistration: Conditional


It's mandatory to fill at least one of the following fields: TITULARNOM or TITULARNOMEXT.
It will always be concatenated fields TITULARNOM and TITULARNOMEXT.
It's up to the customer to use only one of the fields, or split the information between both fields, so it will be concatenated up to the 120 allowed positions.
Will be informed the first 120 concatenation ones starting from the left.

Travel Agencies: Conditional


It's mandatory to fill at least one of the following fields: TITULARNOM or TITULARNOMEXT.
It will always be concatenated fields TITULARNOM and TITULARNOMEXT.
It's up to the customer to use only one of the fields, or split the information between both fields, so it will be concatenated up to the 120 allowed positions.
Will be informed the first 120 concatenation ones starting from the left.

Travel Agencies deregistration: Conditional


It's mandatory to fill at least one of the following fields: TITULARNOM or TITULARNOMEXT.
It will always be concatenated fields TITULARNOM and TITULARNOMEXT.
It's up to the customer to use only one of the fields, or split the information between both fields, so it will be concatenated up to the 120 allowed positions.
Will be informed the first 120 concatenation ones starting from the left.

SII-AEAT Integration Interface V5 (TXT) | 2.Link File Proposal | 14


Record Book submission response global header data SII-AEAT Integration Interface V5 (TXT)

Lengt
Field Type Description
h

IDSUMPROPIO X 100 Costumer-generated document ID

Investment assets: Conditional

Receivables issued: Conditional

Invoices issued: Conditional

Invoices received: Conditional

Intra-community transactions: Conditional

Cash receivables: Conditional

Received payments: Conditional

Investment Assets deregistration: Conditional

Cash Receivables deregistration: Conditional

Invoices Issued deregistration: Conditional

Invoices Received deregistration: Conditional

Intra-community transactions deregistration: Conditional

Insurance operations: Conditional

Insurance operations deregistration: Conditional

Travel Agencies: Conditional

Travel Agencies deregistration: Conditional

SII-AEAT Integration Interface V5 (TXT) | 2.Link File Proposal | 15


Record Book Entry. All books. SII-AEAT Integration Interface V5 (TXT)

2.2. Record Book Entry. All books.


Record Book submission response global header data > Record Book Entry. All books.
Description: Mandatory record for all books
Physical file name: LRAPUNTE.TXT
Mandatory: Mandatory
This section is repeatable with the following restrictions:
Minimum number of occurrences: 1
Maximum number of occurrences: 99999

Lengt
Field Type Description
h

IDLR X 10 Link to transaction description file.


IDAPUNTE X 10 Id that identifies the note made.
EJERCICIO X 4 Tax year. Year to which the entries correspond.

The Year/financial period must be between current year and previous years.

Investment assets: Mandatory

Invoices issued: Mandatory

Invoices received: Mandatory

Intra-community transactions: Mandatory

Cash receivables: Mandatory

Cash Receivables deregistration: Mandatory

Invoices Issued deregistration: Mandatory

Invoices Received deregistration: Mandatory

Investment Assets deregistration: Mandatory

Intra-community transactions deregistration: Mandatory

Insurance operations: Mandatory

Insurance operations deregistration: Mandatory

SII-AEAT Integration Interface V5 (TXT) | 2.Link File Proposal | 16


Record Book Entry. All books. SII-AEAT Integration Interface V5 (TXT)

Lengt
Field Type Description
h

Travel Agencies: Mandatory

Travel Agencies deregistration: Mandatory


PERIODO X 20 Period to which the entries correspond. All entries must correspond to the same tax period.

Permitted values list:


01: January
02: February
03: March
04: April
05: May
06: June
07: July
08: August
09: September
10: October
11: November
12: December
0A: Annual periodicity

If the Year corresponds with the current year, the financial period shall not exceed current period.

Invoices Issued Record Book, Received Invoices Record Book and Intra-community transactions will have a monthly periodicity. Cash Payments Book, Insurance Operations,
Travel Agencies and Investment Assets shall have annual periodicity.

Investment assets: Mandatory

Invoices issued: Mandatory

Invoices received: Mandatory

Intra-community transactions: Mandatory

Cash receivables: Mandatory

Cash Receivables deregistration: Mandatory

Invoices Issued deregistration: Mandatory

Invoices Received deregistration: Mandatory

Investment Assets deregistration: Mandatory

Intra-community transactions deregistration: Mandatory

Insurance operations: Mandatory

Insurance operations deregistration: Mandatory

SII-AEAT Integration Interface V5 (TXT) | 2.Link File Proposal | 17


Record Book Entry. All books. SII-AEAT Integration Interface V5 (TXT)

Lengt
Field Type Description
h

Travel Agencies: Mandatory

Travel Agencies deregistration: Mandatory


NIFEMISOR X 9 NIF of the invoice issuer. Mandatory if the issuer is a Spanish taxpayer.

Every invoice has to have identified the invoice issuer, NIFEMISOR field must be filled in case of spanish taxpayers and the set of fileds, IDEMISOR, IDEMISORPAIS,
IDEMISORTIPO in case of foreign taxpayers

Investment assets: Mandatory

Receivables issued: Mandatory

Invoices issued: Mandatory

Investment Assets deregistration: Conditional

Invoices Issued deregistration: Mandatory

Invoices Received deregistration: Conditional

Intra-community transactions deregistration: Conditional

Intra-community transactions: Conditional

Received payments: Conditional

Invoices received: Conditional


On import received invoices F5 (DUA), the field NIFEMISOR will be complimented with the NIF of the Invoice Received Record Book's holder.
IDEMISOR X 20 Identification of the issuer when no NIF is available. Identifier of physical or legal person other than NIF (Country code, Identifier type, and up to 15 characters)

Every invoice has to have identified the invoice issuer, NIFEMISOR field must be filled in case of spanish taxpayers and the set of fileds, IDEMISOR, IDEMISORPAIS,
IDEMISORTIPO in case of foreign taxpayers

Invoices Received deregistration: Conditional

Intra-community transactions deregistration: Conditional

Investment assets: Conditional

Intra-community transactions: Conditional

Received payments: Conditional

Investment Assets deregistration: Conditional

Invoices received: Conditional


IDEMISORPAIS X 20 Code of country (ISO 2 characters) assigning issuer identification.

SII-AEAT Integration Interface V5 (TXT) | 2.Link File Proposal | 18


Record Book Entry. All books. SII-AEAT Integration Interface V5 (TXT)

Lengt
Field Type Description
h

Invoices Received deregistration: Conditional

Intra-community transactions deregistration: Conditional

Investment assets: Conditional

Intra-community transactions: Conditional

Received payments: Conditional

Investment Assets deregistration: Conditional

Invoices received: Conditional


IDEMISORTIPO X 20 Type of issuer identification provided.

Permitted values list:


02: NIFIVA (VAT ID)
03: Passport
04: Official ID in country of residence
05: Residence Certificate
06: Other ID
07: Not Censused

Invoices Received deregistration: Conditional

Intra-community transactions deregistration: Conditional

Investment assets: Conditional

Intra-community transactions: Conditional

Received payments: Conditional

Investment Assets deregistration: Conditional

Invoices received: Conditional


NUMSERIE X 60 Serial number of invoice assigned by issuer.

Serial number + Invoice number

Investment assets: Mandatory

Receivables issued: Mandatory

Invoices issued: Mandatory


In F4 Issued Invoices (global summary entry) NUMSERIE will show the initial number of the invoice's range to register.

Invoices received: Mandatory

SII-AEAT Integration Interface V5 (TXT) | 2.Link File Proposal | 19


Record Book Entry. All books. SII-AEAT Integration Interface V5 (TXT)

Lengt
Field Type Description
h

In F4 Received Invoices (global summary entry) NUMSERIE will show the initial number of the invoice's range to register.

Received payments: Mandatory

Investment Assets deregistration: Mandatory

Invoices Issued deregistration: Mandatory

Invoices Received deregistration: Mandatory

Intra-community transactions deregistration: Mandatory

Intra-community transactions: Mandatory


FECFACTURA X 10 Invoice date of issue.

Format dd-mm-yyyy

Investment assets: Mandatory

Receivables issued: Mandatory

Invoices issued: Mandatory

Invoices received: Mandatory

Received payments: Mandatory

Investment Assets deregistration: Mandatory

Invoices Issued deregistration: Mandatory

Invoices Received deregistration: Mandatory

Intra-community transactions deregistration: Mandatory

Intra-community transactions: Mandatory


TIPOFACTURA X 20 Invoice type key.

Invoices issued: Mandatory

Permitted values list:


F1: Invoice
F2: Simplified invoice
F3: Invoice issued in replacement of simplified invoices billed and declared.
F4: Invoice summary entry.
R1: Corrected invoice Based on law error- (art. 80. One and Two)
R2: Corrected invoice (art. 80 Three LIVA) tender
R3: Corrected invoice (art. 80 Four LIVA) - bad debt
R4: Corrected invoice - Rest

SII-AEAT Integration Interface V5 (TXT) | 2.Link File Proposal | 20


Record Book Entry. All books. SII-AEAT Integration Interface V5 (TXT)

Lengt
Field Type Description
h

R5: Corrected invoice of Simplified invoice

Invoices received: Mandatory

Permitted values list:


F1: Invoice
F2: Simplified invoice
R1: Corrected invoice Based on law error- (art. 80. One and Two)
R2: Corrected invoice (art. 80 Three LIVA) tender
R3: Corrected invoice (art. 80 Four LIVA) - bad debt
R4: Corrected invoice - Rest
R5: Corrected invoice of Simplified invoice
F3: Invoice issued in replacement of simplified invoices billed and declared.
F4: Invoice summary entry.
F5: Import (DUA)
F6: Other accountant receipts and receipt documents for the right of deducction
TIPORECTIFICA X 20 Corrected invoice type key

Permitted values list:


S: By substitution
I: By differences

Invoices issued: Conditional

Invoices received: Conditional


BASESUSTITUIDA N 16.2 Tax base replaced in corrected substitute invoices

Mandatory if TIPORECTIFICA = S
Format (\+|-)?\d{1,12}(\.\d{0,2})?
Sign up to 12 integer positions, decimal sign . up to 2 decimal points

Invoices received: Conditional

Invoices issued: Conditional


CUOTASUSTITUIDA N 16.2 VAT amount replaced in corrected substitute invoices

Format (\+|-)?\d{1,12}(\.\d{0,2})?
Sign up to 12 integer positions, decimal sign . up to 2 decimal points

Invoices received: Conditional

Invoices issued: Conditional


RECARGOSUSTITUI N 16.2 Surcharge amount replaced in corrected substitute invoices
DO
Format (\+|-)?\d{1,12}(\.\d{0,2})?
Sign up to 12 integer positions, decimal sign . up to 2 decimal points

Invoices received: Conditional

SII-AEAT Integration Interface V5 (TXT) | 2.Link File Proposal | 21


Record Book Entry. All books. SII-AEAT Integration Interface V5 (TXT)

Lengt
Field Type Description
h

Invoices issued: Conditional


FECOPERACION X 10 Transaction date.

Format dd-mm-yyyy

Invoices received: Conditional

Invoices issued: Conditional


REGESPECIAL X 20 Key of special regime of transaction or liability.

Key to identify operation type orspecial regime of transaction or liability.


It's possible to consign 3 different keys with the fields REGESPECIAL, REGEADD1 and REGEADD2
Validations to be considered will depend on the key consigned into the field REGESPECIAL.

Invoices issued: Mandatory

Permitted values list:


01: General regime transaction
02: Export
03: Transactions under the special regime for used goods, artworks, antiques and collectable items (135-139 of the VAT act)
04: Special regime for gold investments
05: Special regime for travel agencies
06: Special regime for business groups in VAT (Advanced Level)
07: Special regime cash basis
08: Transactions subject to the Ceuta and Melilla production, services and imports tax and the general indirect tax of the Canary Islands (IPSI/IGIC)
09: Invoicing of services rendered by travel agencies acting as mediators on behalf of third parties (4th additional condition of Royal Decree 1619/2012)
10: Collections on behalf of third parties of professional fees or intellectual property rights, copyrights or others on behalf of members, associates or associated members made
by societies, associations, professional colleges or other entities which, among other functions, perform collections
11: Leasing operations of the business premises subject to withholding tax
12: Leasing operations of the business premises not subject to withholding tax
13: Leasing operations of business premises that are subject and not subject to withholding tax
14: VAT invoice pending accrual (certifications of works whose recipient is a public administration)
15: VAT invoice pending accrual (uninterrupted operations)
16: First semester of 2017

Invoices received: Mandatory

Permitted values list:


01: General regime transaction
02: Transactions through which business owners pay compensations -special regime for agriculture, livestock and fisheries (REAGYP)
03: Transactions under the special regime for used goods, artworks, antiques and collectable items (135-139 of the VAT act)
04: Special regime for gold investments
05: Special regime for travel agencies
06: Special regime for business groups in VAT (Advanced Level)
07: Special regime cash basis
08: Transactions subject to the Ceuta and Melilla production, services and imports tax and the general indirect tax of the Canary Islands (IPSI/IGIC)
09: Intra-community acquisitions of goods and services
12: Leasing operations of the business premises

SII-AEAT Integration Interface V5 (TXT) | 2.Link File Proposal | 22


Record Book Entry. All books. SII-AEAT Integration Interface V5 (TXT)

Lengt
Field Type Description
h

13: Invoice corresponding to an import (informed without DUA asociation)


14: First semester of 2017
IMPORTETOTAL N 16.2 Total amount of invoice or receivable without exemption.

Format (\+|-)?\d{1,12}(\.\d{0,2})?
Sign up to 12 integer positions, decimal sign . up to 2 decimal points.

Invoices issued: Mandatory

Invoices received: Conditional

Cash receivables: Mandatory


Total amount must be greater than 6.000 in case of Cash Receivables.

Insurance operations: Mandatory


Total amount must be greater than 3.005,06 in case of Insurance Operations

Travel Agencies: Mandatory


BASEIMPONIBLE N 16.2 Taxable base of invoice amount.

Only be filled if (not mandatory) REGESPECIAL = 06 (Special regime for VAT group entities (advanced level))
Format (\+|-)?\d{1,12}(\.\d{0,2})?
Sign up to 12 integer positions, decimal sign . up to 2 decimal points

Invoices received: Conditional

Invoices issued: Conditional


DESCOPERACION X 500 Free text description of transaction

Invoices issued: Mandatory

Invoices received: Mandatory


SITUACIONIMB X 20 Location of the property on which the operation is performed

Permitted values list:


1: Property with cadastral reference, situated in Spanish territory except for Basque Country and Navarre
2: Property situated in the Autonomous Community of the Basque Country and in the Autonomous Community of Navarre
3: Property in any of the above situations but without cadastral reference.
4: Property situated abroad.

In case of invoices issued it can only be filled if REGESPECIAL = 12 or 13.

Invoices issued: Conditional


Only be filled if REGESPECIAL = 12 or 13.
REFCATASTRAL X 25 Cadastral reference of the property

In case of invoices issued it can only be filled if REGESPECIAL = 12 or 13

SII-AEAT Integration Interface V5 (TXT) | 2.Link File Proposal | 23


Record Book Entry. All books. SII-AEAT Integration Interface V5 (TXT)

Lengt
Field Type Description
h

Mandatory when SITUACIONIMB is not 3 value.


Identification block of property involved in the operation
Applicable only for the FE book.

Invoices issued: Conditional


Only be filled if REGESPECIAL = 12 or 13.
IMPSUJETOIVA N 16.2 Amount of the transmission of properties subject to VAT

Format (\+|-)?\d{1,12}(\.\d{0,2})?
Sign up to 12 integer positions, decimal sign . up to 2 decimal points

Invoices issued: Conditional


TERCEROS X 20 Invoice issued by third parties.

Permitted values list:


S: Yes
N: NO

Invoices issued: Conditional


RAZONCONTRA X 40 Name and address of the counterparty.

Mandatory for received and optional for inssued F2, F4 and R5.
Block with details of Counterparty invoice (E o R), intra-community transaction, insurance operations, cash payments or travel agencies.

Cash receivables: Conditional


It's mandatory to fill at least one of the following fields: RAZONCONTRA or RAZONCONTRAEXT
It will always be concatenated fields RAZONCONTRA and RAZONCONTRAEXT.
It's up to the customer to use only one of the fields, or split the information between both fields, so it will be concatenated up to the 120 allowed positions.
Will be informed the first 120 concatenation ones starting from the left.

Invoices issued: Conditional


It's mandatory to fill at least one of the following fields: RAZONCONTRA or RAZONCONTRAEXT except for F2, F4 and R5 which is optional.
It will always be concatenated fields RAZONCONTRA and RAZONCONTRAEXT.
It's up to the customer to use only one of the fields, or split the information between both fields, so it will be concatenated up to the 120 allowed positions.
Will be informed the first 120 concatenation ones starting from the left.

Invoices received: Conditional


On received invoices counterparty will be the sender of the invoices except when TIPOFACTURA = F5 that will be complimented with the information of the holder of the Invoice
Received Record Book
It's mandatory to fill at least one of the following fields: RAZONCONTRA or RAZONCONTRAEXT
Will be informed the first 120 concatenation ones starting from the left.

Intra-community transactions: Conditional


It's mandatory to fill at least one of the following fields: RAZONCONTRA or RAZONCONTRAEXT
It will always be concatenated fields RAZONCONTRA and RAZONCONTRAEXT.
It's up to the customer to use only one of the fields, or split the information between both fields, so it will be concatenated up to the 120 allowed positions.
Will be informed the first 120 concatenation ones starting from the left.

SII-AEAT Integration Interface V5 (TXT) | 2.Link File Proposal | 24


Record Book Entry. All books. SII-AEAT Integration Interface V5 (TXT)

Lengt
Field Type Description
h

Cash Receivables deregistration: Conditional


It's mandatory to fill at least one of the following fields: RAZONCONTRA or RAZONCONTRAEXT
It will always be concatenated fields RAZONCONTRA and RAZONCONTRAEXT.
It's up to the customer to use only one of the fields, or split the information between both fields, so it will be concatenated up to the 120 allowed positions.
Will be informed the first 120 concatenation ones starting from the left.

Insurance operations: Conditional


It's mandatory to fill at least one of the following fields: RAZONCONTRA or RAZONCONTRAEXT
It will always be concatenated fields RAZONCONTRA and RAZONCONTRAEXT.
It's up to the customer to use only one of the fields, or split the information between both fields, so it will be concatenated up to the 120 allowed positions.
Will be informed the first 120 concatenation ones starting from the left.

Insurance operations deregistration: Conditional


It's mandatory to fill at least one of the following fields: RAZONCONTRA or RAZONCONTRAEXT
It will always be concatenated fields RAZONCONTRA and RAZONCONTRAEXT.
It's up to the customer to use only one of the fields, or split the information between both fields, so it will be concatenated up to the 120 allowed positions.
Will be informed the first 120 concatenation ones starting from the left.

Travel Agencies: Conditional


It's mandatory to fill at least one of the following fields: RAZONCONTRA or RAZONCONTRAEXT
It will always be concatenated fields RAZONCONTRA and RAZONCONTRAEXT.
It's up to the customer to use only one of the fields, or split the information between both fields, so it will be concatenated up to the 120 allowed positions.
Will be informed the first 120 concatenation ones starting from the left.

Travel Agencies deregistration: Conditional


It's mandatory to fill at least one of the following fields: RAZONCONTRA or RAZONCONTRAEXT
It will always be concatenated fields RAZONCONTRA and RAZONCONTRAEXT.
It's up to the customer to use only one of the fields, or split the information between both fields, so it will be concatenated up to the 120 allowed positions.
Will be informed the first 120 concatenation ones starting from the left.
NIFREPCONTRA X 9 NIF of counterpartys representative.

Only for representatives of minors.


Block with details of Counterparty invoice (E o R), intra-community transaction, insurance operations, cash payments or travel agencies.

Cash receivables: Conditional

Intra-community transactions: Conditional

Cash Receivables deregistration: Conditional

Invoices received: Conditional


On received invoices counterparty will be the sender of the invoices except when TIPOFACTURA = F5 that will be complimented with the information of the holder of the Invoice
Received Record Book

Invoices issued: Conditional


Is optional on sended invoices for F2, F4 and R5.
In case of issued invoices, counterparty will be the invoices receiver

Insurance operations: Conditional

SII-AEAT Integration Interface V5 (TXT) | 2.Link File Proposal | 25


Record Book Entry. All books. SII-AEAT Integration Interface V5 (TXT)

Lengt
Field Type Description
h

Insurance operations deregistration: Conditional

Travel Agencies: Conditional

Travel Agencies deregistration: Conditional


NIFCONTRA X 9 NIF of counterparty.

Mandatory for received and optional for F2, F4 and R5.


Block with details of Counterparty invoice (E o R), intra-community transaction, insurance operations, cash payments or travel agencies.
The counterparty must be identified, either by NIF or by the combination IDCONTRAPARTE IDCONTRAPAIS and IDCONTRATIPO.

Cash receivables: Conditional

Intra-community transactions: Conditional

Cash Receivables deregistration: Conditional

Invoices received: Conditional


On received invoices counterparty will be the sender of the invoices except when TIPOFACTURA = F5 that will be complimented with the information of the holder of the Invoice
Received Record Book

Invoices issued: Conditional


Is optional on sended invoices for F2, F4 and R5.
In case of issued invoices, counterparty will be the invoices receiver

Insurance operations: Conditional

Insurance operations deregistration: Conditional

Travel Agencies: Conditional

Travel Agencies deregistration: Conditional


IDCONTRAPARTE X 20 Identification of the counterparty when no NIF is available.
Identifier of physical or legal person other than NIF (Country code, Identifier type, and up to 15 characters)

Mandatory for received and optional for inssued Simplified invoice and Invoice summary entry.
Block with details of Counterparty invoice (E o R), intra-community transaction, insurance operations, cash payments or travel agencies.
The counterparty must be identified, either by NIF or by the combination IDCONTRAPARTE IDCONTRAPAIS and IDCONTRATIPO.

Cash receivables: Conditional

Intra-community transactions: Conditional

Cash Receivables deregistration: Conditional

Invoices received: Conditional


On received invoices counterparty will be the sender of the invoices except when TIPOFACTURA = F5 that will be complimented with the information of the holder of the Invoice
Received Record Book

SII-AEAT Integration Interface V5 (TXT) | 2.Link File Proposal | 26


Record Book Entry. All books. SII-AEAT Integration Interface V5 (TXT)

Lengt
Field Type Description
h

Invoices issued: Conditional


Is optional on sended invoices for F2, F4 and R5.
In case of issued invoices, counterparty will be the invoices receiver

Insurance operations: Conditional

Insurance operations deregistration: Conditional

Travel Agencies: Conditional

Travel Agencies deregistration: Conditional


IDCONTRAPAIS X 20 Code of country (ISO 2 characters) assigning counterparty identification.

Cash receivables: Conditional

Intra-community transactions: Conditional

Cash Receivables deregistration: Conditional

Invoices received: Conditional


On received invoices counterparty will be the sender of the invoices except when TIPOFACTURA = F5 that will be complimented with the information of the holder of the Invoice
Received Record Book

Invoices issued: Conditional


Is optional on sended invoices for F2, F4 and R5.
In case of issued invoices, counterparty will be the invoices receiver

Insurance operations: Conditional

Insurance operations deregistration: Conditional

Travel Agencies: Conditional

Travel Agencies deregistration: Conditional


IDCONTRATIPO X 20 Counterparty identification type provided.

Permitted values list:


02: NIFIVA counterpart (VAT ID)
03: Passport
04: Official ID in country of residence
05: Residence Certificate
06: Other ID
07: Not Censused

Cash receivables: Conditional

Intra-community transactions: Conditional

SII-AEAT Integration Interface V5 (TXT) | 2.Link File Proposal | 27


Record Book Entry. All books. SII-AEAT Integration Interface V5 (TXT)

Lengt
Field Type Description
h

Cash Receivables deregistration: Conditional

Invoices received: Conditional


On received invoices counterparty will be the sender of the invoices except when TIPOFACTURA = F5 that will be complimented with the information of the holder of the Invoice
Received Record Book

Invoices issued: Conditional


Is optional on sended invoices for F2, F4 and R5.
In case of issued invoices, counterparty will be the invoices receiver

Insurance operations: Conditional

Insurance operations deregistration: Conditional

Travel Agencies: Conditional

Travel Agencies deregistration: Conditional


FECREGCONTABLE X 10 Date of entry in accounting record

Only for Received invoices record book.


Format dd-mm-yyyy

Invoices received: Mandatory


CUOTADEDUCIBLE N 16.2 Deductible quota amount.

Format (\+|-)?\d{1,12}(\.\d{0,2})?
Sign up to 12 integer positions, decimal sign . up to 2 decimal points.

Invoices received: Mandatory


IDENBIEN X 20 Identification of investment goods.

Investment assets: Mandatory


FECHAINI X 10 Asset utilization start date

Format dd-mm-yyyy

Investment assets: Mandatory


PRORRATAANUAL N 5.2 Definitive annual pro rata percentage.

Format \d{1,2}(\.\d{0,2})?
Sign up to 2 integer positions, decimal sign . up to 2 decimal points

Investment assets: Mandatory


REGULADEDUCCIO N 16.2 Annual adjustment amount, deduction.
N
Format (\+|-)?\d{1,12}(\.\d{0,2})?

SII-AEAT Integration Interface V5 (TXT) | 2.Link File Proposal | 28


Record Book Entry. All books. SII-AEAT Integration Interface V5 (TXT)

Lengt
Field Type Description
h

Sign up to 12 integer positions, decimal sign . up to 2 decimal points

Investment assets: Mandatory


IDENTIFICAENTREG X 40 Delivery identification
A
Investment assets: Conditional
DEDUCCIONEFEC N 16.2 Adjustment amount, effective deduction.

Format (\+|-)?\d{1,12}(\.\d{0,2})?
Sign up to 12 integer positions, decimal sign . up to 2 decimal points.

Investment assets: Conditional


TIPOOPERACION X 20 Transaction type.

Permitted values list:


A: Sending or receipt of goods for drafting of partial reports or works cited in article 70; section one; number 7; of the Tax Law (Law 37/1992)
B: Transfers of goods and intra-community acquisitions of goods covered by articles 9; section 3; and 16; section 2; of the Tax Law (Law 37/1992)

Intra-community transactions: Mandatory


CLAVEDECLARADO X 20 Key declared

Permitted values list:


D: Recipient
R: Sender

Intra-community transactions: Mandatory


ESTADOMIEMBRO X 20 Country code of Member State with which the operation takes place. 2-character ISO code.

Intra-community transactions: Mandatory


PLAZOOPERACION X 20 Transaction term.

Intra-community transactions: Conditional


DESCRIPBIENES X 40 Description of goods involved in the operation.

Intra-community transactions: Mandatory


DESCRIPOPERADO X 120 Operator address.
R
Intra-community transactions: Mandatory
FACTURASODOC X 150 Invoice data and documentation for operation validation/checking.

Intra-community transactions: Conditional


NUMSERIEFIN X 60 Serial number of invoice assigned by issuer

Will show the final number of the Simplified invoice's range to register of global summary entry (F4).

SII-AEAT Integration Interface V5 (TXT) | 2.Link File Proposal | 29


Record Book Entry. All books. SII-AEAT Integration Interface V5 (TXT)

Lengt
Field Type Description
h

Invoices issued: Conditional


In Issued Invoices NUMSERIEFIN will show the final number of the Simplified invoice's range to register of global summary entry (F4).

Invoices received: Conditional


In Received Invoices NUMSERIEFIN will show the final number of the invoice's range to register of global summary entry (F4).

Invoices Received deregistration: Conditional


NOMBREEMISOR X 40 Name or company name of issuer of the document referenced in the entry.

It must be informed: first surname, second surname and name without punctuation marks.
It's mandatory to fill at least one of the following fields: NOMBREEMISOR or NOMBREEMISOREXT
It will always be concatenated fields TITULARNOM and TITULARNOMEXT.
It's up to the customer to use only one of the fields, or split the information between both fields, so it will be concatenated up to the 120 allowed positions.
Will be informed the first 120 concatenation ones starting from the left.

Investment assets: Conditional


It's mandatory to fill at least one of the following fields: NOMBREEMISOR or NOMBREEMISOREXT.
It will always be concatenated fields NOMBREEMISOR and NOMBREEMISOREXT.
It's up to the customer to use only one of the fields, or split the information between both fields, so it will be concatenated up to the 120 allowed positions.
Will be informed the first 120 concatenation ones starting from the left.

Intra-community transactions: Conditional


It's mandatory to fill at least one of the following fields: NOMBREEMISOR or NOMBREEMISOREXT.
It will always be concatenated fields NOMBREEMISOR and NOMBREEMISOREXT.
It's up to the customer to use only one of the fields, or split the information between both fields, so it will be concatenated up to the 120 allowed positions.
Will be informed the first 120 concatenation ones starting from the left.

Received payments: Conditional


It's mandatory to fill at least one of the following fields: NOMBREEMISOR or NOMBREEMISOREXT.
It will always be concatenated fields NOMBREEMISOR and NOMBREEMISOREXT.
It's up to the customer to use only one of the fields, or split the information between both fields, so it will be concatenated up to the 120 allowed positions.
Will be informed the first 120 concatenation ones starting from the left.

Investment Assets deregistration: Conditional


It's mandatory to fill at least one of the following fields: NOMBREEMISOR or NOMBREEMISOREXT.
It will always be concatenated fields NOMBREEMISOR and NOMBREEMISOREXT.
It's up to the customer to use only one of the fields, or split the information between both fields, so it will be concatenated up to the 120 allowed positions.
Will be informed the first 120 concatenation ones starting from the left.

Invoices Received deregistration: Conditional


It's mandatory to fill at least one of the following fields: NOMBREEMISOR or NOMBREEMISOREXT.
It will always be concatenated fields NOMBREEMISOR and NOMBREEMISOREXT.
It's up to the customer to use only one of the fields, or split the information between both fields, so it will be concatenated up to the 120 allowed positions.
Will be informed the first 120 concatenation ones starting from the left.

Intra-community transactions deregistration: Conditional


It's mandatory to fill at least one of the following fields: NOMBREEMISOR or NOMBREEMISOREXT.
It will always be concatenated fields NOMBREEMISOR and NOMBREEMISOREXT.

SII-AEAT Integration Interface V5 (TXT) | 2.Link File Proposal | 30


Record Book Entry. All books. SII-AEAT Integration Interface V5 (TXT)

Lengt
Field Type Description
h

It's up to the customer to use only one of the fields, or split the information between both fields, so it will be concatenated up to the 120 allowed positions.
Will be informed the first 120 concatenation ones starting from the left.
NUMERODUA X 40 DEPRECATED
FECCONTABLEDUA X 10 DEPRECATED
VARIOSDESTINOS X 20 Identificator to specify if the invoice has several receivers

Permitted values list:


S: Yes
N: NO

If this field is not informed it would be set "N" as default value.

Invoices issued: Conditional


CUPON X 20 Indicates if any coupon is applied

Only for R1, R5 or F4 invoices type especifies if it has reduction of taxable income for grating of coupons, allowances or discounts only when original of the invoice is issued.?If this
field is not informed it would be set "N" as default value.

Invoices issued: Conditional


TIPOOPERSEGURO X 20 Insurance Operations key

Permitted values list:


A: Insurance compensations paid over 3005,06
B: Insurance premiums received over 3005,06

Only appropiate to identify insurance operations from insurance companies

Insurance operations: Mandatory

Insurance operations deregistration: Mandatory


NOMBREEMISOREX X 120 Extension name or company name of issuer of the document referenced in the entry.
T It's mandatory to fill at least one of the following fields: NOMBREEMISOR or NOMBREEMISOREXT
It will always be concatenated fields TITULARNOM and TITULARNOMEXT.
It's up to the customer to use only one of the fields, or split the information between both fields, so it will be concatenated up to the 120 allowed positions.

It's mandatory to fill at least one of the following fields: NOMBREEMISOR or NOMBREEMISOREXT
It will always be concatenated fields TITULARNOM and TITULARNOMEXT.
IIt's up to the customer to use only one of the fields, or split the information between both fields, so it will be concatenated up to the 120 allowed positions.

Investment assets: Conditional


It's mandatory to fill at least one of the following fields: NOMBREEMISOR or NOMBREEMISOREXT.
It will always be concatenated fields NOMBREEMISOR and NOMBREEMISOREXT.
It's up to the customer to use only one of the fields, or split the information between both fields, so it will be concatenated up to the 120 allowed positions.
Will be informed the first 120 concatenation ones starting from the left.

Intra-community transactions: Conditional

SII-AEAT Integration Interface V5 (TXT) | 2.Link File Proposal | 31


Record Book Entry. All books. SII-AEAT Integration Interface V5 (TXT)

Lengt
Field Type Description
h

It's mandatory to fill at least one of the following fields: NOMBREEMISOR or NOMBREEMISOREXT.
It will always be concatenated fields NOMBREEMISOR and NOMBREEMISOREXT.
It's up to the customer to use only one of the fields, or split the information between both fields, so it will be concatenated up to the 120 allowed positions.
Will be informed the first 120 concatenation ones starting from the left.

Received payments: Conditional


It's mandatory to fill at least one of the following fields: NOMBREEMISOR or NOMBREEMISOREXT.
It will always be concatenated fields NOMBREEMISOR and NOMBREEMISOREXT.
It's up to the customer to use only one of the fields, or split the information between both fields, so it will be concatenated up to the 120 allowed positions.
Will be informed the first 120 concatenation ones starting from the left.

Investment Assets deregistration: Conditional


It's mandatory to fill at least one of the following fields: NOMBREEMISOR or NOMBREEMISOREXT.
It will always be concatenated fields NOMBREEMISOR and NOMBREEMISOREXT.
It's up to the customer to use only one of the fields, or split the information between both fields, so it will be concatenated up to the 120 allowed positions.
Will be informed the first 120 concatenation ones starting from the left.

Invoices Received deregistration: Conditional


It's mandatory to fill at least one of the following fields: NOMBREEMISOR or NOMBREEMISOREXT.
It will always be concatenated fields NOMBREEMISOR and NOMBREEMISOREXT.
It's up to the customer to use only one of the fields, or split the information between both fields, so it will be concatenated up to the 120 allowed positions.
Will be informed the first 120 concatenation ones starting from the left.

Intra-community transactions deregistration: Conditional


It's mandatory to fill at least one of the following fields: NOMBREEMISOR or NOMBREEMISOREXT.
It will always be concatenated fields NOMBREEMISOR and NOMBREEMISOREXT.
It's up to the customer to use only one of the fields, or split the information between both fields, so it will be concatenated up to the 120 allowed positions.
Will be informed the first 120 concatenation ones starting from the left.
RAZONCONTRAEXT X 120 Extension name of the counterparty.

Mandatory for received and optional for inssued F2, F4 and R5. Block with details of Counterparty invoice (E o R), intra-community transaction, insurance operations, cash
payments or travel agencies.

Cash receivables: Conditional


It's mandatory to fill at least one of the following fields: RAZONCONTRA or RAZONCONTRAEXT
It will always be concatenated fields RAZONCONTRA and RAZONCONTRAEXT.
It's up to the customer to use only one of the fields, or split the information between both fields, so it will be concatenated up to the 120 allowed positions.
Will be informed the first 120 concatenation ones starting from the left.

Invoices issued: Conditional


It's mandatory to fill at least one of the following fields: RAZONCONTRA or RAZONCONTRAEXT except for F2, F4 and R5 which is optional.
It will always be concatenated fields RAZONCONTRA and RAZONCONTRAEXT.
It's up to the customer to use only one of the fields, or split the information between both fields, so it will be concatenated up to the 120 allowed positions.
Will be informed the first 120 concatenation ones starting from the left.

Invoices received: Conditional


On received invoices counterparty will be the sender of the invoices except when TIPOFACTURA = F5 that will be complimented with the information of the holder of the Invoice
Received Record Book
It's mandatory to fill at least one of the following fields: RAZONCONTRA or RAZONCONTRAEXT

SII-AEAT Integration Interface V5 (TXT) | 2.Link File Proposal | 32


Record Book Entry. All books. SII-AEAT Integration Interface V5 (TXT)

Lengt
Field Type Description
h

It will always be concatenated fields RAZONCONTRA and RAZONCONTRAEXT.


It's up to the customer to use only one of the fields, or split the information between both fields, so it will be concatenated up to the 120 allowed positions.
Will be informed the first 120 concatenation ones starting from the left.

Intra-community transactions: Conditional


It's mandatory to fill at least one of the following fields: RAZONCONTRA or RAZONCONTRAEXT
It will always be concatenated fields RAZONCONTRA and RAZONCONTRAEXT.
It's up to the customer to use only one of the fields, or split the information between both fields, so it will be concatenated up to the 120 allowed positions.
Will be informed the first 120 concatenation ones starting from the left.

Cash Receivables deregistration: Conditional


It's mandatory to fill at least one of the following fields: RAZONCONTRA or RAZONCONTRAEXT
It will always be concatenated fields RAZONCONTRA and RAZONCONTRAEXT.
It's up to the customer to use only one of the fields, or split the information between both fields, so it will be concatenated up to the 120 allowed positions.
Will be informed the first 120 concatenation ones starting from the left.

Insurance operations: Conditional


It's mandatory to fill at least one of the following fields: RAZONCONTRA or RAZONCONTRAEXT
It will always be concatenated fields RAZONCONTRA and RAZONCONTRAEXT.
It's up to the customer to use only one of the fields, or split the information between both fields, so it will be concatenated up to the 120 allowed positions.
Will be informed the first 120 concatenation ones starting from the left.

Insurance operations deregistration: Conditional


It's mandatory to fill at least one of the following fields: RAZONCONTRA or RAZONCONTRAEXT
It will always be concatenated fields RAZONCONTRA and RAZONCONTRAEXT.
It's up to the customer to use only one of the fields, or split the information between both fields, so it will be concatenated up to the 120 allowed positions.
Will be informed the first 120 concatenation ones starting from the left.

Travel Agencies: Conditional


It's mandatory to fill at least one of the following fields: RAZONCONTRA or RAZONCONTRAEXT
It will always be concatenated fields RAZONCONTRA and RAZONCONTRAEXT.
It's up to the customer to use only one of the fields, or split the information between both fields, so it will be concatenated up to the 120 allowed positions.
Will be informed the first 120 concatenation ones starting from the left.

Travel Agencies deregistration: Conditional


It's mandatory to fill at least one of the following fields: RAZONCONTRA or RAZONCONTRAEXT
It will always be concatenated fields RAZONCONTRA and RAZONCONTRAEXT.
It's up to the customer to use only one of the fields, or split the information between both fields, so it will be concatenated up to the 120 allowed positions.
Will be informed the first 120 concatenation ones starting from the left.
REGEADD1 X 20 Key of special regime of transaction or liability Additional 1.

Key to identify operation type orspecial regime of transaction or liability. It's possible to consign 3 different keys with the fields REGESPECIAL, REGEADD1 and REGEADD2
Validations to be considered will depend on the key consigned into the field REGESPECIAL.

Invoices issued: Conditional

Permitted values list:


01: General regime transaction
02: Export

SII-AEAT Integration Interface V5 (TXT) | 2.Link File Proposal | 33


Record Book Entry. All books. SII-AEAT Integration Interface V5 (TXT)

Lengt
Field Type Description
h

03: Transactions under the special regime for used goods, artworks, antiques and collectable items (135-139 of the VAT act)
04: Special regime for gold investments
05: Special regime for travel agencies
06: Special regime for business groups in VAT (Advanced Level)
07: Special regime cash basis
08: Transactions subject to the Ceuta and Melilla production, services and imports tax and the general indirect tax of the Canary Islands (IPSI/IGIC)
09: Invoicing of services rendered by travel agencies acting as mediators on behalf of third parties (4th additional condition of Royal Decree 1619/2012)
10: Collections on behalf of third parties of professional fees or intellectual property rights, copyrights or others on behalf of members, associates or associated members made
by societies, associations, professional colleges or other entities which, among other functions, perform collections
11: Leasing operations of the business premises subject to withholding tax
12: Leasing operations of the business premises not subject to withholding tax
13: Leasing operations of business premises that are subject and not subject to withholding tax
14: VAT invoice pending accrual (certifications of works whose recipient is a public administration)
15: VAT invoice pending accrual (uninterrupted operations)
16: First semester of 2017

Invoices received: Conditional

Permitted values list:


01: General regime transaction
02: Transactions through which business owners pay compensations -special regime for agriculture, livestock and fisheries (REAGYP)
03: Transactions under the special regime for used goods, artworks, antiques and collectable items (135-139 of the VAT act)
04: Special regime for gold investments
05: Special regime for travel agencies
06: Special regime for business groups in VAT (Advanced Level)
07: Special regime cash basis
08: Transactions subject to the Ceuta and Melilla production, services and imports tax and the general indirect tax of the Canary Islands (IPSI/IGIC)
09: Intra-community acquisitions of goods and services
12: Leasing operations of the business premises
13: Invoice corresponding to an import (informed without DUA asociation)
14: First semester of 2017
REGEADD2 X 20 Key of special regime of transaction or liability Additional 2.

Key to identify operation type orspecial regime of transaction or liability. It's possible to consign 3 different keys with the fields REGESPECIAL, REGEADD1 and REGEADD2
Validations to be considered will depend on the key consigned into the field REGESPECIAL.

Invoices issued: Conditional

Permitted values list:


01: General regime transaction
02: Export
03: Transactions under the special regime for used goods, artworks, antiques and collectable items (135-139 of the VAT act)
04: Special regime for gold investments
05: Special regime for travel agencies
06: Special regime for business groups in VAT (Advanced Level)
07: Special regime cash basis
08: Transactions subject to the Ceuta and Melilla production, services and imports tax and the general indirect tax of the Canary Islands (IPSI/IGIC)
09: Invoicing of services rendered by travel agencies acting as mediators on behalf of third parties (4th additional condition of Royal Decree 1619/2012)
10: Collections on behalf of third parties of professional fees or intellectual property rights, copyrights or others on behalf of members, associates or associated members made

SII-AEAT Integration Interface V5 (TXT) | 2.Link File Proposal | 34


Record Book Entry. All books. SII-AEAT Integration Interface V5 (TXT)

Lengt
Field Type Description
h

by societies, associations, professional colleges or other entities which, among other functions, perform collections
11: Leasing operations of the business premises subject to withholding tax
12: Leasing operations of the business premises not subject to withholding tax
13: Leasing operations of business premises that are subject and not subject to withholding tax
14: VAT invoice pending accrual (certifications of works whose recipient is a public administration)
15: VAT invoice pending accrual (uninterrupted operations)
16: First semester of 2017

Invoices received: Conditional

Permitted values list:


01: General regime transaction
02: Transactions through which business owners pay compensations -special regime for agriculture, livestock and fisheries (REAGYP)
03: Transactions under the special regime for used goods, artworks, antiques and collectable items (135-139 of the VAT act)
04: Special regime for gold investments
05: Special regime for travel agencies
06: Special regime for business groups in VAT (Advanced Level)
07: Special regime cash basis
08: Transactions subject to the Ceuta and Melilla production, services and imports tax and the general indirect tax of the Canary Islands (IPSI/IGIC)
09: Intra-community acquisitions of goods and services
12: Leasing operations of the business premises
13: Invoice corresponding to an import (informed without DUA asociation)
14: First semester of 2017
NUMACUERDO X 20 Register number obtained by sending the corresponding invoicing arrangement.

Register number obtained by sending the corresponding invoicing arrangement.

Invoices issued: Conditional

Invoices received: Conditional


USOPRIVADO X 100 Private use Field

Invoices issued: Conditional

Invoices received: Conditional

SII-AEAT Integration Interface V5 (TXT) | 2.Link File Proposal | 35


Record Book Entry. Grouped Invoices Detail. (FE and FR) SII-AEAT Integration Interface V5 (TXT)

2.3. Record Book Entry. Grouped Invoices Detail. (FE and FR)
Record Book submission response global header data > Record Book Entry. All books. > Record Book Entry. Grouped Invoices Detail. (FE and FR)
Description: Conditional record. It just can be included (it's not mandatory) when the field TipoFactura (invoice type)=Invoiced issued to replace simplified invoices already
invoiced and declared.
Physical file name: LRGRUP.TXT
Mandatory: Conditional
This section is repeatable with the following restrictions:
Minimum number of occurrences: 0
Maximum number of occurrences: 99999

Lengt
Field Type Description
h

IDLR X 10 Link to transaction description file.


IDAPUNTE X 10 Id that identifies the note made.
IDFACTURAGRU X 10 Id of grouped invoices detail.
NIFEMISOR X 9 DEPRECATED
IDEMISOR X 20 DEPRECATED
IDEMISORPAIS X 20 DEPRECATED
IDEMISORTIPO X 20 DEPRECATED
NUMSERIE X 60 Serial number of the invoice included in the grouped invoice entered in the record book.

Invoices received: Mandatory

Invoices issued: Mandatory


FECHAEXP X 10 Issue date of the invoice included in the grouped invoice entered in the record book.

Format dd-mm-yyyy

Invoices received: Mandatory

Invoices issued: Mandatory

SII-AEAT Integration Interface V5 (TXT) | 2.Link File Proposal | 36


Record Book Entry. Rectified Invoices detail. (FE and FR) SII-AEAT Integration Interface V5 (TXT)

2.4. Record Book Entry. Rectified Invoices detail. (FE and FR)
Record Book submission response global header data > Record Book Entry. All books. > Record Book Entry. Rectified Invoices detail. (FE and FR)
Description: Conditional record. It just can be included (it's not mandatory) when the field TipoFactura (invoice type)= Corrected invoice.
Physical file name: LRRECT.TXT
Mandatory: Conditional
This section is repeatable with the following restrictions:
Minimum number of occurrences: 0
Maximum number of occurrences: 99999

Lengt
Field Type Description
h

IDLR X 10 Link to transaction description file.


IDAPUNTE X 10 Id that identifies the note made.
IDFACTURAREC X 10 Id of Rectified Invoice
NIFEMISOR X 9 DEPRECATED
IDEMISOR X 20 DEPRECATED
IDEMISORPAIS X 20 DEPRECATED
IDEMISORTIPO X 20 DEPRECATED
NUMSERIE X 60 Serial number of the invoice included in the grouped invoice entered in the record book.

The invoice to be rectified (issued after 01-07-2017) must be previously registered.

Invoices received: Mandatory

Invoices issued: Mandatory


FECHAEXP X 10 Issue date of the invoice included in the grouped invoice entered in the record book.

Format dd-mm-yyyy

Invoices received: Mandatory

Invoices issued: Mandatory

SII-AEAT Integration Interface V5 (TXT) | 2.Link File Proposal | 37


Record Book Entry. Taxes breakdowns. (FE and FR) SII-AEAT Integration Interface V5 (TXT)

2.5. Record Book Entry. Taxes breakdowns. (FE and FR)


Record Book submission response global header data > Record Book Entry. All books. > Record Book Entry. Taxes breakdowns. (FE and FR)
Description: Mandatory record for Invoices Issued (Liable/Not liable and Exempt/Not exempt) and Invoices Received (Liable/Not liable and Exempt/Not exempt).
Physical file name: LRIMP.TXT
Mandatory: Conditional
This section is repeatable with the following restrictions:
Minimum number of occurrences: 0
Maximum number of occurrences: 99999

Lengt
Field Type Description
h

IDLR X 10 Link to transaction description file.


IDAPUNTE X 10 Id that identifies the note made.
IDDESGLOSE X 10 Id of Taxes breakdowns
TIPODESGLOSE X 10 Type of breakdown provided.

Permitted values list:


F: No difference
O: Distinguishing between Delivery of Goods or Provision of Services

On invoices issued, breakdown can be done at either invoice or operation level.?Both segments are mutually exclusive, consequently there can only appear the DesgloseFactura or
DesgloseTipoOperacion segment.?In case of invoices received, breakdown can only be done at invoice level.

Invoices received: Mandatory

Permitted values list:


F: No difference

Invoices issued: Mandatory


CAUSAEXENCION X 20 Reason for Exemption of invoice liable and exempt.

Permitted values list:


E1: EXEMPT by Art. 20
E2: EXEMPT by Art. 21
E3: EXEMPT by Art. 22
E4: EXEMPT by Art. 24
E5: EXEMPT by Art. 25
E6: EXEMPT others

SII-AEAT Integration Interface V5 (TXT) | 2.Link File Proposal | 38


Record Book Entry. Taxes breakdowns. (FE and FR) SII-AEAT Integration Interface V5 (TXT)

Lengt
Field Type Description
h

Invoice liable and exempt.

Invoices issued: Conditional


Field TIPODESGLOSE must be F value.
BASEIMPONIBLE N 16.2 Exempt tax base for invoice liable and exempt.

Format (\+|-)?\d{1,12}(\.\d{0,2})?
Sign up to 12 integer positions, decimal sign . up to 2 decimal points

Invoices issued: Conditional


Field TIPODESGLOSE must be F value.
TIPONOEXENCION X 20 Type of invoice which determines Non-Exemption.

Permitted values list:


S1: SUBJECT - NON-EXEMPT - Without taxpayer investment
S2: SUBJECT - NON-EXEMPT - Whit taxpayer investment
S3: SUBJECT - NON-EXEMPT - Whit and whitout taxpayer investment

Invoices Issued and Invoices Received liable and non- exemption

Invoices issued: Conditional


Field TIPODESGLOSE must be F value.

Invoices received: Conditional


Field TIPODESGLOSE must be F value.
TIPONOSUJETA X 20 DEPRECATED
IMPORTENOSUJETA N 16.2 DEPRECATED
SERVCAUSAEXENCI X 20 Reason for Exemption of services provision operation subject and exempt.
ON
Permitted values list:
E1: EXEMPT by Art. 20
E2: EXEMPT by Art. 21
E3: EXEMPT by Art. 22
E4: EXEMPT by Art. 24
E5: EXEMPT by Art. 25
E6: E6 = EXEMPT others

Taxes breakdowns for operation. Services provision operation subject and exempt.

Invoices issued: Conditional


Field TIPODESGLOSE must be O value and the invoice should include lines related to provision of services.
SERVBASEIMPONIB N 16.2 Tax base exempt for services provision operation subject and exempt.
LE
Format (\+|-)?\d{1,12}(\.\d{0,2})?
Sign up to 12 integer positions, decimal sign . up to 2 decimal points

SII-AEAT Integration Interface V5 (TXT) | 2.Link File Proposal | 39


Record Book Entry. Taxes breakdowns. (FE and FR) SII-AEAT Integration Interface V5 (TXT)

Lengt
Field Type Description
h

Invoices issued: Conditional


Field TIPODESGLOSE must be O value and the invoice should include lines related to provision of services.
SERVTIPONOEXEN X 20 Type of invoice which determines Non-Exemption.
CION
Permitted values list:
S1: SUBJECT - NON-EXEMPT - Without taxpayer investment
S2: SUBJECT - NON-EXEMPT - Whit taxpayer investment
S3: SUBJECT - NON-EXEMPT - Whit and whitout taxpayer investment

Taxes breakdowns for operation. Services provision operation.

Invoices issued: Conditional


Field TIPODESGLOSE must be O value and the invoice should include lines related to provision of services.
SERVTIPONOSUJET X 20 DEPRECATED
A
SERVIMPORTENOS N 16.2 DEPRECATED
UJETA
MERCAUSAEXENCI X 20 Reason for Exemption for goods delivery services subject and exempt.
ON

Permitted values list:


E1: EXEMPT by Art. 20
E2: EXEMPT by Art. 21
E3: EXEMPT by Art. 22
E4: EXEMPT by Art. 24
E5: EXEMPT by Art. 25
E6: EXEMPT others

Taxes breakdowns for operation.Goods delivery services subject and exempt.

Invoices issued: Conditional


Field TIPODESGLOSE must be O value and the invoice should include lines related to goods"
MERBASEIMPONIBL N 16.2 Tax base exempt for delivery of goods operation subject and exempt.
E
Taxes breakdowns for operation. Delivery of goods operation subject and exempt.
Format (\+|-)?\d{1,12}(\.\d{0,2})?
Sign up to 12 integer positions, decimal sign . up to 2 decimal points

Invoices issued: Conditional


Field TIPODESGLOSE must be O value and the invoice should include lines related to goods"
MERTIPONOEXENCI X 20 Type of invoice which determines Non-Exemption.
ON
Permitted values list:
S1: SUBJECT - NON-EXEMPT - Without taxpayer investment
S2: SUBJECT - NON-EXEMPT - Whit taxpayer investment

SII-AEAT Integration Interface V5 (TXT) | 2.Link File Proposal | 40


Record Book Entry. Taxes breakdowns. (FE and FR) SII-AEAT Integration Interface V5 (TXT)

Lengt
Field Type Description
h

S3: SUBJECT - NON-EXEMPT - Whit and whitout taxpayer investment

Taxes breakdowns for operation. Delivery of goods operation subject and non-exempt.

Invoices issued: Conditional


Field TIPODESGLOSE must be O value and the invoice should include lines related to goods"
MERTIPONOSUJETA X 20 DEPRECATED
MERIMPORTENOSU N 16.2 DEPRECATED
JETA
IMPNOSUJ714 N 16.2 Amount not subject to taxes: Article 7; 14 and others

Format (\+|-)?\d{1,12}(\.\d{0,2})??Sign up to 12 integer positions, decimal sign . up to 2 decimal points

Invoices issued: Conditional


Field TIPODESGLOSE must be F value.
IMPNOSUJTAI N 16.2 Amount not subject to taxes: Operations not subject in TAI due to location rules.

TAI = Tax Application Territory


Format (\+|-)?\d{1,12}(\.\d{0,2})?
Sign up to 12 integer positions, decimal sign . up to 2 decimal points

Invoices issued: Conditional


Field TIPODESGLOSE must be F value.
SERVIMPNOSUJ714 N 16.2 Amount not subject to taxes: Article 7; 14 and others

Format (\+|-)?\d{1,12}(\.\d{0,2})?
Sign up to 12 integer positions, decimal sign . up to 2 decimal points

Invoices issued: Conditional


Field TIPODESGLOSE must be O value and the invoice should include lines related to provision of services.
SERVIMPNOSUJTAI N 16.2 Amount not subject to taxes: Operations not subject in TAI due to location rules.

TAI = Tax Application Territory


Format (\+|-)?\d{1,12}(\.\d{0,2})?
Sign up to 12 integer positions, decimal sign . up to 2 decimal points

Invoices issued: Conditional


Field TIPODESGLOSE must be O value and the invoice should include lines related to provision of services.
MERIMPNOSUJ714 N 16.2 Amount not subject to taxes: Article 7; 14 and others

Format (\+|-)?\d{1,12}(\.\d{0,2})?
Sign up to 12 integer positions, decimal sign . up to 2 decimal points

Invoices issued: Conditional


Field TIPODESGLOSE must be O value and the invoice should include lines related to goods".

SII-AEAT Integration Interface V5 (TXT) | 2.Link File Proposal | 41


Record Book Entry. Taxes breakdowns. (FE and FR) SII-AEAT Integration Interface V5 (TXT)

Lengt
Field Type Description
h

MERIMPNOSUJTAI N 16.2 Amount not subject to taxes: Operations not subject in TAI due to location rules.

TAI = Tax Application Territory


Format (\+|-)?\d{1,12}(\.\d{0,2})?
Sign up to 12 integer positions, decimal sign . up to 2 decimal points

Invoices issued: Conditional


Field TIPODESGLOSE must be O value and the invoice should include lines related to goods".
INVSUJPASIVO X 15 Taxes breakdown indicator applied on transactions with taxpayer investment

Permitted values list:


S: Yes
N: NO

Invoices received: Mandatory


Field TIPODESGLOSE must be F and will be indicate if taxpayer investment exists or not.
BASESINIMP N 16.2 Sum of taxable bases not subject and exempt for invoices received.

Invoices received Not Subject and/or Exempt


Format (\+|-)?\d{1,12}(\.\d{0,2})?
Sign up to 12 integer positions, decimal sign . up to 2 decimal points

Invoices received: Conditional


Field TIPODESGLOSE must be F value and INVSUJPASIVO must be N.
All amounts excluded due to not subjection or exemption of the Taxes breakdowns.

SII-AEAT Integration Interface V5 (TXT) | 2.Link File Proposal | 42


Record Book Entry. Taxes breakdown. VAT detail. (FE and FR) SII-AEAT Integration Interface V5 (TXT)

2.6. Record Book Entry. Taxes breakdown. VAT detail. (FE and FR)
Record Book submission response global header data > Record Book Entry. All books. > Record Book Entry. Taxes breakdowns. (FE and FR) > Record Book Entry. Taxes
breakdown. VAT detail. (FE and FR)
Physical file name: LRIVA.TXT
Mandatory: Conditional
This section is repeatable with the following restrictions:
Minimum number of occurrences: 0
Maximum number of occurrences: 6

Lengt
Field Type Description
h

IDLR X 10 Link to transaction description file.


IDAPUNTE X 10 Id that identifies the note made.
IDDESGLOSE X 10 Id of Taxes Breakdown
IDIMPUESTO X 10 Clave identificativa del impuesto
TIPOIMPOSITIVO N 5.2 VAT tax rate applied

Format \d{1,2}(\.\d{0,2})?
up to 2 integer positions, decimal sign . up to 2 decimal points

Invoices issued: Mandatory

Invoices received: Mandatory


Campo TIPODESGLOSE debe tener valor F.
BASEIMPONIBLE N 16.2 Tax base upon which VAT is applied

Format (\+|-)?\d{1,12}(\.\d{0,2})?
Sign up to 12 integer positions, decimal sign . up to 2 decimal points

Invoices issued: Mandatory

Invoices received: Mandatory


in F4 received invoices (global summary entry) BASEIMPONIBLE should not exceed 6,000 and the Taxable base of every single invoice incluided in the global summary entry
must not exceed 500.
CUOTAREPERCUTI N 16.2 VAT rate supported
DA
Format (\+|-)?\d{1,12}(\.\d{0,2})?
Sign up to 12 integer positions, decimal sign . up to 2 decimal points

SII-AEAT Integration Interface V5 (TXT) | 2.Link File Proposal | 43


Record Book Entry. Taxes breakdown. VAT detail. (FE and FR) SII-AEAT Integration Interface V5 (TXT)

Lengt
Field Type Description
h

Invoices issued: Mandatory

Invoices received: Mandatory


TIPORECARGOEQUI N 5.2 Equivalence surcharge rate
V
Format \d{1,2}(\.\d{0,2})?
up to 2 integer positions, decimal sign . up to 2 decimal points

Invoices issued: Conditional

Invoices received: Conditional


CUOTARECARGOEQ N 16.2 Equivalence surcharge amount
UIV
Format (\+|-)?\d{1,12}(\.\d{0,2})?
Sign up to 12 integer positions, decimal sign . up to 2 decimal points

Invoices issued: Conditional

Invoices received: Conditional


TIPOCOMPREAGYP N 5.2 REAGYP percentage

Only for Special VAT Regime for Agriculture, Livestock and Fishing - 02
Format \d{1,2}(\.\d{0,2})?
up to 2 integer positions, decimal sign . up to 2 decimal points

Invoices received: Conditional


CUOTACOMPREAGY N 16.2 REAGYP amount
P
Only for Special VAT Regime for Agriculture, Livestock and Fishing - 02
Format (\+|-)?\d{1,12}(\.\d{0,2})?
Sign up to 12 integer positions, decimal sign . up to 2 decimal points

Invoices received: Conditional

SII-AEAT Integration Interface V5 (TXT) | 2.Link File Proposal | 44


Record Book Entry. Receivables/Payables detail. (CE and PR) SII-AEAT Integration Interface V5 (TXT)

2.7. Record Book Entry. Receivables/Payables detail. (CE and PR)


Record Book submission response global header data > Record Book Entry. All books. > Record Book Entry. Receivables/Payables detail. (CE and PR)
Description: Mandatory record for: Receivables issued Book, Received payments Book.
Physical file name: LRCOBRO.TXT
Mandatory: Conditional
This section is repeatable with the following restrictions:
Minimum number of occurrences: 0
Maximum number of occurrences: 99999

Lengt
Field Type Description
h

IDLR X 10 Link to transaction description file.


IDAPUNTE X 10 Id that identifies the note made.
IDCOBRO X 10 ID of Payments/collections
FECHA X 10 Payments/collections date.

It can only be filled if the invoice received/issued has been recorded with ClaveRegimenEspecialOTranscedencia=07 (Special regime cash basis)
Format dd-mm-yyyy

Receivables issued: Mandatory

Received payments: Mandatory


IMPORTE N 16.2 Payments/collections amount

It can only be filled if the invoice received/issued has been recorded with ClaveRegimenEspecialOTranscedencia=07 (Special regime cash basis)
Format (\+|-)?\d{1,12}(\.\d{0,2})?
Sign up to 12 integer positions, decimal sign . up to 2 decimal points

Receivables issued: Mandatory

Received payments: Mandatory


MEDIO X 20 Payments/collections method.

Permitted values list:


01: Transfer
02: Cheque
03: Not received/paid (accrual deadline / forced accrual in bankruptcy proceedings)
04: Other means receivable /payable

SII-AEAT Integration Interface V5 (TXT) | 2.Link File Proposal | 45


Record Book Entry. Receivables/Payables detail. (CE and PR) SII-AEAT Integration Interface V5 (TXT)

Lengt
Field Type Description
h

It can only be filled if the invoice received/issued has been recorded with ClaveRegimenEspecialOTranscedencia=07 (Special regime cash basis)

Receivables issued: Mandatory

Received payments: Mandatory


CTAOMEDIO X 34 Description of the account or means of Payments/collections chosen.

It can only be filled if the invoice received/issued has been recorded with ClaveRegimenEspecialOTranscedencia=07 (Special regime cash basis)

Receivables issued: Conditional

Received payments: Conditional

SII-AEAT Integration Interface V5 (TXT) | 2.Link File Proposal | 46


Properties breakdowns. Only for FE with REGESPECIAL 12 or 13. SII-AEAT Integration Interface V5 (TXT)

2.8. Properties breakdowns. Only for FE with REGESPECIAL 12 or 13.


Record Book submission response global header data > Record Book Entry. All books. > Properties breakdowns. Only for FE with REGESPECIAL 12 or 13.
Description: Up to 15 records if not reported into LRAPUNTE. If it's informded at Head level SITUACIONIMB and REFCATASTRAL, will be informed first the LRAPUNTE field
and then those of this file up to a maximum of 1+14 record book entries.
Physical file name: LRINMUEBLE.TXT
Mandatory: Conditional
This section is repeatable with the following restrictions:
Minimum number of occurrences: 0
Maximum number of occurrences: 99999

Lengt
Field Type Description
h

IDLR X 10 Link to transaction description file.


IDAPUNTE X 10 Id that identifies the note made.
IDINMUEBLE X 10 File Key identifying the leased property without withholding tax.
SITUACIONIMB X 20 Location of the property on which the operation is performed

Permitted values list:


1: Property with cadastral reference, situated in Spanish territory except for Basque Country and Navarre
2: Property situated in the Autonomous Community of the Basque Country and in the Autonomous Community of Navarre
3: Property in any of the above situations but without cadastral reference.
4: Property situated abroad.

In case of invoices issued it can only be filled if ClaveRegimenEspecialOTranscedencia 12 or 13.

Invoices issued: Conditional


Only be filled if REGESPECIAL = 12 or 13.
REFCATASTRAL X 25 Cadastral reference of the property

In case of invoices issued it can only be filled if ClaveRegimenEspecialOTranscedencia 12 or 13.


Mandatory when SITUACIONIMB is not 3 value.
Identification block of property involved in the operation
If present, all values are mandatory, applicable only for the FE book.

Invoices issued: Conditional


Only be filled if REGESPECIAL = 12 or 13.

SII-AEAT Integration Interface V5 (TXT) | 2.Link File Proposal | 47


Properties breakdowns. Only for FE with REGESPECIAL 12 or 13. SII-AEAT Integration Interface V5 (TXT)

SII-AEAT Integration Interface V5 (TXT) | 2.Link File Proposal | 48


LRGRUP.TXT (Record Book Entry. Grouped Invoices Detail. (FE and FR)) SII-AEAT Integration Interface V5 (TXT)

3. EXAMPLES

3.1. SIILR.TXT (Record Book submission response global header data)


IDLR CE VERSION TITULARNOM NIFREPRESTITULARNIA0 TITULARNOMEXT
IDSUMPROPIO

3.2. LRAPUNTE.TXT (Record Book Entry. All books.)


IDLR IDAPUNTE EJER11 NIFEMISORIDEMISOR IDEMISORPAIS 03 NUMSERIE
FECFACTURATIPOFACTURA S 112 212 312FECOPERACIREGESPECIAL 412
512DESCOPERACION
2 REFCATASTRAL 612N RAZONCONTRA NIFREPCONNIFCONTRAIDCONTRAPARTE
IDCONTRAPAIS 03 FECREGCONT 712IDENBIEN FECHAINI 812 912IDENTIFICAENTREGA
1012B R ESTADOMIEMBRO PLAZOOPERACION DESCRIPBIENES DESCRIPOPERADOR
FACTURASODOC
NUMSERIEFIN NOMBREEMISOR N
CUPON A NOMBREEMISOREXT
RAZONCONTRAEXT REGEADD1 REGEADD2
NUMACUERDO USOPRIVADO
IDLR IDAPUNTE EJER12 NIFEMISORIDEMISOR IDEMISORPAIS 05 NUMSERIE
FECFACTURATIPOFACTURA I 712 812 912FECOPERACIREGESPECIAL 1012
1112DESCOPERACION
1 REFCATASTRAL 1212N RAZONCONTRA NIFREPCONNIFCONTRAIDCONTRAPARTE
IDCONTRAPAIS 03 FECREGCONT 1312IDENBIEN FECHAINI 112 212IDENTIFICAENTREGA
312B D ESTADOMIEMBRO PLAZOOPERACION DESCRIPBIENES DESCRIPOPERADOR
FACTURASODOC
NUMSERIEFIN NOMBREEMISOR S
CUPON B NOMBREEMISOREXT
RAZONCONTRAEXT REGEADD1 REGEADD2
NUMACUERDO USOPRIVADO

3.3. LRGRUP.TXT (Record Book Entry. Grouped Invoices Detail. (FE and FR))
IDLR IDAPUNTE IDFACTURAG NUMSERIE
FECHAEXP
IDLR IDAPUNTE IDFACTURAG NUMSERIE
FECHAEXP
IDLR IDAPUNTE IDFACTURAG NUMSERIE
FECHAEXP

SII-AEAT Integration Interface V5 (TXT) | 3.Examples | 49


LRIVA.TXT (Record Book Entry. Taxes breakdown. VAT detail. (FE and FR)) SII-AEAT Integration Interface V5 (TXT)

IDLR IDAPUNTE IDFACTURAG NUMSERIE


FECHAEXP

3.4. LRRECT.TXT (Record Book Entry. Rectified Invoices detail. (FE and FR))
IDLR IDAPUNTE IDFACTURARNIFEMISORIDEMISOR IDEMISORPAIS IDEMISORTIPO NUMSERIE
FECHAEXP
IDLR IDAPUNTE IDFACTURARNIFEMISORIDEMISOR IDEMISORPAIS IDEMISORTIPO NUMSERIE
FECHAEXP
IDLR IDAPUNTE IDFACTURARNIFEMISORIDEMISOR IDEMISORPAIS IDEMISORTIPO NUMSERIE
FECHAEXP
IDLR IDAPUNTE IDFACTURARNIFEMISORIDEMISOR IDEMISORPAIS IDEMISORTIPO NUMSERIE
FECHAEXP

3.5. LRIMP.TXT (Record Book Entry. Taxes breakdowns. (FE and FR))
IDLR IDAPUNTE IDDESGLOSEO E3 1112S2 E3
1212S3 E5 1312S2
1412 1512 1612 1712 1812 1912N 2012
IDLR IDAPUNTE IDDESGLOSEF E6 512S2 E1
612S2 E5 712S3
812 912 1012 1112 1212 1312S 1412
IDLR IDAPUNTE IDDESGLOSEO E1 412S1 E5
512S3 E6 612S3
712 812 912 1012 1112 1212S 1312
IDLR IDAPUNTE IDDESGLOSEO E2 512S2 E3
612S2 E4 712S1
812 912 1012 1112 1212 1312N 1412

3.6. LRIVA.TXT (Record Book Entry. Taxes breakdown. VAT detail. (FE and FR))
IDLR IDAPUNTE IDDESGLOSEIDIMPUESTO 112 212 312 412 512 612 712
IDLR IDAPUNTE IDDESGLOSEIDIMPUESTO 812 912 1012 112 212 312 412
IDLR IDAPUNTE IDDESGLOSEIDIMPUESTO 112 212 312 412 512 612 712
IDLR IDAPUNTE IDDESGLOSEIDIMPUESTO 812 912 1012 112 212 312 412
IDLR IDAPUNTE IDDESGLOSEIDIMPUESTO 112 212 312 412 512 612 712
IDLR IDAPUNTE IDDESGLOSEIDIMPUESTO 812 912 1012 112 212 312 412
IDLR IDAPUNTE IDDESGLOSEIDIMPUESTO 112 212 312 412 512 612 712
IDLR IDAPUNTE IDDESGLOSEIDIMPUESTO 812 912 1012 112 212 312 412

SII-AEAT Integration Interface V5 (TXT) | 3.Examples | 50


LRINMUEBLE.TXT (Properties breakdowns. Only for FE with REGESPECIAL 12 or 13.) SII-AEAT Integration Interface V5 (TXT)

3.7. LRCOBRO.TXT (Record Book Entry. Receivables/Payables detail. (CE and PR))
IDLR IDAPUNTE IDCOBRO FECHA 51203 CTAOMEDIO
IDLR IDAPUNTE IDCOBRO FECHA 61204 CTAOMEDIO
IDLR IDAPUNTE IDCOBRO FECHA 51203 CTAOMEDIO
IDLR IDAPUNTE IDCOBRO FECHA 61202 CTAOMEDIO

3.8. LRINMUEBLE.TXT (Properties breakdowns. Only for FE with REGESPECIAL 12 or 13.)


IDLR IDAPUNTE IDINMUEBLE1 REFCATASTRAL
IDLR IDAPUNTE IDINMUEBLE2 REFCATASTRAL
IDLR IDAPUNTE IDINMUEBLE2 REFCATASTRAL
IDLR IDAPUNTE IDINMUEBLE2 REFCATASTRAL

SII-AEAT Integration Interface V5 (TXT) | 3.Examples | 51


Supported partners SII-AEAT Integration Interface V5 (TXT)

4. SUPPORTED PARTNERS
Supported partners

Name Status Remarks

Investment assets Revised


Receivables issued Revised
Invoices issued Revised
Invoices received Revised
Intra-community transactions Revised
Cash receivables Revised
Received payments Revised
Investment Assets deregistration Revised
Cash Receivables deregistration Revised
Invoices Issued deregistration Revised
Invoices Received deregistration Revised
Intra-community transactions deregistration Revised
Insurance operations Revised
Insurance operations deregistration Revised
Travel Agencies Revised
Travel Agencies deregistration Revised

SII-AEAT Integration Interface V5 (TXT) | 4.Supported partners | 52


Associated documents SII-AEAT Integration Interface V5 (TXT)

5. ASSOCIATED DOCUMENTS
Associated documents

Name Content type Format Description Remarks Version

STANDARD.TXT Standards and Recommendations text/plain

SII-AEAT Integration Interface V5 (TXT) | 5.Associated documents | 53

Вам также может понравиться