B2B electronic invoicing integration for companies

Assessment, architecture and implementation for teams adapting ERP, SaaS and internal processes to exchange structured invoices between businesses in Spain.

Regulatory review

Public platform
Order HAC/1028/2026 in force since 6 October 2026
Mandatory issue and receipt
6 October 2027 or 6 October 2028, depending on turnover
Formats
CII, UBL, EDIFACT and Facturae under the EN16931 model

Context

If your agency or team is adapting an ERP, I can review a sample invoice, identify which system owns each field and prepare a first test with the Spanish Tax Agency’s public e-invoicing platform.

01

Readiness assessment

Before selecting a platform, check whether data and process can support the new exchange.

01

Invoice data

Issuer, recipient, identifiers, addresses, lines, tax, references, payments and mandatory content.

02

System map

ERP, invoicing, CRM, procurement, treasury, document repositories and private platforms involved in the flow.

03

Actual scope

Affected B2B operations, exceptions, territories and decisions requiring tax or legal validation.

02

Exchange architecture

The design must support structured formats and retain traceability between the business document and every transmission.

01

Model and formats

Canonical EN16931 model and controlled transformations across CII, UBL, EDIFACT, Facturae and, where appropriate, Peppol BIS.

02

Signing and transport

Signing on private platforms, authentication, entry points and proof of delivery. If the exchange is entirely private, a faithful UBL copy marked as a copy is sent to the public platform when the invoice is issued.

03

Interoperability

Integration contracts, semantic validation, versioning, errors and compatibility between private platforms and the public solution.

03

Status, payment and reconciliation

The system does not stop after issue. It needs to record commercial acceptance or rejection, full payment and, where used, partial status or assignment. Those events must reconcile with ERP, CRM and treasury.

Invoice status and payment reporting starts on 6 October 2027 for those whose turnover for VAT purposes exceeded €8 million in the previous calendar year. Everyone else in scope starts on 6 October 2028, except individuals and entities under Spain’s income attribution regime, who start on 6 October 2029.

  • Stable identifier across invoice, copies and status messages.
  • Transformation traceability without losing the original.
  • Idempotent retries and an incident queue.
  • Reconciliation of acceptance, rejection, collection and payment.
  • Operational audit and alerts for pending status.

04

How to test the first invoice

  • Clean and document the fiscal data model.
  • Inventory formats, platforms, customers and suppliers.
  • Separate generation, representation, signing and transport.
  • Design status handling and payment reconciliation.
  • Create versioned adapters and synthetic contract data.
  • Validate the UBL invoice in the Spanish Tax Agency’s pre-production environment and keep the request, response and schema version.

Assessment outcome

Your team receives a map of the changes the ERP needs and a set of proposed tests for the invoicing flow you choose.

  1. 01System, owner and entry-point map.
  2. 02Field and data-quality matrix by format.
  3. 03Design for status, errors, retries and reconciliation.
  4. 04Integration plan covering the tests, access requirements and dependencies for each platform.

Common questions

Short answers about scope, evidence and implementation boundaries.

Which parts of the B2B integration can we commission now?+

You can commission a review of ERP, CRM and treasury data, a mapping from a sample invoice to UBL, or a pre-production test with a certificate. To quote for the first deliverable, I need an anonymised sample and an outline of how you record payments today.

When must businesses issue and receive B2B e-invoices?+

For B2B transactions within scope, the obligation to issue, send and receive electronic invoices starts on 6 October 2027 for businesses and professionals whose turnover for VAT purposes exceeded €8 million in the previous calendar year. For everyone else in scope, it starts on 6 October 2028.

Will the public solution be mandatory?+

You can invoice through a private platform. When the public platform issues the invoice or connects the platforms, it already holds the invoice. If the exchange is entirely private, a faithful UBL copy marked as a copy must be sent to the public platform at the time of issue.

Is generating a PDF enough?+

The mandatory invoice is structured. For the first twelve months from 6 October 2027, issuers in the first group must also send the recipient a readable PDF unless the recipient expressly and voluntarily agrees to receive the invoice in its original format. Only the recipient gets the PDF.

What can we check in pre-production?+

The Spanish Tax Agency publishes schemas, WSDL contracts, UBL examples and validation rules. With an access certificate you can send a synthetic invoice, keep the response and check how your ERP handles a validation error. The agency may revise the rules after testing.

Official sources

Check the dates that apply to your business and the references your integration team will use.

Initial technical review

Which invoicing flow would you like to test first?

Tell me which system issues the invoice and where you record the payment. That gives me enough detail to scope the first test and identify the access it needs.

  • Do not send certificates, tax IDs, invoices or secrets through this form.
  • Tax and legal applicability must be validated with your adviser.
  • A human reply, normally within one business day.

Tell me what you need

Name, email and context. Budget, timing and format can be added if you already know them.

What context are you writing from?
A few lines about the project are enough.
Add more informationCompany, budget and timing, if you know them.
Data used and how to withdraw consent

I agree that Google Ads may measure this enquiry using its submission ID, date, my normalized email address transformed with SHA-256 and, when one exists and remains current, the click identifier. This is optional, does not enable remarketing and can be withdrawn using the contact details in the privacy policy.

Anti-spam verification

It will load when you start completing the form.

Usual reply within one business day.