Automatic retrieval of Polish company details using a VAT ID (NIP) in PrestaShop

PP-M079S
Integrations & API
  • 1.7.5 + | 8.x | 9.x
  • FR, ES, PL, IT, DE, EN
  • 1.0.3
  • 2026-11-23

Automate B2B company address lookup at checkout, in customer accounts, and in the Back Office using any EU VAT ID or Polish NIP. Speeds up invoicing workflows and eliminates manual data-entry errors.

Combines EU-wide VIES lookup with dedicated Polish business registries (MF VAT White List, GUS, CEIDG)—ideal for international merchants operating or expanding in Poland. Works out of the box without API keys.

29.10 € Tax excluded

Information Parameters:

  • 1.0.3
  • Store Version PHP Version
    1.7.5 + 7.1 – 7.4
    8.x 8.1 – 8.3
    9.x 8.1 – 8.5
  • 2026-11-23
  • FR, ES, PL, IT, DE, EN
  • ✅
  • ✅
  • ✅
  • ✅
  • ❌

Key Benefits

  • Four independent registries with automatic fallback – queries enabled sources (VIES, Polish MF VAT White List, GUS BIR1, CEIDG) in your configured priority order until complete company address details are retrieved.
  • Works out of the box without API keys – both the European Commission's VIES service and the Polish Ministry of Finance VAT White List operate immediately after installation with zero registration.
  • Solves Polish B2B market specifics for cross-border merchants – automatically handles 10-digit Polish NIP numbers entered without the PL country prefix and covers VAT-exempt Polish sole traders via GUS (REGON) and CEIDG.
  • EU-wide VIES support with standalone mode – enable VIES alone for Western European storefronts or combine all four sources when selling to Polish corporate buyers.
  • Local checksum validation before any HTTP request – strips spaces and hyphens, normalizes country prefixes, and verifies the Polish NIP modulo-11 checksum locally to prevent unnecessary API calls.
  • Clean architecture with no ionCube, PHP SOAP, or core Overrides – relies exclusively on native PrestaShop Hooks, lightweight Vanilla JS, and standard PHP cURL for hassle-free upgrades and PHP compatibility.
  • Non-blocking checkout & database caching – a strict 5-second request timeout ensures registry downtime never blocks an order, while configurable TTL caching speeds up repeat lookups and protects API quotas.

Business Use Cases

Designed for B2B and hybrid B2C/B2B PrestaShop stores where accurate billing details prevent invoice corrections (credit notes), streamline ERP synchronization, and reduce friction at checkout:

  • International brands and investors expanding into Poland – standard EU VIES plugins often fail in Poland because local buyers enter a 10-digit NIP without the PL prefix or operate as VAT-exempt sole proprietorships; this module bridges that gap out of the box, returning Polish street addresses and XX-XXX postal codes.
  • Multi-country PrestaShop Multistore setups – configure VIES-only lookup on Western European storefronts (e.g., Germany, France, Netherlands, Spain) while enabling the full 4-registry Polish stack on your Polish shop within one installation.
  • Cross-border EU wholesale and intra-Community B2B – instant retrieval of registered company name, street address, postal code, city, and automatic country selection from any EU VAT number prefixed with a two-letter country code (e.g., DE, FR, CZ).
  • Inside sales and customer support teams – enables back-office staff to populate corporate customer addresses in one click when handling phone, email, or manual orders.

Back Office Features

Source Management & Fallback Priority

Dedicated configuration matrix to toggle VAT white list (MF), GUS BIR1, CEIDG, and VIES independently and assign a 1–4 fallback order.

  • High availability – if the primary registry times out or returns no match, the module seamlessly falls back to the next enabled source that supports the entered ID format.

Optional Polish Registry Credentials (GUS & CEIDG)

Dedicated fields for a free GUS API key (REGON BIR1) and CEIDG token, complete with direct registration links in the Back Office form.

  • Full Polish business coverage – adding free government credentials extends lookup beyond active VAT payers to cover small Polish businesses and sole traders not listed in VIES or the MF White List.

Target Page Toggles & Custom VAT Field Selector

