> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.lucanto.eu/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.lucanto.eu/_mcp/server.

# The stored register check of the workspace's company

GET https://app.lucanto.eu/api/v1/workspaces/{workspace_id}/company_profile/register_check

Reads the last stored comparison; it never calls the register. `status` is `ok` when the
register agrees, `drift` when it disagrees, `unknown` when the company has not been checked
yet or the register data is too old to judge (the stored `discrepancies` are still returned,
but must not be shown as current), and `unsupported` for a company the check does not cover
(outside Slovakia, a private person, or no IČO). A discrepancy already fixed on the company
profile is left out. To apply the register's values, send `apply_params` unchanged as the
body of `PATCH /workspaces/{workspace_id}/company_profile`; it is empty unless `status` is
`drift`.

Requires `read:document_settings` (or `write:`/`manage:document_settings`).

Reference: https://docs.lucanto.eu/api-reference/api-reference/company-profile/company-register-check

## Authentication

- `Authorization` header (bearer token, required) — JWT issued via POST /api/v1/auth/sign_in. Used by mobile and SPA clients. Revoked tokens are rejected.
- `Authorization` header (bearer token, required) — Lucanto API key. Two prefixes: * `lct_pat_<random><checksum>` — personal access token (owner: User) * `lct_live_<random><checksum>` — workspace token, live data Issue keys at `/settings/api_keys` (personal) or `/:workspace_id/settings/api_keys` (workspace). Plaintext token is shown once and never again.

## Request

### Path parameters

- `workspace_id` (long, required) — Workspace ID. The numeric ID shown in your URLs.

## Response

### 200

OK

- `status` (enum, required) — `unknown` = not checked yet, or the register data is too old to judge.
  - Allowed values: `ok`, `drift`, `unknown`, `unsupported`
- `source` (enum, required) — Which register the company was compared with.
  - Allowed values: `sk_register`
- `checked_at` (datetime, required, nullable) — When the comparison was stored.
- `severity` (enum, required, nullable) — The highest severity among `discrepancies`; null when there are none.
  - Allowed values: `info`, `warning`, `critical`
- `dismissed` (boolean, required) — Whether the current discrepancy was dismissed as a register error.
- `digest` (string, required, nullable) — Identifies the stored discrepancy. POST it to `…/register_check/dismiss`; it changes when the register's answer changes. Null when no discrepancy is stored.
- `register_lists` (map from string to CompanyRegisterCheckRegisterLists, required) — The register lists the comparison read, keyed by list (e.g. `icdph`), with their dates; null for a list the register has not published yet.
- `discrepancies` (list of CompanyRegisterDiscrepancy, required)
- `apply_params` (CompanyRegisterCheckApplyParams, required) — The `PATCH /workspaces/{workspace_id}/company_profile` body that writes the register's values over the discrepancies. Empty unless `status` is `drift` (stale or unknown data is never applied) and when there is nothing to apply (a termination is reported, not applied). `vat_payer_type` and `vat_id` always travel together. A `main_activity` discrepancy is applied here only when the register's SK NACE Rev. 2.1 class has a single SK NACE Rev. 2 subclass; with several, the user picks one of `main_activity_choices` and the client adds it as `main_activity_code`, with `main_activity_register_code`, to this body.
- `main_activity_choices` (list of string, required) — The SK NACE Rev. 2 subclasses the register's new main activity may be filed as, when there are several and the user must pick; empty otherwise.
- `main_activity_register_code` (string, required, nullable) — The register's SK NACE Rev. 2.1 class to send beside a picked `main_activity_code`.

## Errors

### 401 Unauthorized Error

Missing or invalid authentication credentials.

- `error` (string, required) — Machine-readable error code. Stable across releases — clients should branch on this rather than the human-readable message.
- `message` (string, required) — Human-readable error description, localized to `Accept-Language`. Subject to wording changes between releases.
- `request_id` (string, required) — Server-side request identifier. Same value as the `X-Request-Id` response header. Quote this in support tickets so we can pull the matching server log line.
- `docs_url` (string, required) — URL of the per-error-code documentation page. Useful for SDK error subclasses to deep-link from a stack trace to the docs explaining the cause + remediation.

### 403 Forbidden Error

Authenticated, but the token's scope or the user's role does not permit this action. Both the token scope and the user's role must allow the action. Also returned when a workspace token is sent to an endpoint that acts for a user (`/user`, `/user/workspaces`, devices, notification preferences, diagnostics): a workspace token has no user behind it, so use a personal access token or a JWT there.

- `error` (string, required) — Machine-readable error code. Stable across releases — clients should branch on this rather than the human-readable message.
- `message` (string, required) — Human-readable error description, localized to `Accept-Language`. Subject to wording changes between releases.
- `request_id` (string, required) — Server-side request identifier. Same value as the `X-Request-Id` response header. Quote this in support tickets so we can pull the matching server log line.
- `docs_url` (string, required) — URL of the per-error-code documentation page. Useful for SDK error subclasses to deep-link from a stack trace to the docs explaining the cause + remediation.

