The Boletín Oficial del Estado (the Spanish Gazette) has officially published the Law Crea y Crece that mandates companies and professionals in Spain to issue and receive e-invoices to and from other businesses (B2B) from 2024. We await the full technical requirements of the new e-invoicing regime as these are currently in draft subject to approval and change.
Source Avalara