Filing numbers, national identifiers and internal company IDs
Quick answer. A filing number is issued by one office for one filing; a national identifier follows the company everywhere in its country. Statsnet’s get_id endpoint converts an identifier into an internal ID and works for Kazakhstan, Uzbekistan, Kyrgyzstan and other jurisdictions with national identifiers.
Three kinds of number
In the United States a company gets a file or entity number from each Secretary of State where it files, so one business can hold several. Countries with a national register assign one identifier for life: Kazakhstan uses the BIN for legal entities and the IIN for individuals. Statsnet then gives every company its own internal ID, which is what the profile, relations and contacts endpoints expect.
Converting with get_id
Call GET /companies/get_id/{jurisdiction}/{identifier} with the jurisdiction code (kz, uz, kg and so on) and the identifier. The response is the Statsnet internal ID. The endpoint is public and rate limited, so it is cheap to run at intake, before you spend a report on the paid profile. For a person, GET /companies/individuals/{identifier} is a paid endpoint.
Where a jurisdiction has no national identifier the conversion has nothing to work with; use POST /companies/search with the name and a jurisdiction filter and pick the match by hand. The Statsnet API docs list both routes.
What to keep in your database
Store all three when you have them: the issuing office’s number, the national identifier, and the Statsnet ID with the date you resolved it. The office number is what you quote when ordering documents; the Statsnet ID is what your code calls. Never overwrite one with another, because a renamed or re-registered company may keep one and change the other.
Questions
Can I send a US file number to get_id?
Statsnet documents get_id for jurisdictions with national identifiers. For a US entity, search by name with a jurisdiction filter instead, and keep the state file number as your own reference.