Skip to navigation

Dismiss the register discrepancy as a register error

View as Markdown

Hides the current discrepancy (dismissed: true) without changing the company. The dismissal holds only for the discrepancy it names: when the register changes again the warning comes back. Send the check’s digest, so a discrepancy that changed since you read it is not dismissed unseen.

Requires write:document_settings or manage:document_settings, and a role that may change the workspace.

Authentication

AuthorizationBearer

JWT issued via POST /api/v1/auth/sign_in. Used by mobile and SPA clients. Revoked tokens are rejected.

OR
AuthorizationBearer

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.

Path parameters

workspace_idlongRequired>=1
Workspace ID. The numeric ID shown in your URLs.

Headers

Idempotency-KeystringOptional<=255 characters

Client-supplied unique key (recommended: UUID v4) for safe retries. Within 24 hours, repeating the same key with the same request (method, path, query, body) replays the original response instead of re-executing the action — once the action has run, a 5xx included; a request stopped before it ran is not stored. Reusing a key with a different request returns 422 idempotency_key_conflict (IETF draft §2.7).

Request

This endpoint expects an object.
digeststringOptionalformat: "^[0-9a-fA-F]{64}$">=1 character

The check’s digest, naming the discrepancy to dismiss. Omit it to dismiss the one the check shows now; a present value must be the 64-character hex digest.

Response

Dismissed. The check as it now reads.
statusenum

unknown = not checked yet, or the register data is too old to judge.

Allowed values:
sourceenum
Which register the company was compared with.
Allowed values:
checked_atdatetime or null
When the comparison was stored.
severityenum or null

The highest severity among discrepancies; null when there are none.

Allowed values:
dismissedboolean
Whether the current discrepancy was dismissed as a register error.
digeststring or null

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_listsmap from strings to objects

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.

discrepancieslist of objects
apply_paramsobject

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_choiceslist of strings

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_codestring or null

The register’s SK NACE Rev. 2.1 class to send beside a picked main_activity_code.

Errors

401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
422
Unprocessable Entity Error
429
Too Many Requests Error