GET
/
organizations
/
{organization_id}
/
preferences
Get Current Organization Preferences
curl --request GET \
  --url https://dev.intermezzo.ai/organizations/{organization_id}/preferences \
  --header 'Authorization: Bearer <token>'
import requests

url = "https://dev.intermezzo.ai/organizations/{organization_id}/preferences"

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

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

print(response.text)
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch('https://dev.intermezzo.ai/organizations/{organization_id}/preferences', 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://dev.intermezzo.ai/organizations/{organization_id}/preferences",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);

$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://dev.intermezzo.ai/organizations/{organization_id}/preferences"

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(string(body))

}
HttpResponse<String> response = Unirest.get("https://dev.intermezzo.ai/organizations/{organization_id}/preferences")
.header("Authorization", "Bearer <token>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://dev.intermezzo.ai/organizations/{organization_id}/preferences")

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
{
  "id": 123,
  "valid_from": "2023-12-25",
  "valid_to": "2023-12-25",
  "is_insolvent": false,
  "insolvency_start_date": "2023-12-25",
  "insolvency_end_date": "2023-12-25",
  "insolvency_company_number": "<string>",
  "extra_paid_leave_days": 123,
  "first_payroll_date": "2023-12-25",
  "last_payroll_date": "2023-12-25",
  "first_payroll_intermezzo": "2023-12-25",
  "logo_id": "<string>",
  "preferences_country": "DE",
  "insurance_credit_preference": "<string>",
  "days_for_sickness_certificate": 4
}
{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}

Authorizations

Authorization
string
header
required

Get token from Auth0 and paste it here

Path Parameters

organization_id
required

Response

Successful Response

id
integer
required
valid_from
string<date> | null
valid_to
string<date> | null
is_insolvent
boolean
default:false
insolvency_start_date
string<date> | null
insolvency_end_date
string<date> | null
insolvency_company_number
string | null
insurance_subsidy_method
enum<string> | null
Available options:
remuneration,
assessment_ceiling
extra_paid_leave_days
integer | null
first_payroll_date
string<date> | null

First payroll (ever) run by the company

last_payroll_date
string<date> | null

Last payroll run in other system before Intermezzo's first payroll

first_payroll_intermezzo
string<date> | null

First date Intermezzo software is used for payroll

logo_id
string | null
preferences_country
string
default:DE
Allowed value: "DE"
insurance_credit_preference
string | null

Für die Möglichkeit der Überweisung, Verrechnung oder Gutschrift ist eine entsprechende Eingabemöglichkeit vorzusehen.

days_for_sickness_certificate
integer | null
default:4
additional_childcare_sick_days_reason
enum<integer> | null

Reason for the selection of the number of additional paid sick days for childcare.

Available options:
0,
1,
2,
3