Home / Insights / E-commerce
SL setup · IVA & OSS · Marketplaces · Fulfilment

E-commerce in Spain: SL setup, IVA, marketplaces and fulfilment.

Spain's online retail market passed €72 billion in 2024. For a foreign founder, getting the structure right from the first transaction matters more here than in almost any other business type — because the marketplaces, the payment processors and the tax authority all check the same things.

Your Spanish company won't incorporate itself ↗ CNAE, IVA, ROI and banking as one file
€72B+
Spanish e-commerce revenue in 2024, up ~14% year on year.
5th
Largest online retail market in the EU — ahead of the Netherlands and Poland.
38M
Active online shoppers, concentrated in Madrid, Barcelona, Valencia, Bilbao and Seville.
€10K
Cross-border B2C threshold above which OSS becomes mandatory.

SL or autonomo: the structure decision.

Foreign founders setting up e-commerce in Spain almost always incorporate a Sociedad Limitada (SL). The autonomo (self-employed) route works for very small volumes and individual operators, but it carries three disadvantages that matter at e-commerce scale.

Autonomo

Fine for a side project, not for scale

  • Unlimited personal liability
  • Progressive IRPF up to 47% on profits
  • Lacks the corporate credibility marketplaces, processors and logistics providers expect
Sociedad Limitada

The standard e-commerce vehicle

  • Liability limited to share capital
  • Corporate tax (IS) at 25%, or 15% for qualifying new companies
  • €3,000 minimum share capital, fully paid at incorporation
  • Recognised by every counterparty in the chain

The SL is incorporated before a Spanish notary through a public deed (escritura publica), registered in the Registro Mercantil, and assigned a permanent NIF by the Agencia Tributaria. The administrador can be a non-resident, and the entire process can be completed remotely by apostilled power of attorney.

CNAE and IAE: the codes that define the business.

Spanish e-commerce companies declare their activity under two parallel systems, and each has direct consequences for tax, banking and compliance. Getting them consistent is not paperwork — a mismatch between them is one of the primary reasons Spanish banks flag e-commerce applications during compliance review.

SystemCodeCovers
CNAE — pure online retail4791Comercio al por menor por correspondencia o por Internet — selling through your own website
CNAE — other non-store retail4799Marketplaces and mixed-channel retailers may register here in addition
IAE epigrafe — general659Comercio al por menor de otros articulos — the most common group for internet retail

Both codes must be consistent across the escritura, the Modelo 036 census declaration and the banking application. For companies with multiple product categories, the right move is to declare a primary CNAE and IAE that accurately reflects the main activity — not a catch-all that merely approximates it, which is what generates downstream friction.

IVA, OSS and cross-border EU sales.

Spanish VAT — IVA — applies at three rates relevant to e-commerce. Registration and filing of Modelo 303 (quarterly) and Modelo 390 (annual summary) is mandatory from the first taxable transaction.

RateTypeTypical goods
21%StandardElectronics, clothing, accessories, software, most physical goods
10%ReducedFood products, certain medical devices, cultural goods
4%Super-reducedBooks, newspapers, basic food staples

For sales to consumers in other EU member states, the OSS (One Stop Shop) scheme removes the need to register for VAT in each country. Under OSS, the SL collects the customer's local VAT rate and reports it through a single quarterly declaration via the AEAT portal. The EU-wide threshold above which OSS is mandatory is €10,000 per year in cross-border B2C turnover — a line most functioning stores cross quickly.

For B2B sales to VAT-registered EU businesses, the reverse charge applies: the SL issues a zero-VAT invoice and the buyer accounts for VAT in their own country. This requires registration in the ROI and a valid NIF-IVA (the ES-prefixed intra-community number in the VIES database), completed through box 582 of the Modelo 036 at initial tax registration.

Sequence note

Register for ROI at incorporation, not at the first EU invoice.

The intra-community VAT number is the single item most often missed at setup and most disruptive to add later. For a store that will sell across the EU from day one, box 582 should be ticked on the initial Modelo 036 — retrofitting it stalls the first cross-border sales.

Selling on Amazon.es, Miravia and Spanish marketplaces.

Each major Spanish marketplace carries specific documentation requirements for third-party sellers — and all of them route back to the same NIF and IVA registration.

