List organisation sizes
curl --request GET \
--url https://www.registeruz.sk/cruz-public/api/velkosti-organizacieimport requests
url = "https://www.registeruz.sk/cruz-public/api/velkosti-organizacie"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://www.registeruz.sk/cruz-public/api/velkosti-organizacie', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://www.registeruz.sk/cruz-public/api/velkosti-organizacie",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://www.registeruz.sk/cruz-public/api/velkosti-organizacie"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://www.registeruz.sk/cruz-public/api/velkosti-organizacie")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.registeruz.sk/cruz-public/api/velkosti-organizacie")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"klasifikacie": [
{
"kod": "<string>",
"nazov": {
"sk": "<string>",
"en": "<string>"
}
}
]
}Codelists
List organisation sizes
Returns all organisation size codes and labels.
GET
/
api
/
velkosti-organizacie
List organisation sizes
curl --request GET \
--url https://www.registeruz.sk/cruz-public/api/velkosti-organizacieimport requests
url = "https://www.registeruz.sk/cruz-public/api/velkosti-organizacie"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://www.registeruz.sk/cruz-public/api/velkosti-organizacie', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://www.registeruz.sk/cruz-public/api/velkosti-organizacie",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://www.registeruz.sk/cruz-public/api/velkosti-organizacie"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://www.registeruz.sk/cruz-public/api/velkosti-organizacie")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.registeruz.sk/cruz-public/api/velkosti-organizacie")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"klasifikacie": [
{
"kod": "<string>",
"nazov": {
"sk": "<string>",
"en": "<string>"
}
}
]
}You can use this endpoint to resolve the
velkostOrganizacie field from the response on an Accounting unit into a human-readable label.
The source code for this endpoint is the ŠÚSR codelist
0073/KATP97.Common patterns
Resolve an organisation size code
Resolve an organisation size code
Fetch all organisation sizes and find the matching label for a
velkostOrganizacie code on an accounting unit.Resolve an organisation size code
// 1. Fetch all organisation sizes
const { klasifikacie } = await fetch(`${BASE}/api/velkosti-organizacie`).then(r => r.json());
// 2. Resolve the size label for an accounting unit
const size = klasifikacie.find(s => s.kod === unit.velkostOrganizacie);
// 3. Log the organisation size label
console.log(size?.nazov?.sk);
Response
200 - application/json
Organisation sizes returned successfully.
Show child attributes
Show child attributes
⌘I