Which id to store

Updated on 2 décembre 2026

Store the FirmIQ id

Every company has an id, a UUID. It is made once and never changes: not when the company is renamed, moves its seat, changes its legal form or gets a new register number. Store it next to your own record and read the company by it.

Key Stable? Why
FirmIQ id Yes Made by FirmIQ, never reused.
LEI, EUID Mostly An EUID has the register number in it, so it changes with the number.
Register number No A German company that moves to another court district gets a new number.
VAT number No A company can lose its number and get another one.
Name and city No Unique on one day only. Another company can take the name later.

A company can have several registrations and numbers at once (registrations, identifiers, vat), each with valid_from and valid_to. A lookup by a former number still finds the company.

When two records are one company

Registers do not always say that two entries are the same company. A company moves from one court to another: the new court announces a new entry, and the old court closes its entry weeks later. Until then FirmIQ has two records. When the link is known, FirmIQ merges them. One id stays, and the other answers with 410 merged:

1HTTP/1.1 410 Gone
2
3{
4 "error": {
5 "code": "merged",
6 "message": "This company was merged into another record.",
7 "id": "9e2d4b7a-3f10-4c85-a6d1-0b7c5e8f2a19"
8 }
9}

What to do: replace the stored id with error.id, and read again. The old id answers 410 for good, so a late reader also learns of it. A 410 is not counted as a request.

If you keep your database in sync, handle the 410 in the job that reads the companies: it is the one place where a merge reaches you.

When one record is two companies

The other way is rare: FirmIQ learns that one record mixed two companies with the same name. The record keeps its id for the company with the older register entry. The other company gets a new id; a lookup by its register number returns it.

Persons

A person has an id too (officers[].person.id, shareholders[].holder.id). Registers identify persons poorly: often a name and a birth date, sometimes a name only. So two person records are merged more often than companies are. The rule is the same: 410 merged with the new id.

Need support?

Did this article not answer your question? Write to us.

Contact us