Brexit UK VAT Management Module + accounting export

medbrexitvat

On January 1, 2021, the Brexit, that is, the exit of the United Kingdom from the European Union, was ratified with minimal agreement.

This agreement stipulates the rules for the exchange of goods between the European Union and the United Kingdom.

One of the constraints concerns the management of the different VAT below the threshold of £135 and above.

This module takes care of the particular management for this country.


Data sheet

Version 3.5.0
Core modifications (override) Yes
Third party subscription: No
Translation : bg-da-de-el-es-et-fi-fr-hu-it-ja-nl-pl-pt-ro-sk-sv-uk
Compatible Prestashop 1.6 Yes
Compatible Prestashop 1.7 Yes
Compatible PrestaShop 8 Yes
Compatible PrestaShop 9 Yes
Compatible thirtybees 1.1 Yes
Compatible thirtybees 1.2 Yes
Compatible thirtybees 1.3 Yes
Compatible thirtybees 1.4 Yes
Compatible thirtybees 1.5 Yes
Compatible thirtybees 1.6 Oui
PhenixSuite compatible Yes
Multi Shop compatible: Yes
Video https://www.youtube-nocookie.com/embed/fY8582B2Pcs
PrestaShop Forum https://www.prestashop.com/forums/topic/1039678-module-vat-management-in-the-united-kingdom-after-brexit/
Demonstrations https://ps8.mediacom87.net/medbrexitvat/en/

99,99 € tax excl.

Secure payment methods

License

By buying this product, you will benefit from all the updates for 365 days.

Number of downloads

85 Downloads

Last Update

04/14/2026: Version 3.5.0

Compatibility

This modules is compatible with all PrestaShop 1.6.x version This modules is compatible with all PrestaShop 1.7.x version This modules is compatible with all PrestaShop 8.x version This modules is compatible with all PrestaShop 9.x version

thirtybees Compatibility

This modules is compatible with all thirtybees 1.1.x version This modules is compatible with all thirtybees 1.2.x version This modules is compatible with all thirtybees 1.3.x version This modules is compatible with all thirtybees 1.4.x version This modules is compatible with all thirtybees 1.5.x version This modules is compatible with all thirtybees 1.6.x version

PhenixSuite Compatibility

This modules is compatible with all PhenixSuite version

Translate in

bg da de el es et fi fr hu it ja nl pl pt ro sk sv uk

Proposed by

Mediacom87


More info

The Problem

Since Brexit, selling to the United Kingdom involves specific VAT rules: no VAT below the £135 threshold, VAT exemption for B2B customers with a valid UK VAT number, and the obligation to declare your taxable sales to HMRC.

PrestaShop handles none of this natively. Without a dedicated module, every UK order becomes a source of accounting errors and a tax compliance risk.

The Solution

MedBrexitVAT automates the entire chain: it detects orders destined for the UK, applies Brexit VAT rules, verifies UK VAT numbers in real time via GOV.UK or the HMRC API, and generates your accounting declarations in CSV format.

Configurable in minutes, compatible with PrestaShop 1.6 to 9, no technical skills required for day-to-day use.

How It Works

1

Detection

The module automatically identifies orders destined for the United Kingdom and applies Brexit VAT rules in real time at checkout.

2

B2B Validation

UK VAT numbers from your professional customers are checked by regex then optionally verified via GOV.UK or the HMRC API with caching.

3

Accounting Export

Generate your UK VAT declarations in CSV format in one click, ready for your accountant or submission to HMRC.

Detailed Features

UK VAT Management

  • Automatic detection of orders destined for the United Kingdom
  • VAT removal below the legal £135 threshold
  • B2B exemption on validated UK VAT number
  • EORI and VAT number displayed on all UK invoices

B2B VAT Validation

  • Syntax check: GB prefix + 9-digit format
  • Optional strong check via GOV.UK (no credentials needed)
  • Optional strong check via HMRC API (OAuth 2.0)
  • Precise step-by-step error messages

Validation Cache

  • Dedicated database table for validated VAT numbers
  • Company name stored in cache to avoid repeated lookups
  • Configurable duration (default 6 months)
  • Used across all validation paths (cart + hooks)

Company Name Replacement

  • Automatically retrieves the name registered with HMRC
  • Replaces the company field in the customer’s address
  • Source: GOV.UK scraping or HMRC API response
  • Can be enabled independently of the strong check

UK VAT Accounting Export

  • CSV export of taxable UK orders for a given period
  • Based on delivery address (fiscally correct)
  • Option to include shipping costs and their taxes
  • Filter by order status, automatic quarter date fill

HMRC API OAuth 2.0

  • HMRC API v2 with Client Credentials Grant
  • Sandbox mode for testing without affecting production
  • Access token cached to file (vendor/tmp)
  • Automatic retry on token expiry

Order Controls

  • Configurable minimum order threshold (£)
  • Option to block orders below threshold
  • Validated B2B customers excluded from minimum threshold
  • Tax rule correction tool

Smart Overrides

  • Separate directories per version: override-16/, override-17/, override-9/
  • Automatic reinstallation on module update
  • VAT correctly displayed on PDF invoice templates
  • Compatible with third-party solutions (Klaviyo…)

Complete Administration Interface

VAT configuration, thresholds and B2B options in a dedicated tab. Accounting export with period and status selection. Tax rule replacement tool. Built-in FAQ, compatible modules page, security charter and version update checker.

Installation

