RIK: Estonia VAT register

Daily snapshotmeta.source: rik
By Remco from Avatcado

Estonia publishes the e-Business Register as open data, and the basic company extract in it carries a VAT number column alongside the name, status and address of every registered business. That single file is enough to answer an Estonian fallback, which is why Estonia is mirrored rather than queried live.

RIK is run by the Estonian Centre of Registers and Information Systems, and its data is published at avaandmed.ariregister.rik.ee. It is one of the 10 national registers Avatcado consults on the Pro and Business plans when VIES cannot answer for Estonia, and it never replaces a VIES answer that does arrive. The national registry fallback guide covers the full precedence order.

What RIK publishes

  • One row per registered business, with its name, registry code, legal form and current status
  • The VAT number of the businesses that have one, written with the EE prefix, and an empty column for the ones that do not
  • The registered address, both as entered and in a normalised form, which is the one a fallback answer prefers
  • The date the business was first entered in the register, which is a company milestone rather than a VAT registration date

How Avatcado uses it

A scheduled job downloads the basic company extract, keeps the rows that carry a VAT number, and stores them as a snapshot, around 130,000 numbers on a recent load. An Estonian fallback reads that snapshot and, on a hit, answers with source rik, the company name and the normalised address. Businesses without a VAT number are not stored at all, so they are simply absent rather than recorded as unregistered.

RIK publishes a bulk file rather than a per-number service, so Avatcado mirrors it instead of calling it on your request. Snapshot refreshed 12:00 and 22:00 UTC, and each run replaces the stored snapshot. A snapshot is only trusted while it is demonstrably fresh: it has to be less than 3 days old, and the source file itself has to have changed within the last 14 days. A snapshot that fails either gate is not served at all, because a stale file is worse than no fallback.

The rule that matters most is that a register can only ever confirm a registration. A miss, whether RIK says not registered or simply has no record, is never turned into valid: false: the request falls through to the stored result instead. An answer that does come from here carries source: "rik" and source_status: "fallback", and no consultation_number field at all, because only VIES issues those.

What a RIK answer contains

FieldRIK
Company nameYes
Company addressYes
Consultation numberNo, VIES only

Data quirks worth knowing

  • Estonian VAT groups share one VAT number; the snapshot names one member of the group
  • The extract is a company register rather than a VAT register, so a VAT registration date is not part of it and no fallback answer can state one
  • The file also lists businesses in liquidation or bankruptcy, whose status is carried through rather than being read as a VAT signal
  • The address is published twice, in the form it was entered and in a normalised form, and the normalised one is used when it is present

Try it

Validating a Estonia VAT number takes the same call whichever source answers it. This one uses EE102090374, a real registered number:

curl "https://api.avatcado.com/v1/validate?vat_number=EE102090374" \
  -H "Authorization: Bearer avat_live_your_api_key"
import Avatcado from "@avatcado/node";

const avatcado = new Avatcado("avat_live_your_api_key");
const { data, error } = await avatcado.vat.validate({
  vatNumber: "EE102090374",
});

if (data?.meta.source === "rik") {
  // VIES was unavailable; RIK confirmed the registration.
  console.log(data.meta.source_status); // "fallback"
}

On an ordinary day that answer comes from VIES, with source_status: "live". Only when VIES cannot answer for Estonia does RIK step in, and then meta.source_status reads "fallback" and meta.source reads "rik". The register fallback is included in the Pro and Business plans; the free tier covers 500 validations per month from VIES and the cache. Get an API key or read the API documentation.

Frequently asked questions

What Estonian data does the RIK e-Business Register publish?

The Centre of Registers and Information Systems publishes several open data extracts of the e-Business Register, and the one behind these lookups is the basic company file. Each row is a registered business: its name, its registry code, its legal form, its current status, its address in two forms, and its VAT number where it has one. There is no separate Estonian VAT register to consult, so this company extract is the VAT source. Avatcado keeps only the rows that carry a VAT number, which is roughly 130,000 of them, and stores those as the snapshot that answers Estonian validations while the member state is unavailable.

How are Estonian VAT groups handled in a fallback answer?

Estonian VAT groups share a single VAT number across their members, and the published file records that number against each member company in its own row. A fallback answer therefore confirms the number correctly, but the name it returns is one member of the group rather than the group as a whole, and which member you get is not something the file lets us choose meaningfully. The registration itself is not in doubt; only the name is ambiguous. This is flagged on the coverage page as well, so treat an Estonian name from a fallback answer as indicative and take the definitive one from VIES once it is answering.

Keep reading

Sources