Country Guides
Sample DocumentSpain

es-facturae.xml

<?xml version="1.0" encoding="UTF-8"?>
<!-- ES - Spain Facturae 3.2.2 Sample -->
<!-- Compliant with Spanish electronic invoicing standard -->
<fe:Facturae
    xmlns:fe="http://www.facturae.gob.es/formato/Versiones/Facturaev3_2_2.xml"
    xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
  <FileHeader>
    <SchemaVersion>3.2.2</SchemaVersion>
    <Modality>I</Modality> <!-- Individual invoice -->
    <InvoiceIssuerType>EM</InvoiceIssuerType> <!-- Emisor = Seller -->
    <Batch>
      <BatchIdentifier>TXN2026ES001</BatchIdentifier>
      <InvoicesCount>1</InvoicesCount>
      <TotalInvoicesAmount>
        <TotalAmount>7260.00</TotalAmount>
      </TotalInvoicesAmount>
      <TotalOutstandingAmount>
        <TotalAmount>7260.00</TotalAmount>
      </TotalOutstandingAmount>
      <TotalExecutableAmount>
        <TotalAmount>7260.00</TotalAmount>
      </TotalExecutableAmount>
      <InvoiceCurrencyCode>EUR</InvoiceCurrencyCode>
    </Batch>
  </FileHeader>
  <Parties>
    <!-- Vendedor (Seller) -->
    <SellerParty>
      <TaxIdentification>
        <!-- NIF (Número de Identificación Fiscal) -->
        <PersonTypeCode>J</PersonTypeCode>
        <ResidenceTypeCode>R</ResidenceTypeCode>
        <TaxIdentificationNumber>B12345678</TaxIdentificationNumber>
      </TaxIdentification>
      <LegalEntity>
        <CorporateName>TaxTen Demo A.Ş.</CorporateName>
        <AddressInSpain>
          <Address>Calle de Serrano 42</Address>
          <PostCode>28001</PostCode>
          <Town>Madrid</Town>
          <Province>Madrid</Province>
          <CountryCode>ESP</CountryCode>
        </AddressInSpain>
      </LegalEntity>
    </SellerParty>
    <!-- Comprador (Buyer) -->
    <BuyerParty>
      <TaxIdentification>
        <PersonTypeCode>J</PersonTypeCode>
        <ResidenceTypeCode>R</ResidenceTypeCode>
        <TaxIdentificationNumber>A87654321</TaxIdentificationNumber>
      </TaxIdentification>
      <LegalEntity>
        <CorporateName>Ejemplo Tecnología S.L.</CorporateName>
        <AddressInSpain>
          <Address>Paseo de la Castellana 100</Address>
          <PostCode>28046</PostCode>
          <Town>Madrid</Town>
          <Province>Madrid</Province>
          <CountryCode>ESP</CountryCode>
        </AddressInSpain>
      </LegalEntity>
    </BuyerParty>
  </Parties>
  <Invoices>
    <Invoice>
      <InvoiceHeader>
        <InvoiceNumber>FAE-2026/00015</InvoiceNumber>
        <InvoiceSeriesCode>FAE</InvoiceSeriesCode>
        <InvoiceDocumentType>FC</InvoiceDocumentType>
        <InvoiceClass>OO</InvoiceClass>
      </InvoiceHeader>
      <InvoiceIssueData>
        <IssueDate>2026-01-15</IssueDate>
        <InvoiceCurrencyCode>EUR</InvoiceCurrencyCode>
        <TaxCurrencyCode>EUR</TaxCurrencyCode>
        <LanguageName>es</LanguageName>
      </InvoiceIssueData>
      <!-- IVA (Impuesto sobre el Valor Añadido) -->
      <TaxesOutputs>
        <Tax>
          <TaxTypeCode>01</TaxTypeCode>
          <TaxRate>21.00</TaxRate>
          <TaxableBase><TotalAmount>6000.00</TotalAmount></TaxableBase>
          <TaxAmount><TotalAmount>1260.00</TotalAmount></TaxAmount>
        </Tax>
      </TaxesOutputs>
      <InvoiceTotals>
        <TotalGrossAmount>6000.00</TotalGrossAmount>
        <TotalGrossAmountBeforeTaxes>6000.00</TotalGrossAmountBeforeTaxes>
        <TotalTaxOutputs>1260.00</TotalTaxOutputs>
        <TotalTaxesWithheld>0.00</TotalTaxesWithheld>
        <InvoiceTotal>7260.00</InvoiceTotal>
        <TotalOutstandingAmount>7260.00</TotalOutstandingAmount>
        <TotalExecutableAmount>7260.00</TotalExecutableAmount>
      </InvoiceTotals>
      <Items>
        <InvoiceLine>
          <ItemDescription>Licencia de software en la nube - Suscripción anual</ItemDescription>
          <Quantity>1.0</Quantity>
          <UnitPriceWithoutTax>6000.00</UnitPriceWithoutTax>
          <TotalCost>6000.00</TotalCost>
          <GrossAmount>6000.00</GrossAmount>
          <TaxesOutputs>
            <Tax>
              <TaxTypeCode>01</TaxTypeCode>
              <TaxRate>21.00</TaxRate>
              <TaxableBase><TotalAmount>6000.00</TotalAmount></TaxableBase>
              <TaxAmount><TotalAmount>1260.00</TotalAmount></TaxAmount>
            </Tax>
          </TaxesOutputs>
        </InvoiceLine>
      </Items>
    </Invoice>
  </Invoices>
</fe:Facturae>

This is a sample document for demonstration purposes. It contains fictitious data and should not be used for actual tax submissions.