Brexit UK VAT Management Module + accounting export
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.
Opis
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
Detection
The module automatically identifies orders destined for the United Kingdom and applies Brexit VAT rules in real time at checkout.
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.
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
Cechy
- 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
- 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
- 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)
- 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
- 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 v2 with Client Credentials Grant
- Sandbox mode for testing without affecting production
- Access token cached to file (vendor/tmp)
- Automatic retry on token expiry
- Configurable minimum order threshold (£)
- Option to block orders below threshold
- Validated B2B customers excluded from minimum threshold
- Tax rule correction tool
- 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…)
Historia wersji
v3.5.0
- 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
v3.3.0
- Improved compatibility with third-party solutions such as Klaviyo
- Improved compatibility between operating systems
- Fixed display error on Firefox
v3.4.0
- Added compatibility with Prestashop 9
v3.1.0
- 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
v3.1.1
- Some corrections to improve compatibility with PrestaShop 8
- Correction of the date display
v3.2.0
- 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
v3.0.0
- Improvement of the FAQ
- Added export of accounting data for English VAT returns
v1.8.1
- Code rewriting for 1.7 versions below 1.7.3.0
v1.6.0
- 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
v1.8.0
- Added option to block orders above the defined threshold
v1.5.1
- Added an override test if the module is disabled
v1.7.1
- Fixed a problematic SQL query on some versions 1.6 of PrestaShop
v1.7.0
- Correction of the treatment of products having a reduction by amount and not by percentage
v1.5.0
- 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
v1.7.3
- Correction of product tax display on PDF invoice
v2.0.1
- Improved control of the application of the tax for United Kingdom
- Correction of some support text
v1.4.0
- Correction of the treatment of product prices exceeding the limit
v1.3.0
- 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
v1.2.0
- Added compatibility with PrestaShop 1.6
v1.1.0
- Correction on the calculation of the total basket excluding tax, excluding shipping costs
v2.0.0
- 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
v1.0.0
- Initial commit
v1.7.2
- Correction to match Prestashop's discounts management
v1.6.1
- Correction of an unnecessary and problematic optimization on the calculation of taxes for discounted products
- Correction of an error in Spanish translation
Opinie klientów · 4 zweryfikowanych opinii
Projekt, pytanie, audyt?
Osobista odpowiedź w ciągu 24h roboczych. Porozmawiajmy bez zobowiązań.
Porozmawiajmy o Twoim projekcie →