Automated verification of Polish companies: VAT white list, KRS and REGON APIs in practice
How to automate checks of Polish counterparties: which registers have APIs, what to extract, how to keep proof of the check and what to watch out for with rate limits.
Checking a supplier by hand before a transfer works while you pay a handful of them. With dozens of invoices a week, or in an accounting firm serving many clients, copying tax numbers into search forms becomes a bottleneck. Yet the data you need is public, and most of it can be fetched automatically.
We went through this end to end while building Kontrahent Monitor, our service for checking and monitoring Polish companies. This article explains what automated verification looks like technically and organisationally: where to get the data, what to store and where the traps are. It is useful both for Polish companies and for foreign firms that pay Polish suppliers.
Why automate verification
Two reasons: money and time.
- Tax risk. In Poland, when a business pays more than PLN 15,000 gross to a bank account that is not on the VAT white list, the buyer risks joint liability for the supplier’s unpaid VAT, unless it notifies the tax office (form ZAW-NR) within 7 days or uses the split payment mechanism. For invoices issued until the end of 2026, such a payment also cannot be deducted as a tax cost; from 2027 that second consequence applies only to payments made outside a payment account.
- Overnight changes. A supplier checked when the contract was signed may, months later, be removed from the VAT register, change its bank account or enter liquidation. A one-off check is not enough.
- Team time. Each manual check takes minutes. Multiplied by the number of payments, that is hours that could go to work that needs thinking.
Where the data comes from
| Register | What it gives you | Access |
|---|---|---|
| VAT taxpayer list (“white list”) | VAT status, bank accounts, REGON and KRS numbers | Ministry of Finance API, no key, daily limits; flat file |
| KRS (National Court Register) | legal form, representation, liquidation, bankruptcy | Open KRS API of the Ministry of Justice, no key |
| REGON (BIR) | statistical register data, including sole traders | Statistics Poland web service, free key required |
| CEIDG | sole traders: status, suspension | CEIDG API, token required |
| VIES | EU VAT numbers of foreign counterparties | European Commission service |
In practice the white list is the entry point. Given a tax number (NIP), it returns not only VAT status and bank accounts but also the KRS and REGON numbers, so you know exactly which entity to query in KRS without searching by name.
White list: API and flat file
The white list API has two kinds of methods. Search returns company data (also for several tax numbers in one request). Check answers yes or no to the question whether a given bank account belongs to a given tax number. Every response carries a request identifier (requestId) confirming the state of the list on that day. That identifier is the evidence for the tax office, so store it with the payment.
The API has daily request limits. For large lists the flat file works better: every day the Ministry of Finance publishes a file of hashes of date, tax number and account number combinations. You check accounts locally without worrying about limits, but the file holds no descriptive company data. A good solution combines both: the flat file for bulk account checks, the API for company data and request identifiers.
KRS: the company’s legal status
The Open KRS API returns the current register extract as JSON. From it you get the legal form, the representation body and information on liquidation, bankruptcy or restructuring. Board members’ names are partly masked in this API, but the number of members and changes in the body are visible. For monitoring that is enough: what you need is the signal that something changed.
Bankruptcy and restructuring proceedings are also worth checking in the National Debtors Register (KRZ), which has a public search.
How to build it properly
Fetching data is half the work. The other half is turning it into a reliable process.
- Store snapshots, not just results. Keep each counterparty’s state from every check. Comparing today’s snapshot with yesterday’s gives you alerts (“account removed from the list”, “liquidation opened”) without guesswork.
- Archive evidence. Request identifier, date, the account checked and the result. In an audit, what counts is what you can show.
- Plan for limits and outages. Government registers are sometimes unavailable or return rate-limit errors. A queue with retries, spreading checks over time and a clear “could not check” message instead of silently skipping are the basics.
- Check before paying, not only at night. Daily monitoring catches changes, but a payment batch should be checked right before it goes out, with the evidence stored.
- Make alerts specific. “Something changed” helps nobody. An alert should say what changed, for which counterparty and what to do (for example, hold the payment or file ZAW-NR).
- Minimise data. Tax numbers and account numbers are enough. There is no need to send whole invoices to external services.
Build or buy?
If verification has to be part of your own system (ERP, payment platform, customer-facing application), integrating directly with the registers makes sense. Count the maintenance, though: API changes, limits, queues, the archive and alerts.
If you simply need to know that you are paying the right company to the right account, a ready-made tool is faster. That is why we built Kontrahent Monitor: single checks are free, and monitoring of your whole list with an evidence archive works out of the box. For larger lists we also provide an API.
Need something custom, such as verification inside a procurement process or a customer application? We build such integrations as part of our software for finance service.
This article is for information only and is not tax advice. For specific transactions, consult a tax adviser or accountant.
Facing a similar problem in your company? Email us: [email protected]