ediverse Explore the platform

Spotlight PEPPOL BIS Billing 3.0 The EU e-invoicing mandate is here — France Sept 2026, Belgium Jan 2026, Germany 2025.

Retail EDIFACT — Continente, Pingo Doce, Lidl, Auchan, DIA

Even before digital tax obligations, Portuguese grocery retail already exchanged its orders and invoices over EDI (electronic data interchange) in the EDIFACT / EANCOM format. The two giants — Continente (Sonae MC group) and Pingo Doce (Jerónimo Martins) — made it a listing requirement. It is the de facto standard of Portuguese B2B commerce, distinct from but consistent with the certified tax invoice.

History — the Sonae / Jerónimo Martins duopoly

From the 1990s, Portugal's major chains adopted EDI based on GS1's EANCOM recommendations (then EAN Portugal). The goal: to automate the order-delivery-invoice cycle with thousands of suppliers. The Sonae MC (Continente, Modelo, Bom Dia) and Jerónimo Martins (Pingo Doce, Recheio) duopoly made EDIFACT unavoidable for any manufacturer seeking to be listed.

The arrival and growth of Lidl, the Auchan / Jumbo banners, Intermarché and Minipreço (DIA) spread EDI across all retail. Today the EDIFACT logistics flow coexists with the SAF-T / e-fatura tax obligation: two complementary layers — one operational (logistics), the other declarative (tax).

text edifact-retail-timeline.txt
1990s       | Major Portuguese chains adopt EDI on GS1's EANCOM
            | recommendations (then EAN Portugal) to automate orders and
            | invoices with their suppliers.
            |
2000s       | Duopoly consolidation: Sonae MC (Continente) and Jerónimo
            | Martins (Pingo Doce) impose EDIFACT as a supplier-listing
            | condition.
            |
2002        | EANCOM 2002 (EDIFACT D.01B syntax) published — the reference
            | subset for Portuguese retail.
            |
2010s       | Arrival/growth of Lidl, the Auchan/Jumbo banners, Intermarché
            | and Minipreço (DIA): EDI spreads across all grocery retail.
            |
2013-2023   | The EDIFACT logistics flow coexists with the SAF-T / e-fatura
            | tax obligation: the EDIFACT INVOIC and the certified invoice
            | must stay consistent (same numbers, totals, VAT).
            |
2024-2026   | ViDA preparation: retail anticipates convergence toward
            | structured reporting (EN 16931) while keeping EDIFACT for
            | operational logistics.

Governance — GS1 Portugal and EANCOM

GS1 Portugal manages the identification standards (GLN for locations/parties, GTIN/EAN-13 for products) and publishes the EANCOM recommendations, the EDIFACT subset dedicated to commerce. Each chain additionally publishes its own message implementation guide specifying mandatory segments and its particularities.

Message transport usually runs over VANs (value-added networks) or AS2 / OFTP2 links, operated by EDI providers (Generix, Edicom, SPS Commerce, local operators). The supplier must align with each customer chain's guide.

Technical schema — EANCOM 2002 S4 messages

The retail EDI cycle relies on a family of standardised EDIFACT messages. ORDERS carries the chain's order; ORDRSP the supplier's response; DESADV the despatch advice (with pallet SSCCs); RECADV the receiving advice; INVOIC the invoice. Parties are identified by their GLN, products by their EAN-13/GTIN.

text orders-eancom-2002.edi
UNH+ME000142+ORDERS:D:01B:UN:EAN010'
BGM+220+PD-2026-558217+9'
DTM+137:20260612:102'
DTM+2:20260618:102'              # requested delivery date
NAD+BY+5601234000005::9'         # buyer Pingo Doce (GS1 GLN)
NAD+SU+5609876000002::9'         # supplier (GS1 GLN)
LIN+1++5601111222333:EN'         # article EAN-13 / GTIN
QTY+21:480'                      # ordered quantity: 480
PRI+AAA:0.79'                    # net unit price
LIN+2++5604444555666:EN'
QTY+21:240'
PRI+AAA:1.15'
UNS+S'
CNT+2:2'                         # number of lines
UNT+15+ME000142'

# ORDERS = order. Full cycle: ORDERS -> ORDRSP -> DESADV
# (despatch advice) -> RECADV (receiving advice) -> INVOIC.

Retail EDIFACT vs tax invoicing

DimensionEDIFACT / EANCOM (retail)Tax invoice (SAF-T)
PurposeLogistics: order, delivery, paymentTax: anti-fraud, VAT return
FormatEDIFACT D.01B / EANCOM 2002SAF-T (PT) XML + certified invoice
IdentifiersGLN + EAN-13/GTINNIF + ATCUD
TransportVAN / AS2 / OFTP2e-fatura submission to the AT
GovernanceGS1 Portugal + chain guidesAutoridade Tributária
Mandatory?De facto (listing)De jure (law)

Adoption — chains and volumes

  • Continente (Sonae MC): the country's leading grocer, EDI mandatory for listed suppliers (hypermarkets, supermarkets, convenience).
  • Pingo Doce + Recheio (Jerónimo Martins): the second pole, EDIFACT generalised across the order-to-invoice cycle.
  • Lidl, Auchan/Jumbo, Intermarché, Minipreço (DIA): EDI-intensive chains, each with its own EANCOM implementation guide.
  • Volumes: tens of millions of EDIFACT messages per year, the logistics backbone of Portuguese grocery commerce.

Common pitfalls

  • Confusing GLN and NIF. The GLN (GS1) routes logistics; the NIF identifies for tax. A chain has many GLNs (warehouses, stores) but a single NIF.
  • INVOIC / certified-invoice mismatch. Different totals or numbers between the EDIFACT message and the SAF-T invoice cause disputes and discrepancies at the AT.
  • Ignoring the chain-specific guide. EANCOM 2002 leaves latitude: each retailer mandates its segments and qualifiers. Following the generic guide is not enough.
  • Missing or malformed SSCC in DESADV. The despatch advice must carry SSCCs (pallet numbers) for receiving scans; a missing SSCC breaks traceability.
  • Forgetting regional VAT. For deliveries to the Azores or Madeira, rate and tax space differ from the mainland — to be reflected in the INVOIC and the certified invoice.