SAP, SII and Verifactu: how to connect SAP with the Verifacti APIs

There is no official Verifacti plugin for SAP: it connects through the API. SAP exports each invoice and your development or your consultancy sends it as JSON to the SII API, for the SII (Immediate Supply of Information), or to the Verifactu API if the company is not in the SII; the Spanish Tax Agency (AEAT) response comes back by webhook. For B2B e-invoicing (RD 238/2026), which arrives on 6 October 2027 for businesses with turnover over €8M (date published in the BOE), Verifacti is preparing the E-invoicing API (coming soon).

Test environment and test NIF included
Read the documentation

Which APIs you need for SAP

First, the ones a large company needs: the SII API and the E-invoicing API (coming soon). Then the Verifactu API, for group companies outside the SII. Underneath them all, the NIF management API: integrated once to register the companies, manage the representation form and receive webhooks. Which obligation each company has is set by the rules, not by Verifacti.

Test environment and test NIF included

How to connect SAP with the API

Flow: invoice posted in SAP → export or event → your middleware or development → Verifacti API → AEAT → webhook to your system.

  1. Create your free account and register the companies' NIFs with the NIF management API.
  2. Sign the representation form of each NIF.
  3. Map the SAP invoice fields to the API JSON.
  4. Send each invoice with POST /sii/create or, in batches, with POST /sii/create_bulk.
  5. Get the AEAT response by webhook and store it with the invoice.

Does your group have several companies, or does a consultancy maintain your SAP? See large companies and IT consultancies.

Example: sending an invoice to the SII

A full invoice (F1) with POST /sii/create, as in the SII API documentation and validated against its rules. Your development builds this JSON from the SAP invoice. To retry without duplicates, add the Idempotency-Key header.

Factura normal
{
  "ejercicio": "2026",
  "periodo": "11",
  "serie": "A",
  "numero": "1",
  "fecha_expedicion": "19-11-2026",
  "tipo_factura": "F1",
  "clave_regimen": [
    "01"
  ],
  "descripcion": "Factura normal",
  "nombre": "Nombre cliente",
  "nif": "A15022510",
  "desglose": {
    "no_exenta": {
      "tipo_no_exenta": "S1",
      "detalle_iva": [
        {
          "tipo_impositivo": "21",
          "base_imponible": "200",
          "cuota_repercutida": "42"
        }
      ]
    }
  },
  "importe_total": "242"
}

The AEAT response arrives by webhook, with the NIF management API. More cases in the SII examples.

Special cases in SAP

Special cases when invoicing from SAP
CaseWhat to doRead more
Several companiesOne NIF per company in the NIF management API, each with its own API keyNIF management API
Credit notes and corrective invoicesIn the SII, tipo_factura R1–R5 with tipo_rectificativa S (replacement) or I (differences)SII keys
Simplified invoices and ticketsF2; in the SII, same-day ones can go in an F4 summary entry if they meet art. 63.4 of the VAT RegulationSII keys
Transactions with IGIC or IPSIRegime key 08 in the SIISII keys · in Verifactu, IGIC invoice
Correcting a record the AEAT already hasPUT /sii/modify or POST /sii/cancel; if it ended Incorrecto, fix it and send it again with POST /sii/createSII API documentation
RetriesIdempotency-Key header: the same submission is not duplicated for 24 hoursSII API documentation
Companies outside the SIIThey send to the Verifactu API with the same patternVerifactu API

Dates

The first row only applies if you build the connector to sell it: then you sell invoicing software. For those who invoice, the Verifactu dates are published in the BOE and the postponement to October 2028 is announced with no rule published. The SII has been in force since 2017, and B2B e-invoicing has dates published in the BOE (RD 238/2026).

Producers and resellers of invoicing softwareSince 29 Jul 2025
RDL 15/2025 did not change this date.
In force
SII: large companies (over €6M), REDEME and VAT groupsSince 1 Jul 2017
Since 1 January 2025, also holders of hydrocarbon tax warehouses (RIVA, art. 71.3).
In force
B2B e-invoicing: turnover over €8M6 Oct 2027
Published in the BOE, future date
B2B e-invoicing: all other businesses and professionals6 Oct 2028
Invoice statuses optional until 6 October 2029 for individuals and pass-through entities up to €8M.
Published in the BOE, future date
Corporate Income Tax payers1 Jan 2027
Published in the BOE, future date
Everyone else, including the self-employed1 Jul 2027
Published in the BOE, future date
Postponement of the pending obligationsOct 2028
The note does not specify the scope for businesses invoicing over €8M.
Announced, no rule published

This is not advice: each taxpayer determines what applies to them with their adviser.

Pricing

The SII has custom pricing based on your invoice volume: ask for a quote via contact. The Verifactu API has a public tariff. The E-invoicing API has no price yet.

Custom pricing

See pricing
  • SII API: custom pricing based on your invoice volume.
  • Verifactu API: from €14.99 per month for the first NIF active in production, VAT excluded.
  • Free account and test environment at no cost.

Questions about SAP and Verifacti

More questions about the SII

Is there a Verifacti plugin for SAP?

No. It connects through the API: your team or your consultancy sends each invoice as JSON and gets the response by webhook.

How will B2B e-invoicing fit into SAP without changing ERP?

With the same API flow. The E-invoicing API is coming soon; NIF management and the SII can be integrated today.

Can I send the SII of several group companies?

Yes. Each company is a NIF with its own API key, registered with the NIF management API.

Do I need a digital certificate to send to the AEAT?

No. Verifacti is an AEAT social collaborator and submits with its own certificate once the taxpayer signs the representation form, the same one for the AEAT and the foral treasuries. It can be signed online, without a certificate.

How much does it cost?

The SII has custom pricing based on invoice volume; the Verifactu API, from €14.99 per month for the first NIF active in production, VAT excluded. Every plan, in pricing.

Connect SAP in the test environment

Create your free account: it includes the SII test environment. Support activates your SII test NIF.

Test environment and test NIF includedRead the documentation