Skip to main content
GET
/
api
/
sablona
Get report template
curl --request GET \
  --url https://www.registeruz.sk/cruz-public/api/sablona
{
  "id": 123,
  "nazov": "<string>",
  "nariadenieMF": "<string>",
  "platneOd": "<string>",
  "platneDo": "<string>",
  "tabulky": [
    {
      "nazov": {
        "sk": "<string>",
        "en": "<string>"
      },
      "hlavicka": "<array>",
      "riadky": "<array>"
    }
  ]
}
Templates define the row labels for obsah.tabulky in a financial report. The report only contains numeric values. Use idSablony from the financial report to fetch the matching template and map each value to its label.
Templates are never deleted. Once you’ve fetched a template, you can cache it safely.

Common patterns

A financial report’s tabulky contains raw numeric values. Combine it with the matching template to attach a Slovak label to each row.
Map table data to row labels
    // 1. Fetch the financial report and its template
    const report = await fetchReport(686260);
    const template = await fetchTemplate(report.idSablony);

    // 2. Map each row value to its Slovak label
    report.obsah.tabulky.forEach((table, i) => {
      const templateTable = template.tabulky[i];
      table.data.forEach((value, rowIndex) => {
        const label = templateTable.riadky[rowIndex]?.text?.sk;
        console.log(`${label}: ${value}`);
      });
    });
platneDo is absent when the template is still active. Useful for identifying legacy templates when auditing historical financial reports.
Check template validity
    // 1. Fetch the template
    const template = await fetchTemplate(98);

    // 2. Check whether it is still in use
    const isActive = template.platneDo == null;
    console.log(isActive ? 'Template is active' : `Replaced on ${template.platneDo}`);

Query Parameters

id
integer
required

Entity identifier — obtained from an identifier list endpoint.

Response

Template returned successfully.

Defines the row structure of a financial report's tabulky. Use idSablony from a financial report to find the matching template. Templates are never deleted.

id
integer

Unique identifier.

nazov
string

Template name.

nariadenieMF
string

Ministry of Finance regulation reference.

platneOd
string

Valid from (YYYY-MM-DD).

platneDo
string

Valid to (YYYY-MM-DD). Absent if still in use.

tabulky
object[]

Table definitions.