Separate switches for Checkout, Customer address form, and Back office addresses, paired with a customizable VAT field selector input.

  • Theme and OPC compatibility – bind the lookup button to any custom CSS selector instead of the default vat_number field to fit bespoke themes and third-party One Page Checkout modules.

Back Office Address Lookup (AdminAddresses)

Optionally injects the company lookup button directly into the customer address creation and editing screen inside the PrestaShop admin panel.

  • Faster admin workflow with CSRF protection – support staff retrieve verified company data in one click, with every AJAX call validated against Back Office security tokens.

Database Response Cache & Rotating Lookup Log

Configurable Cache (hours) lifetime (defaulting to 24 hours) and a dedicated Logs tab displaying and clearing the 100 most recent lookup events.

  • Lean database footprint – automatic log rotation helps administrators diagnose invalid API keys or registry outages immediately without bloating database tables.

Per-Shop Multistore Isolation

Enforces configuration at the single-shop level when Multistore is active, hiding the form and blocking saves in All shops or shop-group contexts.

  • Market-specific rules – prevents accidental cross-market overrides and lets each regional storefront maintain its own registry chain and API credentials.

Front Office Features

One-Click “Fetch company data” Button

Automatically places an action button next to the tax ID input on the checkout address step and in the customer account address book.

  • Five fields filled at once – populates company name, street address, postal code, city, and selects the matching country from the dropdown while protecting the endpoint with a storefront CSRF token.

Dynamic Checkout Support (MutationObserver)

Built in pure Vanilla JavaScript (zero jQuery dependency) to watch DOM updates and trigger native input and change events after auto-filling fields.

  • Reliable with AJAX & One Page Checkout – re-binds automatically when checkout steps reload or countries switch, ensuring PrestaShop's front-end validators immediately recognize populated values.

Format Normalization & Clear Status Feedback

Accepts tax IDs with spaces, hyphens, or country prefixes, displaying an inline loading state and result message showing which registry provided the data.

  • Frictionless buyer experience – customers can paste a VAT ID or NIP in any format, review the retrieved address, and still edit any field manually before submitting the form.

Impact on Conversion & SEO

  • Higher B2B checkout conversion – replacing five manual address fields with a single tax ID lookup significantly speeds up mobile and desktop checkout, reducing cart abandonment among business buyers.
  • Fewer invoice corrections and ERP sync errors – pulling standardized legal names and addresses directly from official government registries minimizes typos in data passed to accounting and ERP platforms.
  • Zero impact on Core Web Vitals and crawlability – lightweight CSS and JS assets load conditionally only on checkout and customer address pages, leaving storefront landing pages, categories, and product pages completely untouched for search engine crawlers.

Important Notes

We recommend creating a full backup of your store files and database before installation. For the storefront lookup button to appear, the PrestaShop country address format must include the vat_number field (or you must specify a custom field via the VAT field selector). Your server requires PHP cURL and outbound HTTPS access; neither ionCube nor the PHP SOAP extension is needed. The level of address detail returned for non-Polish EU VAT numbers via VIES depends on what each member state's tax authority publishes. This module handles company address auto-fill only and does not modify tax rules or apply 0% VAT reverse charge. Uninstalling the module removes its settings, cache table, and log table.

# Changelog

## [1.0.3] - 2026-11-23

### Fixed

- Front: VAT field selector accepts bare id or name (e.g. `field-vat_number`), not only full CSS.
- Front: company lookup fills the visible checkout address section (PrestaShop 9.2 one-page checkout), including separate billing (`invoice_`) fields.

## [1.0.0] - 2026-02-17

### Added

- Initial release of the module.

FAQs

  • Are the modules compatible with my version of PrestaShop?

    Each module in our store contains information about compatibility with specific PrestaShop versions. Please check this information carefully before purchasing. If you are not sure, contact us.

Do you need additional features or custom solutions?

  • Module customisation tailored to your specific requirements.
  • Extending functionality to enhance your store's capabilities.
  • Developing bespoke modules designed to meet your unique needs.
  • Integrating external systems and additional tools.
  • Optimisation and improvements for better performance and user experience.

Do you have ideas on how to improve this software? Share your suggestions for optimisation, new features, or bug reports – we’ll be happy to review them!