### 404 Not Found Error

Resource does not exist, or exists but is not visible to the authenticated principal (cross-workspace isolation returns 404, not 403, to avoid leaking existence).

- `error` (string, required) — Machine-readable error code. Stable across releases — clients should branch on this rather than the human-readable message.
- `message` (string, required) — Human-readable error description, localized to `Accept-Language`. Subject to wording changes between releases.
- `request_id` (string, required) — Server-side request identifier. Same value as the `X-Request-Id` response header. Quote this in support tickets so we can pull the matching server log line.
- `docs_url` (string, required) — URL of the per-error-code documentation page. Useful for SDK error subclasses to deep-link from a stack trace to the docs explaining the cause + remediation.

### 429 Too Many Requests Error

Rate limit exceeded. Retry after the window resets.

- `error` (string, required) — Machine-readable error code. Stable across releases — clients should branch on this rather than the human-readable message.
- `message` (string, required) — Human-readable error description, localized to `Accept-Language`. Subject to wording changes between releases.
- `request_id` (string, required) — Server-side request identifier. Same value as the `X-Request-Id` response header. Quote this in support tickets so we can pull the matching server log line.
- `docs_url` (string, required) — URL of the per-error-code documentation page. Useful for SDK error subclasses to deep-link from a stack trace to the docs explaining the cause + remediation.

## Types

### CompanyRegisterCheckRegisterLists

- `list_date` (date, optional)
- `imported_at` (datetime, optional)

### CompanyRegisterDiscrepancy

- `field` (string, required) — The company profile field that differs.
- `kind` (enum, required)
  - Allowed values: `foreign`, `standard`, `deregistered`, `vat_id`, `terminated`, `tax_id`, `name`, `address`, `main_activity`
- `ours` (string, required, nullable) — The value stored in Lucanto.
- `register` (string, required, nullable) — The register's value, normalized to Lucanto's.
- `register_raw` (string, required, nullable) — The register's value as it publishes it.
- `valid_from` (date, required, nullable) — When the register says the value took effect.
- `severity` (enum, required)
  - Allowed values: `info`, `warning`, `critical`

### CompanyRegisterCheckApplyParams

The `PATCH /workspaces/{workspace_id}/company_profile` body that writes the register's values over the discrepancies. Empty unless `status` is `drift` (stale or unknown data is never applied) and when there is nothing to apply (a termination is reported, not applied). `vat_payer_type` and `vat_id` always travel together. A `main_activity` discrepancy is applied here only when the register's SK NACE Rev. 2.1 class has a single SK NACE Rev. 2 subclass; with several, the user picks one of `main_activity_choices` and the client adds it as `main_activity_code`, with `main_activity_register_code`, to this body.

- `vat_payer_type` (string, optional)
- `vat_id` (string, optional, nullable)
- `tax_id` (string, optional, nullable)
- `address` (CompanyRegisterCheckApplyParamsAddress, optional)
- `main_activity_code` (string, optional) — SK NACE Rev. 2 subclass the tax return files, e.g. 62010.
- `main_activity_register_code` (string, optional) — The register's SK NACE Rev. 2.1 class it corresponds to.

### CompanyRegisterCheckApplyParamsAddress

- `name` (string, optional, nullable)
- `street` (string, optional, nullable)
- `postal_code` (string, optional, nullable)
- `city` (string, optional, nullable)

## Examples

**Response**

```json
{
  "status": "ok",
  "source": "sk_register",
  "checked_at": "2024-01-15T09:30:00Z",
  "severity": "info",
  "dismissed": true,
  "digest": "string",
  "register_lists": {},
  "discrepancies": [
    {
      "field": "vat_payer_type",
      "kind": "foreign",
      "ours": "string",
      "register": "string",
      "register_raw": "string",
      "valid_from": "2023-01-15",
      "severity": "info"
    }
  ],
  "apply_params": {
    "vat_payer_type": "string",
    "vat_id": "string",
    "tax_id": "string",
    "address": {
      "name": "string",
      "street": "string",
      "postal_code": "string",
      "city": "string"
    },
    "main_activity_code": "string",
    "main_activity_register_code": "string"
  },
  "main_activity_choices": [
    "62020",
    "62030"
  ],
  "main_activity_register_code": "string"
}
```

**SDK Code**

```python
import requests

url = "https://app.lucanto.eu/api/v1/workspaces/42/company_profile/register_check"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript
const url = 'https://app.lucanto.eu/api/v1/workspaces/42/company_profile/register_check';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://app.lucanto.eu/api/v1/workspaces/42/company_profile/register_check"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://app.lucanto.eu/api/v1/workspaces/42/company_profile/register_check")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://app.lucanto.eu/api/v1/workspaces/42/company_profile/register_check")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://app.lucanto.eu/api/v1/workspaces/42/company_profile/register_check', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://app.lucanto.eu/api/v1/workspaces/42/company_profile/register_check");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://app.lucanto.eu/api/v1/workspaces/42/company_profile/register_check")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```