Method: GET /company/{registryCode}
OpenAPI / Swagger: get_company_data
Returns company details by registry code. Use the include parameters to select general data, related persons, commercial pledges, rulings and registry cards.
Authentication: OAuth2 bearer token in the Authorization header.
Path parameters
| Parameter |
Type |
Required |
Description |
|---|
| registryCode |
integer |
Yes |
Company registry code. |
Query parameters
| Parameter |
Type |
Required |
Description |
|---|
| includeGeneralData |
boolean |
No |
Requests general data. Default: false. |
| includeRelatedPersons |
boolean |
No |
Requests related persons. Default: false. |
| includeCommercialPledgeData |
boolean |
No |
Requests commercial pledge data. Default: false. |
| includeRulings |
boolean |
No |
Requests rulings with status changes and associated entry details. Default: false. |
| includeRegistryCards |
boolean |
No |
Requests registry cards with their entries. Default: false. |
| onlyValid |
boolean |
No |
Displays only valid data. Default: true. |
Header parameters
| Parameter |
Type |
Required |
Description |
|---|
| apiVersion |
ApiVersions |
No |
API version. Supported value: V1. Default: V1. |
| acceptLanguage |
AcceptLanguage |
No |
Language of classifier translations: est – Estonian, eng – English. Default: est. |
Response (200)
The response is a CompanyDetailDataResponse object. Required means the field must be present in its containing object; it does not make an optional data block mandatory. A null type means the field value may be null. Dates (date) use YYYY-MM-DD; date-time is an ISO 8601 timestamp.
Root response fields
| Field |
Type |
Required |
Description |
|---|
| legalEntityName |
string |
Yes |
Company business name. |
| registryCode |
integer |
Yes |
Company registry code. |
| companyId |
integer |
Yes |
Internal company ID. |
| vatID |
string | null |
No |
VAT identification number. |
| generalData |
DetailDataGeneralData | null |
No |
General data; request with includeGeneralData=true. Company general data. |
| relatedPersons |
DetailDataRelatedPersons | null |
No |
Related persons; request with includeRelatedPersons=true. Company related persons. |
| commercialPledgeData |
CommercialPledge[] | null |
No |
List of commercial pledges; request with includeCommercialPledgeData=true. Company commercial pledges. |
| rulings |
Ruling[] | null |
No |
List of rulings; request with includeRulings=true. See Ruling below. |
| registryCards |
RegistryCard[] | null |
No |
List of registry cards; request with includeRegistryCards=true. See RegistryCard below. |
General data — DetailDataGeneralData
Company general data
Company related persons
Commercial pledges — CommercialPledge
Company commercial pledges
Rulings — includeRulings
includeRulings=true requests the rulings list. A ruling contains its type, how it comes into force, dates and status. statusChanges describes the ruling’s status changes; entry contains the associated registry entry. additionalTerm and entry are optional and nullable. statusChanges is a required, non-nullable array within a ruling.
Ruling
| Field |
Type |
Required |
Description |
|---|
| number |
string |
Yes |
Ruling number. |
| date |
string (date) |
Yes |
Ruling date. |
| type |
string |
Yes |
Ruling type code. |
| typeAsText |
string |
Yes |
Ruling type as text. |
| effectiveDate |
string (date) |
Yes |
Date the ruling takes effect. |
| rulingInForceType |
string |
Yes |
Code for how the ruling comes into force. |
| rulingInForceTypeAsText |
string |
Yes |
How the ruling comes into force, as text. |
| additionalTerm |
string (date) | null |
No |
Additional deadline date. |
| status |
string |
Yes |
Ruling status code, not a company status code. |
| statusAsText |
string |
Yes |
Ruling status as text. |
| statusDate |
string (date) |
Yes |
Ruling status date. |
| statusChanges |
StatusChange[] |
Yes |
Ruling status changes; each item is a StatusChange. |
| entry |
Entry | null |
No |
Entry associated with the ruling; see Entry. |
StatusChange
| Field |
Type |
Required |
Description |
|---|
| id |
integer |
Yes |
Internal status change ID in the e-Business Register. |
| status |
string |
Yes |
Ruling status code after the change. |
| statusAsText |
string |
Yes |
Ruling status as text. |
| statusChangeDate |
string (date) |
Yes |
Date the ruling status changed. |
Entry
| Field |
Type |
Required |
Description |
|---|
| number |
integer |
Yes |
Entry number. |
| date |
string (date) |
Yes |
Entry date. |
| type |
string |
Yes |
Entry type code. |
| typeAsText |
string |
Yes |
Entry type as text. |
| cardNumber |
integer |
Yes |
Registry card number. |
| cardType |
string |
Yes |
Registry card type code. |
Registry cards — includeRegistryCards
includeRegistryCards=true requests the registryCards list. Each card contains a record ID, card number and type, and a list of entries. A card’s entries item contains an entry record ID; a ruling’s entry object instead contains the card number and type. These are distinct entry structures. All RegistryCard and DetailDataEntry fields below are required and non-nullable.
RegistryCard
| Field |
Type |
Required |
Description |
|---|
| recordId |
integer (int64) |
Yes |
Registry card record ID. |
| cardNumber |
integer (int64) |
Yes |
Registry card number. |
| cardType |
string |
Yes |
Registry card type code, for example R. |
| entries |
DetailDataEntry[] |
Yes |
Entries on this registry card; each item is a DetailDataEntry. |
DetailDataEntry
| Field |
Type |
Required |
Description |
|---|
| recordId |
integer (int64) |
Yes |
Entry record ID. |
| number |
integer (int64) |
Yes |
Entry number. |
| date |
string (date) |
Yes |
Entry date. |
| type |
string |
Yes |
Entry type code. |
| typeAsText |
string |
Yes |
Entry type as text. |
Request examples
All data blocks, valid data only:
GET /company/19999991?includeGeneralData=true&includeRelatedPersons=true&includeCommercialPledgeData=true&includeRulings=true&includeRegistryCards=true&onlyValid=true
apiVersion: V1
acceptLanguage: eng
All data blocks, without the valid-data-only filter:
GET /company/19999991?includeGeneralData=true&includeRelatedPersons=true&includeCommercialPledgeData=true&includeRulings=true&includeRegistryCards=true&onlyValid=false
Response example (200)
{
"legalEntityName": "Kasepilve Tarkvara OÜ",
"registryCode": 19999991,
"companyId": 990001,
"generalData": {
"companyRegistryNumber": 19999991,
"einvoiceProvider": null,
"hasUndeclaredReports": false,
"firstEntryTime": "2025-02-03",
"deletionDate": null,
"isFIEOperating": null,
"isFIEOperatingAsText": null,
"isCSDRegistered": false,
"entryCSDRegistrationDate": null,
"status": {
"status": "R",
"statusAsText": "Entered into the register",
"cardNumber": 1,
"cardType": "R",
"entryNumber": 1,
"recordId": 991001,
"startDate": "2025-02-03",
"endDate": null
},
"legalEntityNames": [
{
"cardNumber": 1,
"cardType": "R",
"entryNumber": 1,
"recordId": 991002,
"startDate": "2025-02-03",
"endDate": null,
"content": "Kasepilve Tarkvara OÜ"
}
],
"additionalNames": null,
"addresses": [
{
"address": {
"address": "Näidistänav 1, Näidislinn"
},
"cardNumber": 1,
"cardType": "R",
"entryNumber": 1,
"recordId": 991003,
"startDate": "2025-02-03"
}
],
"boardLocationAddresses": null,
"contactPersonAddresses": null,
"legalForm": [
{
"cardNumber": 1,
"cardType": "R",
"entryNumber": 1,
"recordId": 991004,
"startDate": "2025-02-03",
"endDate": null,
"content": "OÜ",
"contentNumber": 5,
"contentAsText": "Private limited company"
}
],
"legalFormSubtypes": null,
"capitals": [
{
"currency": "EUR",
"currencyAsText": "euro",
"cardNumber": 1,
"cardType": "R",
"entryNumber": 1,
"recordId": 991005,
"startDate": "2025-02-03",
"endDate": null,
"size": 2500
}
],
"noParValueShares": null,
"financialYears": [
{
"cardNumber": 1,
"cardType": "R",
"entryNumber": 1,
"recordId": 991006,
"startDate": "2025-02-03",
"endDate": null,
"financialYearStartDate": "2025-01-01",
"financialYearEndDate": "2025-12-31"
}
],
"associationArticles": [
{
"approvalDate": "2025-01-30",
"modifiedDate": null,
"explanation": null,
"containsSpecialRights": false,
"cardNumber": 1,
"cardType": "R",
"entryNumber": 1,
"recordId": 991007,
"startDate": "2025-02-03",
"endDate": null
}
],
"commMeans": [
{
"type": "EMAIL",
"typeAsText": "E-mail address",
"cardNumber": null,
"cardType": null,
"entryNumber": null,
"recordId": 991008,
"startDate": "2025-02-03",
"endDate": null,
"content": "[email protected]"
},
{
"type": "WWW",
"typeAsText": "Internet address (www)",
"cardNumber": null,
"cardType": null,
"entryNumber": null,
"recordId": 991010,
"startDate": "2025-02-03",
"endDate": null,
"content": "https://example.invalid"
}
],
"reportedActivities": null,
"infoFinancialYearFromReports": null,
"isFoundedWithoutPayment": false,
"hasAbandonedFormReqs": false,
"isAccountingLiable": null,
"isRequiredtoProvideBeneficiaries": true,
"isHDRCompetentAuthority": null
},
"relatedPersons": {
"representationRights": {
"persons": [
{
"firstName": "Mari",
"surnameLegalEntityName": "Maasikas",
"entityCode": "48503151233",
"entityCodeCountry": "EST",
"birthday": "1985-03-15",
"personType": "F",
"role": "JUHL",
"roleAsText": "Management board member",
"exclusiveRightOfRepresentation": true,
"entityCodeCountryAsText": "Estonia"
}
],
"representationRightSpecialConditions": [],
"representationRightGroups": []
},
"personsOnCard": [
{
"person": {
"role": "JUHL",
"roleAsText": "Management board member",
"startDate": "2025-02-03",
"endDate": null,
"type": "F",
"firstName": "Mari",
"surnameLegalEntityName": "Maasikas",
"identityCode": "48503151233",
"foreignCode": null,
"foreignCodeCountry": null,
"foreignCodeCountryAsText": null,
"birthday": "1985-03-15"
},
"address": {},
"expirationDate": null,
"email": "[email protected]",
"cardNumber": 1,
"cardType": "R",
"entryNumber": 1,
"recordId": 991011,
"startDate": "2025-02-03",
"endDate": null
}
],
"representationRightNormalRulings": [
{
"role": "JUHL",
"content": "Every member of the Management Board may represent the private limited company in concluding all transactions."
}
],
"representationRightSpecialConditions": null,
"partialPledgesAndTransfers": null,
"shareholders": [
{
"person": {
"role": "OSAN",
"roleAsText": "Shareholder",
"startDate": "2025-02-03",
"endDate": null,
"type": "F",
"firstName": "Mari",
"surnameLegalEntityName": "Maasikas",
"identityCode": "48503151233",
"foreignCode": null,
"foreignCodeCountry": null,
"foreignCodeCountryAsText": null,
"birthday": "1985-03-15",
"share": {
"sharePercentage": 100.0,
"shareSize": 2500.0,
"shareCurrencyAsText": "euro"
}
},
"address": {},
"sharePercentage": 100.0,
"shareSize": 2500.0,
"shareCurrency": "EUR",
"shareCurrencyAsText": "euro",
"shareOwnershipType": "L",
"shareOwnershipTypeAsText": "Sole ownership",
"shareFractionNumerator": null,
"shareFractionDenominator": null,
"expirationDate": null,
"authoritySource": null,
"authoritySourceAsText": null,
"authoritySourceDate": null,
"groupId": null,
"recordId": 991012,
"startDate": "2025-02-03",
"endDate": null
}
],
"nonCardRelatedPersons": null,
"buildingAssociationMembers": null
},
"commercialPledgeData": [
{
"id": 1001,
"number": 1,
"status": null,
"statusAsText": null,
"rank": null,
"rankAsText": null,
"amount": "100000.00",
"currency": "EUR",
"currencyAsText": "euro",
"rankings": null,
"amounts": [
{
"currency": "EUR",
"currencyAsText": "euro",
"cardNumber": 1,
"cardType": "R",
"entryNumber": 2,
"recordId": 991013,
"startDate": "2025-02-10",
"endDate": null,
"size": 100000.0
}
],
"pledgees": [
{
"personType": "J",
"name": "Kuldoru Finantseerimine OÜ",
"code": "19999992",
"country": "EST",
"countryAsText": "Estonia",
"ehak": null,
"ehakAsText": null,
"fraction": null,
"cardNumber": 1,
"cardType": "R",
"entryNumber": 2,
"recordId": 991014,
"startDate": "2025-02-10",
"endDate": null
}
],
"notes": null,
"cardNumber": 1,
"cardType": "R",
"entryNumber": 2,
"recordId": 991015,
"startDate": "2025-02-10",
"endDate": null
}
],
"rulings": [
{
"number": "Ä 59999991 / 1",
"date": "2025-02-03",
"type": "K1",
"typeAsText": "Entry",
"effectiveDate": "2025-02-03",
"rulingInForceType": "J",
"rulingInForceTypeAsText": "Enters into force upon entry",
"additionalTerm": null,
"status": "J",
"statusAsText": "In force",
"statusDate": "2025-02-03",
"statusChanges": [
{
"id": 990001,
"status": "J",
"statusAsText": "In force",
"statusChangeDate": "2025-02-03"
}
],
"entry": {
"number": 1,
"date": "2025-02-03",
"type": "2",
"typeAsText": "First entry",
"cardNumber": 1,
"cardType": "R"
}
}
],
"registryCards": [
{
"recordId": 990002,
"cardNumber": 1,
"cardType": "R",
"entries": [
{
"recordId": 990003,
"number": 1,
"date": "2025-02-03",
"type": "2",
"typeAsText": "First entry"
},
{
"recordId": 990004,
"number": 2,
"date": "2025-02-10",
"type": "21",
"typeAsText": "Opening entry of commercial pledge"
}
]
}
]
}
Error responses
- 403 – service access denied. OpenAPI does not specify the response body.
- 404 – not found. Response: CustomValidationError.
- 422 – request validation error. Response: HTTPValidationError.
404 — CustomValidationError
| Field |
Type |
Required |
Description |
|---|
| message |
string |
Yes |
Error message. |
| code |
APIError |
Yes |
APIError code: 2001, 4030 or 4041–4049. |
| id |
string | null |
Yes |
Error identifier. |
| timestamp |
string (date-time) |
No |
Error timestamp. |
422 — HTTPValidationError
| Field |
Type |
Required |
Description |
|---|
| detail |
ValidationError[] |
No |
List of validation errors; each item is a ValidationError. |
ValidationError
| Field |
Type |
Required |
Description |
|---|
| loc |
string | integer[] |
Yes |
Error location components: parameter name or array index. |
| msg |
string |
Yes |
Error message. |
| type |
string |
Yes |
Validation error type. |
| input |
any |
No |
Input received for validation; type is unrestricted. |
| ctx |
object |
No |
Additional error context. |
Illustrative error response (404)
Code 4041 is a permitted APIError value; this example does not define the meaning of that code.
{
"message": "Data not found.",
"code": 4041,
"id": null,
"timestamp": "2025-02-03T10:00:00Z"
}
Validation error example (422)
{
"detail": [
{
"loc": [
"query",
"includeRulings"
],
"msg": "Input should be a valid boolean.",
"type": "bool_parsing",
"input": "abc"
}
]
}