Download the module and install it from your back office (Modules > Module Manager)

Configure the UK order threshold, your store’s VAT and EORI numbers in the dedicated tab

Optionally enable strong B2B VAT number validation (GOV.UK with no credentials, or HMRC API with your OAuth keys)

Use the accounting tab to export your UK VAT declarations at the end of each quarter

Changelog

3.5.0 - 04/09/2026

  • Added strong VAT validation options: GOV.UK web check (no credentials) or HMRC API (OAuth 2.0)
  • Basic VAT checking now performs regex validation only, strong check is optional
  • Fixed VAT export using delivery address instead of billing address to determine UK orders
  • Added option to include shipping costs and their taxes in the VAT export
  • Fixed GOV.UK web check not retrieving the business name for company field replacement
  • VAT cache is now used for all validation paths (front-office hooks included), not just tax calculations
  • Business name is now stored in cache to avoid repeated lookups
  • Improved UK VAT number validation with step-by-step checks (country, GB prefix, format, HMRC API) and specific error messages
  • Fixed a bug where any non-empty value in the VAT number field would remove VAT, even when VAT checking was enabled
  • VAT exemption now requires a validated UK VAT number when HMRC checking is enabled
  • Added a dedicated database cache for validated VAT numbers to avoid repeated HMRC API calls
  • Added a configurable cache duration setting for validated VAT numbers
  • Fixed overrides reinstallation during module upgrade
  • New admin interface: About, Modules and Security pages
  • Module version update checker

3.4.0 - 09/22/2025

  • Added compatibility with Prestashop 9

3.3.0 - 01/29/2025

  • Improved compatibility with third-party solutions such as Klaviyo
  • Improved compatibility between operating systems
  • Fixed display error on Firefox

3.2.0 - 09/08/2023

  • Overhaul of the overrides code and its implementation
  • Modification of the code for processing the minimum order to be made if the option is activated to avoid returning to the home page when registering an English address.
  • Improved choice of order status for VAT export
  • Automatic filling in of previous quarter start and end dates for even easier VAT returns

3.1.1 - 05/24/2023

  • Some corrections to improve compatibility with PrestaShop 8
  • Correction of the date display

3.1.0 - 01/31/2023

  • Added compatibility with PrestaShop 8
  • Added an option to exclude B2B customers with a valid English VAT number from the minimum purchase limit
  • Added a tool to replace the tax rules to match your configuration, including the United Kingdom
  • Small coquetry to make reappear the icons on the buttons of the module on the versions 1.7

3.0.0 - 06/27/2022

  • Improvement of the FAQ
  • Added export of accounting data for English VAT returns

2.0.1 - 05/12/2021

  • Improved control of the application of the tax for United Kingdom
  • Correction of some support text

2.0.0 - 03/05/2021

  • Adding B2B options
    • Withdrawal of VAT for professionals with a valid UK VAT number
    • Implementation of the UK VAT number validation process
    • Added an option to automatically fill in the company name from the VAT number
    • Added explanation to remove the validation error of the module vatnumber developed by PrestaShop
  • Display of EORI and VAT number on all United Kingdom invoices

1.8.1 - 03/30/2021

  • Code rewriting for 1.7 versions below 1.7.3.0

1.8.0 - 03/22/2021

  • Added option to block orders above the defined threshold

1.7.3 - 03/15/2021

  • Correction of product tax display on PDF invoice

1.7.2 - 03/04/2021

  • Correction to match Prestashop's discounts management

1.7.1 - 02/20/2021

  • Fixed a problematic SQL query on some versions 1.6 of PrestaShop

1.7.0 - 02/16/2021

  • Correction of the treatment of products having a reduction by amount and not by percentage

1.6.1 -02/03/2021

  • Correction of an unnecessary and problematic optimization on the calculation of taxes for discounted products
  • Correction of an error in Spanish translation

1.6.0 - 01/28/2021

  • Separation of Northern Ireland from the United Kingdom
  • Automatic configuration of the United Kingdom to accept to have states
  • Automatic configuration to change the address format of the United Kingdom to request to choose a state
  • Automatic state configuration to separate Ireland from the north of the United Kingdom without harming the other provinces
  • Added an option to prevent orders below the set threshold to the United Kingdom

1.5.1 - 01/21/2021

  • Added an override test if the module is disabled

1.5.0 - 01/16/2021

  • Fixed a currency conversion bug
  • Fixed a bug on PrestaShop stores that didn't activate the combinations
  • Fixed a bug on PrestaShop versions before 1.6.1.1
  • Improved cart price calculation on PrestaShop 1.6 versions
  • Added an option to disable forced shopping cart refresh on PrestaShop 1.6 versions

1.4.0 - 01/12/2021

  • Correction of the treatment of product prices exceeding the limit

1.3.0 - 01/10/2021

  • Addition of several tests facilitating the configuration of the module
  • Addition of a FAQ answering the main questions I get from the first users of the module
  • Added display of UK VAT number and EORI number on all invoices exceeding the registered limit

1.2.0 - 01/08/2021

  • Added compatibility with PrestaShop 1.6

1.1.0 - 01/07/2021

  • Correction on the calculation of the total basket excluding tax, excluding shipping costs

1.0.0 - 01/05/2021

  • Initial commit

Interested in product

Tell us your interest in this product and we will contact you for more details.

[0/]
Brexit UK VAT Management Module
Brexit UK VAT Management Module + accounting export

Reviews