1. Computing the 30-day lowest prior price accurately in code
Directive (EU) 2019/2161 (the Enforcement and Modernisation / 'Omnibus' Directive) inserted Article 6a into Price Indication Directive 98/6/EC. Whenever a merchant announces a price reduction to EU consumers — whether via a strikethrough price, a percentage badge (-20%), a banner code applied storewide or a flash-sale callout — the listing must state the prior price, defined as the lowest price applied by that trader during a period of at least 30 days prior to the application of the price reduction.
In Case C-330/23 (*Verbraucherzentrale Baden-Württemberg e.V. v Aldi Süd Dienstleistungs-SE & Co. OHG*, 26 September 2024), the CJEU clarified that a price reduction expressed as a percentage or promotional highlight in a consumer announcement must be determined on the basis of that 30-day lowest prior price, even if the last selling price immediately before the promotion was higher.
// Price history over the 30 days before announcing a €79.00 sale on 2026-11-18:
// - Sold at €99.00 from 2026-10-15
// - Weekend dip to €84.00 on 2026-11-01
// - Raised back to €109.00 on 2026-11-05
{
"currency": "EUR",
"locale": "de-DE",
"observations": [
{ "at": "2026-10-15T00:00:00Z", "priceMinor": 9900 },
{ "at": "2026-11-01T00:00:00Z", "priceMinor": 8400 },
{ "at": "2026-11-05T00:00:00Z", "priceMinor": 10900 }
]
}
// Deterministic engine result (0 API units):
// -> lowest30dMinor: 8400 (€84.00 — NOT €109.00!)
// -> Showing "-28% off €109.00" is non-compliant; real reduction vs 30-day low is €84.00 -> €79.00 (-5.95%).2. Progressive markdowns, new arrivals and UK vs EU differences
Article 6a(3)–(5) gives EU Member States specific regulatory choices when transposing Directive (EU) 2019/2161 into national law (which is why checking the target country in /compliance matters):
- Progressive uninterrupted price reductions (
Art. 6a(5)): Where a Member State adopted the progressive-reduction option (for example during continuous end-of-season clearance€100 → €80 → €60without intervening price increases), the prior price may remain the lowest price in the 30 days before the first step of that uninterrupted markdown chain — but if any price hike interrupts the chain, the clock resets. - Perishable goods & newly listed products (
Art. 6a(3)–(4)): Member States may set different rules for goods liable to deteriorate or expire rapidly, and shorter windows where a SKU has been on the market for fewer than 30 days. - Personalised loyalty vouchers vs general promo codes: European Commission guidance (
2021/C 526/02) distinguishes genuine individualised loyalty rewards (such as a personal birthday voucher) from public banner codes ('Use WINTER20 for 20% off everything'), which count as general price-reduction announcements. - United Kingdom position: The UK did not transpose
Directive (EU) 2019/2161post-Brexit, instead governing price promotions through consumer protection law (Digital Markets, Competition and Consumers Act 2024 unfair commercial practices rules and CTSI Pricing Practices Guide on genuine establishment periods and honest RRP comparisons).
3. Two-stage EU & Northern Ireland (XI) VAT verification via VIES
On B2B checkouts selling across EU borders, applying zero-rated intra-Community supply or reverse-charge VAT requires verifying that the buyer holds an active VAT registration in another Member State and retaining audit evidence. Calling the European Commission's VIES (VAT Information Exchange System) live API on every keystroke causes unnecessary latency and hits Member State tax-database maintenance windows.
Instead, run vat.validate in two stages: first, strip whitespace/hyphens and validate the 2-letter prefix + national check-digit/format pattern offline (remembering Greece uses EL rather than GR, and Northern Ireland traders moving goods under the Windsor Framework carry XI prefixes, whereas Great Britain GB numbers are checked via HMRC's UK VAT API rather than EU VIES). Second, once syntax passes at checkout submission, run checkVies: true and log the consultation timestamp, validity flag and returned trader name/address against the order.