# Rejestr.io

### What kind of data I will get

By using this integration, you will get information about commercial companies. This data will be taken from the Rejestr.io data service.

In response, you will receive data in the original structure and mapped to our data model.

### Input

Either nip or krs number must be provided.

```json
{
  "nip": "5224158027"
}
```

```json
{
  "krs": "0000823971"
}
```

### Response content

**rejestrIo**

| Attribute                       | Type     | Description                                  |
| ------------------------------- | -------- | -------------------------------------------- |
| [`organization`](#organization) | `object` | Contains information about the organization. |

#### **organization**

| Attribute                | Type            | Description                                                       |
| ------------------------ | --------------- | ----------------------------------------------------------------- |
| `id`                     | `number`        | The unique identifier of the organization.                        |
| `shortName`              | `string`        | The short name of the organization.                               |
| `fullName`               | `string`        | The full name of the organization.                                |
| `krs`                    | `string`        | The KRS number of the organization.                               |
| `nip`                    | `string`        | The NIP number of the organization.                               |
| `regon`                  | `string`        | The REGON number of the organization.                             |
| [`state`](#state)        | `object`        | Contains information about the current state of the organization. |
| [`ceo`](#ceo)            | `object`        | Contains information about the CEO of the organization.           |
| [`address`](#address)    | `object`        | Contains information about the address of the organization.       |
| `firstKrsEntryDate`      | `string`        | The date when the organization was first registered in the KRS.   |
| `lastKrsEntryDate`       | `string`        | The date when the organization was last registered in the KRS.    |
| `currentRelationCount`   | `number`        | The number of current relations the organization has.             |
| `pastRelationCount`      | `number`        | The number of past relations the organization had.                |
| `type`                   | `string`        | The type of the organization.                                     |
| [`relations`](#relation) | `array<object>` | The relations of the organization                                 |

#### **state**

| Attribute         | Type      | Description                                                          |
| ----------------- | --------- | -------------------------------------------------------------------- |
| `isPublicBenefit` | `boolean` | Indicates whether the organization is a public benefit organization. |
| `inLiquidation`   | `boolean` | Indicates whether the organization is in liquidation.                |
| `inBankruptcy`    | `boolean` | Indicates whether the organization is in bankruptcy.                 |
| `inSuspension`    | `boolean` | Indicates whether the organization is in suspension.                 |
| `isDeleted`       | `boolean` | Indicates whether the organization has been deleted.                 |
| `legalForm`       | `string`  | The legal form of the organization.                                  |
| `mainPkdCode`     | `string`  | The main PKD code of the organization.                               |

#### **ceo**

| Attribute          | Type     | Description                         |
| ------------------ | -------- | ----------------------------------- |
| `id`               | `number` | The unique identifier of the CEO.   |
| `firstAndLastName` | `string` | The first and last name of the CEO. |

#### address

| Attribute    | Type     | Description                                                    |
| ------------ | -------- | -------------------------------------------------------------- |
| `city`       | `string` | The city where the organization is located.                    |
| `aptNo`      | `string` | The apartment number of the organization.                      |
| `code`       | `string` | The postal code of the organization.                           |
| `street`     | `string` | The street where the organization is located.                  |
| `postOffice` | `string` | The name of the post office where the organization is located. |
| `country`    | `string` | The country where the organization is located.                 |
| `houseNo`    | `string` | The house number of the organization.                          |

#### relation

<table><thead><tr><th width="382.3333333333333">Attribute</th><th>Type</th><th>Description</th></tr></thead><tbody><tr><td><code>id</code></td><td><code>number</code></td><td>Id of the relation.</td></tr><tr><td><code>shortName</code></td><td><code>string</code></td><td>Full name of the organization.</td></tr><tr><td><code>fullName</code></td><td><code>string</code></td><td>Short name of the organization.</td></tr><tr><td><code>dunsNumber</code></td><td><code>number</code></td><td>DUNS number of the organization.</td></tr><tr><td><code>krs</code></td><td><code>number</code></td><td>KRS number of the organization.</td></tr><tr><td><code>nip</code></td><td><code>number</code></td><td>NIP number of the organization.</td></tr><tr><td><code>regon</code></td><td><code>number</code></td><td>REGON number of the organization.</td></tr><tr><td><a href="#state"><code>state</code></a></td><td><code>object</code></td><td>The house number of the organization.</td></tr><tr><td><a href="#ceo"><code>ceo</code></a></td><td><code>object</code></td><td>CEO of the organization.</td></tr><tr><td><a href="#address"><code>address</code></a></td><td><code>object</code></td><td>Address of the organization.</td></tr><tr><td><a href="#contact"><code>contact</code></a></td><td><code>object</code></td><td>Contact details of the organization.</td></tr><tr><td><code>krsEntrepreneurEntryDate</code></td><td><code>string</code></td><td>Date of entry into the register of the registrant in the National Court Register in YYYY-MM-DD.</td></tr><tr><td><code>krsEntrepreneurDeletionDate</code></td><td><code>string</code></td><td>Date of removal from the register of entrepreneurs in the National Court Register in the format YYYY-MM-DD.</td></tr><tr><td><code>krsOrganizationsEntryDate</code></td><td><code>string</code></td><td>Date of entry into the register of associations in the National Court Register in the format YYYY-MM-DD.</td></tr><tr><td><code>krsOrganizationsDeletionDate</code></td><td><code>string</code></td><td>Date of deletion from the register of associations in the National Court Register in the format YYYY-MM-DD.</td></tr><tr><td><code>krsLastEntryDate</code></td><td><code>string</code></td><td>Date of the latest entry in the National Court Register in the format YYYY-MM-DD. In the case of organizations deleted from the National Court Register, this is also the date of deletion.</td></tr><tr><td><code>krsLastEntryNumber</code></td><td><code>number</code></td><td>Number of the latest entry in the National Court Register.</td></tr><tr><td><code>krsLastEntryBeforeDeleting</code></td><td><code>string</code></td><td>W przypadku organizacji wykreślonych, data najnowszego wpisu do KRS zawierającego dane sprzed wykreślenia w formacie RRRR-MM-DD.</td></tr><tr><td><code>krsLastEntryNumberBeforeDeleting</code></td><td><code>number</code></td><td>In the case of deleted organizations, the number of the latest entry in the National Court Register containing data from before the deletion.</td></tr><tr><td><code>krsFirstEntryDate</code></td><td><code>string</code></td><td>Date of first entry into the National Court Register in the format YYYY-MM-DD.</td></tr><tr><td><code>krsDeletionValidationDate</code></td><td><code>string</code></td><td>W przypadku organizacji wykreślonych, data uprawomocnienia się postanowienia sądu w kwestii wykreślenia organizacji z KRS, w formacie RRRR-MM-DD.</td></tr><tr><td><code>currentRelationCount</code></td><td><code>number</code></td><td>The number of organization's connections currently present.</td></tr><tr><td><code>pastRelationCount</code></td><td><code>number</code></td><td>The number of organization's connections that existed in the past and did not currently exist.</td></tr><tr><td><code>type</code></td><td><code>string</code></td><td>API object type, always taking one value.</td></tr><tr><td><a href="#queried-relation"><code>queriedRelations</code></a></td><td><code>array&#x3C;object></code></td><td>List of connections of this organization to the queried organization/person.</td></tr><tr><td><code>birthDate</code></td><td><code>string</code></td><td>Birth date of the person. (if relations is of type person)</td></tr><tr><td><code>secondNames</code></td><td><code>string</code></td><td>The second names of related person.  (if relations is of type person)</td></tr><tr><td><code>name</code></td><td><code>string</code></td><td><p>First name of related person. </p><p>(if relations is of type person)</p></td></tr><tr><td><code>names</code></td><td><code>string</code></td><td>All names of relarted person. (if relations is of type person)</td></tr><tr><td><code>sex</code></td><td><code>string</code></td><td>The sex  of related person. (if relations is of type person)</td></tr><tr><td><code>availableKrsChapters</code></td><td><code>array&#x3C;string></code></td><td>Date and time of the last synchronization of the organization's data with the official KRS, in the format YYYY-MM-DD HH:mm:SS.</td></tr><tr><td><code>krsCopySyncDate</code></td><td><code>string</code></td><td></td></tr></tbody></table>

#### relation state

<table><thead><tr><th width="274.3333333333333">Attribute</th><th>Type</th><th>Description</th></tr></thead><tbody><tr><td><code>isEuFinanced</code></td><td><code>boolean</code></td><td>Indicates whether organization has the received funding from the European Union.</td></tr><tr><td><code>isOnGpw</code></td><td><code>boolean</code></td><td>Indicates whether organization is listed on the Warsaw Stock Exchange.</td></tr><tr><td><code>hasReceivedPublicHelp</code></td><td><code>boolean</code></td><td>Indicates whether organization has received public help.</td></tr><tr><td><code>isStateOwned</code></td><td><code>boolean</code></td><td>Indicates whether organization is state owned.</td></tr><tr><td><code>isPublicBenefit</code></td><td><code>boolean</code></td><td>Indicates whether the organization is a public benefit organization.</td></tr><tr><td><code>inLiquidation</code></td><td><code>boolean</code></td><td>Indicates whether the organization is in liquidation.</td></tr><tr><td><code>inBankruptcy</code></td><td><code>boolean</code></td><td>Indicates whether the organization is in bankruptcy.</td></tr><tr><td><code>inSuspension</code></td><td><code>boolean</code></td><td>Indicates whether the organization is in suspension.</td></tr><tr><td><code>isDeleted</code></td><td><code>boolean</code></td><td>Indicates whether the organization has been deleted.</td></tr><tr><td><code>legalForm</code></td><td><code>string</code></td><td>The legal form of the organization.</td></tr><tr><td><code>mainPkdCode</code></td><td><code>string</code></td><td>The main PKD code of the organization.</td></tr></tbody></table>

#### contact

| Attribute       | Type            | Description                         |
| --------------- | --------------- | ----------------------------------- |
| `contactEmails` | `array<string>` | The unique identifier of the CEO.   |
| `website`       | `string`        | The first and last name of the CEO. |

#### queried relation

| Attribute     | Type     | Description                                             |
| ------------- | -------- | ------------------------------------------------------- |
| `startDate`   | `string` | The start date of relation.                             |
| `endDate`     | `string` | The end date of relation.                               |
| `direction`   | `string` | The direction of the relation (AKTYWN, PASYWNY)         |
| `description` | `string` | The detailed description of the relation                |
| `type`        | `string` | The type of the relation (KRS\_SHAREHOLDER, KRS\_BOARD) |

#### Example response

```json

{
    "rejestrIo": {
        "organization": {
            "id": 833971,
            "shortName": "PAYMENTLINK",
            "fullName": "PAYMENTLINK SPÓŁKA Z OGRANICZONĄ ODPOWIEDZIALNOŚCIĄ",
            "krs": "0000321931",
            "nip": "5224158027",
            "regon": "973978643",
            "state": {
                "isPublicBenefit": false,
                "inLiquidation": false,
                "inBankruptcy": false,
                "inSuspension": false,
                "isDeleted": false,
                "legalForm": "SPÓŁKA Z OGRANICZONĄ ODPOWIEDZIALNOŚCIĄ",
                "mainPkdCode": "Finansowa działalność usługowa, z wyłączeniem ubezpieczeń i funduszów emerytalnych"
            }
        },
        "ceo": {
            "id": 2235670,
            "firstAndLastName": "Kamil Tomasz Braniewski"
        },
        "address": {
            "city": "Warszawa",
            "aptNo": "9",
            "code": "00-258",
            "street": "Jana Kazimierza",
            "postOffice": "Warszawa",
            "country": "Polska",
            "houseNo": "23"
        },
        "firstKrsEntryDate": "2020-01-11",
        "lastKrsEntryDate": "2022-02-25",
        "currentRelationCount": 3,
        "pastRelationCount": 2,
        "type": "organizacja",
        "relations": [
            {
                "id": 1,
                "shortName": "CompanyX",
                "fullName": "Company X Inc.",
                "dunsNumber": 123456789,
                "krs": 987654321,
                "nip": 555555555,
                "regon": 777777777,
                "state": {
                    "isEuFinanced": true,
                    "isOnGpw": false,
                    "hasReceivedPublicHelp": true,
                    "isPublicBenefit": false,
                    "isStateOwned": false,
                    "isDeleted": false,
                    "legalForm": "Corporation",
                    "mainPkdCode": "12345",
                    "inLiquidation": false,
                    "inBankruptcy": true,
                    "inSuspension": false,
                    "size": "Medium"
                },
                "ceo": {
                    "id": 2,
                    "firstAndLastName": "John Doe"
                },
                "address": {
                    "city": "New York",
                    "aptNo": "Apt 101",
                    "code": "10001",
                    "street": "Main Street",
                    "postOffice": "Central Post Office",
                    "country": "USA",
                    "houseNo": "42"
                },
                "contact": {
                    "contactEmails": [
                        "contact1@example.com",
                        "contact2@example.com"
                    ],
                    "website": "https://companyx.com"
                },
                "krsEntrepreneurEntryDate": "2023-01-01",
                "krsEntrepreneurDeletionDate": "2023-12-31",
                "krsOrganizationsEntryDate": "2022-05-15",
                "krsOrganizationsDeletionDate": "2022-12-15",
                "krsLastEntryDate": "2023-09-30",
                "krsLastEntryNumber": 12345,
                "krsLastEntryBeforeDeleting": "2023-09-29",
                "krsLastEntryNumberBeforeDeleting": 12344,
                "krsFirstEntryDate": "2021-03-10",
                "krsDeletionValidationDate": "2023-10-01",
                "currentRelationCount": 5,
                "pastRelationCount": 10,
                "type": "organization",
                "birthDate": "1990-01-15",
                "secondNames": "Jane",
                "name": "Alice",
                "names": "Alice Jane",
                "lastName": "Smith",
                "sex": "Female",
                "availableKrsChapters": [],
                "krsCopySyncDate": "2023-10-11"
            },
            {
                "id": 2,
                "type": "KRS_SHAREHOLDER",
                "birthDate": "1990-01-15",
                "secondNames": "Jane",
                "name": "Alice",
                "names": "Alice Jane",
                "lastName": "Smith",
                "sex": "Female"
            }
        ]
    }
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.transactionlink.io/docs/v1/integrations/rejestr.io.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
