Practical guide
SII XML for received invoices
Reconcile invoice, ERP and XML fields
- Ledger owner, version and communication type. This example uses A0 to register a full domestic invoice under the general regime.
- Issuer tax ID, issued number and series, and issue date. Verify consistency with counterparty data. Retain accounting-record date separately.
- Taxable amount, rate and input VAT: €1,000.00, 21% and €210.00 in this case, totaling €1,210.00. Full deductible VAT is confirmed and reported separately.
A domestic invoice totaling €1,210
SII 1.1 request data block, validated against AEAT’s published XSD. For your company’s test, replace fictional tax IDs and names with authorized test data and configure year, period and test dates in the ERP. The web service includes this block in the SOAP envelope body defined by the WSDL.
To read the complete XML, scroll the box horizontally. With a keyboard, focus it and use the arrow keys.
<lr:SuministroLRFacturasRecibidas
xmlns:lr="https://www2.agenciatributaria.gob.es/static_files/common/internet/dep/aplicaciones/es/aeat/ssii/fact/ws/SuministroLR.xsd"
xmlns:sii="https://www2.agenciatributaria.gob.es/static_files/common/internet/dep/aplicaciones/es/aeat/ssii/fact/ws/SuministroInformacion.xsd">
<sii:Cabecera>
<sii:IDVersionSii>1.1</sii:IDVersionSii>
<sii:Titular>
<sii:NombreRazon>Titular de ejemplo</sii:NombreRazon>
<sii:NIF>B00000000</sii:NIF>
</sii:Titular>
<sii:TipoComunicacion>A0</sii:TipoComunicacion>
</sii:Cabecera>
<lr:RegistroLRFacturasRecibidas>
<sii:PeriodoLiquidacion>
<sii:Ejercicio>2026</sii:Ejercicio>
<sii:Periodo>11</sii:Periodo>
</sii:PeriodoLiquidacion>
<lr:IDFactura>
<sii:IDEmisorFactura><sii:NIF>B11111111</sii:NIF></sii:IDEmisorFactura>
<sii:NumSerieFacturaEmisor>COMP-814</sii:NumSerieFacturaEmisor>
<sii:FechaExpedicionFacturaEmisor>04-11-2026</sii:FechaExpedicionFacturaEmisor>
</lr:IDFactura>
<lr:FacturaRecibida>
<sii:TipoFactura>F1</sii:TipoFactura>
<sii:ClaveRegimenEspecialOTrascendencia>01</sii:ClaveRegimenEspecialOTrascendencia>
<sii:ImporteTotal>1210.00</sii:ImporteTotal>
<sii:DescripcionOperacion>Compra de material</sii:DescripcionOperacion>
<sii:DesgloseFactura>
<sii:DesgloseIVA>
<sii:DetalleIVA>
<sii:TipoImpositivo>21</sii:TipoImpositivo>
<sii:BaseImponible>1000.00</sii:BaseImponible>
<sii:CuotaSoportada>210.00</sii:CuotaSoportada>
</sii:DetalleIVA>
</sii:DesgloseIVA>
</sii:DesgloseFactura>
<sii:Contraparte>
<sii:NombreRazon>Proveedor de ejemplo</sii:NombreRazon>
<sii:NIF>B11111111</sii:NIF>
</sii:Contraparte>
<sii:FechaRegContable>05-11-2026</sii:FechaRegContable>
<sii:CuotaDeducible>210.00</sii:CuotaDeducible>
</lr:FacturaRecibida>
</lr:RegistroLRFacturasRecibidas>
</lr:SuministroLRFacturasRecibidas>Test detection of a missing field
- Download AEAT’s submission schema (XSD) SuministroLR.xml and SuministroInformacion.xsd, which the first schema imports. Validate the complete block. This message uses day-month-year dates and decimal points without thousands separators.
- Remove CuotaDeducible in a copy and validate again. Validation should fail because a required field is missing. Restore it and confirm the breakdown still matches the invoice.
After XSD validation, locate web-service WSDLs in SII’s technical-information section and open Received Invoices. Before an A0 registration, confirm the company and data are authorized for testing.
Use only a Received Invoices test port specified in AEAT’s official WSDL, according to the certificate used. They are named
SuministroFactRecibidasPruebasandSuministroFactRecibidasPruebasSello.Retain each record’s state and any error code and description. Determine whether it was accepted, accepted with errors or rejected. For accepted-with-errors records, check the correction procedure before resubmitting the transaction.
Ask the ERP and SII owner to validate the channel and communication type needed to resolve the case. Compare the response with the journal entry to avoid duplicate registrations.
Check the invoice in Calitem before generating XML
In Calitem, review extracted invoice data and possible duplication. Compare €1,000 taxable amount with purchase evidence and confirm €210 VAT, accounting date and tax ID with accounting. Before transfer, search company, supplier tax ID, number and series in the ERP.
For an existing invoice, retrieve its ID and check the breakdown there. Hold the case while a prior transfer’s outcome is unknown. Send the validated proposal only to a destination without an existing record.
Check invoice and breakdown in the purchase record. From the tax tool, validate XML and search SII submissions for the same document. Retain an existing response with the ERP ID and follow treatment appropriate to its state. If a submission outcome is unconfirmed, keep it under review before another registration.
If the SII response accepted the record with a reviewed non-key error, use A1 against the existing invoice identity when the official process allows. If the first A0 was rejected, confirm there is no active accepted entry and verify corrected data before resubmitting A0. A key error can require the authorized cancellation and registration procedure instead. Keep the ERP and actual tax response IDs distinct and hold an unknown outcome.