Amazon.esMarket leader. Requires Spanish NIF (or EU VAT number), IVA registration and a SEPA-compatible bank account. Subject to DAC7 reporting.
MiraviaAlibaba's Iberian marketplace, launched 2022, growing fast in Barcelona and Madrid. Requires full Spanish NIF and IVA documentation.
El Corte Ingles, MediaMarkt, FNAC, PcComponentesThird-party seller programmes with similar documentation requirements. PcComponentes dominant in electronics.
DAC7 — the reporting rule that removes the guesswork

Platform-reported revenue reaches the Agencia Tributaria whether or not you file correctly.

Under the DAC7 Directive, marketplaces report seller transaction data to the tax authority annually — sellers above roughly €2,000 or 30 transactions a year are included. In practice this means one thing: your IVA returns and your marketplace sales figures have to match. Consistency is a compliance requirement, not an optional alignment.

Packaging EPR and product compliance.

Since January 2023, Spain applies a mandatory extended producer responsibility (EPR) framework for packaging under the Ley 7/2022. E-commerce companies placing packaged goods on the Spanish market are classified as productores and must register with an authorised scheme — principally ECOEMBES for lightweight and cardboard packaging, or ECOVIDRIO for glass — and pay contributions based on packaging volumes placed on the market.

Non-compliance is a reportable deficiency under Spanish environmental law and can affect marketplace selling licences and wholesale supplier relationships. For a foreign operator entering Spain, EPR registration should be confirmed before the first shipment, not discovered after it.

Fulfilment and logistics.

Spain's logistics run on a central-hub model. Understanding which city does what shortens the decision about where to hold stock.

Zaragoza
Primary inland hub, roughly equidistant from Madrid, Barcelona, Valencia and Bilbao. Amazon's largest Spanish fulfilment centre and the main DHL and SEUR distribution facilities.
Madrid & Barcelona
Largest individual order volumes and the densest last-mile networks.
Valencia
Primary import gateway for Asian goods — particularly relevant for importers sourcing from China.
Bilbao
Northern Spain's retail and industrial distribution.

The main domestic carriers are Correos Express (broad rural coverage), SEUR (largest private carrier, integrated with DPD), MRW (strong SME pricing), GLS Spain, Nacex and DHL Express for international. For fulfilment-as-a-service, both Amazon FBA Spain and third-party operators in Zaragoza and Madrid offer complete pick-pack-ship models — which means a functioning Spanish e-commerce operation does not require you to hold a physical warehouse in Spain.

Banking and payment processing.

An e-commerce SL's corporate account must accept card payments and process SEPA transfers to suppliers. The common processors for foreign-founded stores:

  • Stripe Spain — the most common processor for foreign-founded e-commerce; integrates with Modelo 303 data through accounting platforms and accepts Spanish NIF directly.
  • Adyen, PayPal Business, REDSYS-integrated gateways — standard alternatives for card acquiring.
  • Bizum — Spain's bank-to-bank instant payment network, dominant in mobile commerce and increasingly expected by Spanish consumers.
  • Amazon Pay — expected for marketplace-adjacent checkout flows.

The corporate account application needs the escritura, Modelo 036 confirmation, NIF and the administrador's documentation. For a clearly structured SL with a coherent product category and a legible business model, account opening at Spanish banks typically completes within two to four weeks.

The setup sequence.

Step 01
Incorporate the SLNIE for the administrador, escritura before a notary, registration in the Registro Mercantil. Remotely by power of attorney if needed.
Step 02
Tax activation with the right codesModelo 036 with an accurate primary CNAE (4791) and matching IAE epigrafe, IVA registration, and box 582 for ROI if selling across the EU.
Step 03
OSS and EPRRegister for OSS where cross-border B2C will exceed €10,000, and with ECOEMBES / ECOVIDRIO for packaging — before the first shipment.
Step 04
Banking and payment stackCorporate account, then Stripe / Adyen / REDSYS and Bizum. The consistent CNAE-IAE-Modelo 036 story is what moves the account application through compliance.
Step 05
Marketplace and fulfilment onboardingRegister on Amazon.es and Miravia with matching NIF and IVA data, and connect FBA or a third-party fulfilment operator.
Market figures are as reported for 2024. VAT rates, thresholds, activity codes and EPR obligations are stated as at 2025-2026 and may change. General information only, not tax or legal advice — correct classification and registration depend on the specific product category and business model and should be confirmed case by case.

Get the codes right before the first transaction.

Book a free call ↗
20 minutes · No commitment · Straight answers