POST
/
organizations
/
{organization_id}
/
insurance-details
Create Organization Insurance Details
curl --request POST \
  --url https://dev.intermezzo.ai/organizations/{organization_id}/insurance-details \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "valid_from": "2023-12-25",
  "valid_to": "2023-12-25",
  "insurance_country": "DE",
  "company_number": "98797889",
  "unrs": "DE987654321",
  "accident_insurance_company_number": "98797889",
  "accident_insurance_pin": "12345",
  "payroll_service_provider_number": "98797889",
  "payroll_processing_location_number": "98797889",
  "u1_selected": false,
  "u2_selected": false,
  "u3_selected": false,
  "agency_id": "<string>",
  "alternate_agency_id": "<string>",
  "contact_id": "<string>"
}
'
import requests

url = "https://dev.intermezzo.ai/organizations/{organization_id}/insurance-details"

payload = {
"valid_from": "2023-12-25",
"valid_to": "2023-12-25",
"insurance_country": "DE",
"company_number": "98797889",
"unrs": "DE987654321",
"accident_insurance_company_number": "98797889",
"accident_insurance_pin": "12345",
"payroll_service_provider_number": "98797889",
"payroll_processing_location_number": "98797889",
"u1_selected": False,
"u2_selected": False,
"u3_selected": False,
"agency_id": "<string>",
"alternate_agency_id": "<string>",
"contact_id": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
valid_from: '2023-12-25',
valid_to: '2023-12-25',
insurance_country: 'DE',
company_number: '98797889',
unrs: 'DE987654321',
accident_insurance_company_number: '98797889',
accident_insurance_pin: '12345',
payroll_service_provider_number: '98797889',
payroll_processing_location_number: '98797889',
u1_selected: false,
u2_selected: false,
u3_selected: false,
agency_id: '<string>',
alternate_agency_id: '<string>',
contact_id: '<string>'
})
};

fetch('https://dev.intermezzo.ai/organizations/{organization_id}/insurance-details', 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}/insurance-details",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'valid_from' => '2023-12-25',
'valid_to' => '2023-12-25',
'insurance_country' => 'DE',
'company_number' => '98797889',
'unrs' => 'DE987654321',
'accident_insurance_company_number' => '98797889',
'accident_insurance_pin' => '12345',
'payroll_service_provider_number' => '98797889',
'payroll_processing_location_number' => '98797889',
'u1_selected' => false,
'u2_selected' => false,
'u3_selected' => false,
'agency_id' => '<string>',
'alternate_agency_id' => '<string>',
'contact_id' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

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

func main() {

url := "https://dev.intermezzo.ai/organizations/{organization_id}/insurance-details"

payload := strings.NewReader("{\n \"valid_from\": \"2023-12-25\",\n \"valid_to\": \"2023-12-25\",\n \"insurance_country\": \"DE\",\n \"company_number\": \"98797889\",\n \"unrs\": \"DE987654321\",\n \"accident_insurance_company_number\": \"98797889\",\n \"accident_insurance_pin\": \"12345\",\n \"payroll_service_provider_number\": \"98797889\",\n \"payroll_processing_location_number\": \"98797889\",\n \"u1_selected\": false,\n \"u2_selected\": false,\n \"u3_selected\": false,\n \"agency_id\": \"<string>\",\n \"alternate_agency_id\": \"<string>\",\n \"contact_id\": \"<string>\"\n}")

req, _ := http.NewRequest("POST", url, payload)

req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")

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

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

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.post("https://dev.intermezzo.ai/organizations/{organization_id}/insurance-details")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"valid_from\": \"2023-12-25\",\n \"valid_to\": \"2023-12-25\",\n \"insurance_country\": \"DE\",\n \"company_number\": \"98797889\",\n \"unrs\": \"DE987654321\",\n \"accident_insurance_company_number\": \"98797889\",\n \"accident_insurance_pin\": \"12345\",\n \"payroll_service_provider_number\": \"98797889\",\n \"payroll_processing_location_number\": \"98797889\",\n \"u1_selected\": false,\n \"u2_selected\": false,\n \"u3_selected\": false,\n \"agency_id\": \"<string>\",\n \"alternate_agency_id\": \"<string>\",\n \"contact_id\": \"<string>\"\n}")
.asString();
require 'uri'
require 'net/http'

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

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

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"valid_from\": \"2023-12-25\",\n \"valid_to\": \"2023-12-25\",\n \"insurance_country\": \"DE\",\n \"company_number\": \"98797889\",\n \"unrs\": \"DE987654321\",\n \"accident_insurance_company_number\": \"98797889\",\n \"accident_insurance_pin\": \"12345\",\n \"payroll_service_provider_number\": \"98797889\",\n \"payroll_processing_location_number\": \"98797889\",\n \"u1_selected\": false,\n \"u2_selected\": false,\n \"u3_selected\": false,\n \"agency_id\": \"<string>\",\n \"alternate_agency_id\": \"<string>\",\n \"contact_id\": \"<string>\"\n}"

response = http.request(request)
puts response.read_body
{
  "id": 123,
  "valid_from": "2023-12-25",
  "valid_to": "2023-12-25",
  "insurance_country": "DE",
  "company_number": "98797889",
  "unrs": "DE987654321",
  "accident_insurance_company_number": "98797889",
  "accident_insurance_pin": "12345",
  "payroll_service_provider_number": "98797889",
  "payroll_processing_location_number": "98797889",
  "u1_selected": false,
  "u2_selected": false,
  "u3_selected": false,
  "agency_id": "<string>",
  "alternate_agency_id": "<string>",
  "contact_id": "<string>"
}
{
"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

Body

application/json
valid_from
string<date> | null
valid_to
string<date> | null
insurance_country
string
default:DE
Allowed value: "DE"
company_number
string | null

German Betriebsnummer (8 digits: xxx-yyyy-z format)

Example:

"98797889"

unrs
string | null

German UNR.S (15 digits: company number + check digit + identifier)

Example:

"DE987654321"

accident_insurance_company_number
string | null

German Betriebsnummer (8 digits: xxx-yyyy-z format)

Example:

"98797889"

accident_insurance_pin
string | null

German accident insurance PIN (5 digits)

Example:

"12345"

payroll_service_provider_number
string | null

German Betriebsnummer (8 digits: xxx-yyyy-z format)

Example:

"98797889"

payroll_processing_location_number
string | null

German Betriebsnummer (8 digits: xxx-yyyy-z format)

Example:

"98797889"

economic_sector
enum<integer> | null

DE: Wirtschaftssektor

Available options:
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
21,
22
u1_selected
boolean
default:false
u2_selected
boolean
default:false
u3_selected
boolean
default:false
agency_id
string | null
alternate_agency_id
string | null
contact_id

Response

Successful Response

id
integer
required
valid_from
string<date> | null
valid_to
string<date> | null
insurance_country
string
default:DE
Allowed value: "DE"
company_number
string | null

German Betriebsnummer (8 digits: xxx-yyyy-z format)

Pattern: ^\d{8}$
Example:

"98797889"

unrs
string | null

German UNR.S (15 digits: company number + check digit + identifier)

Pattern: ^\d{15}$
Example:

"DE987654321"

accident_insurance_company_number
string | null

German Betriebsnummer (8 digits: xxx-yyyy-z format)

Pattern: ^\d{8}$
Example:

"98797889"

accident_insurance_pin
string | null

German accident insurance PIN (5 digits)

Pattern: ^\d{5}$
Example:

"12345"

payroll_service_provider_number
string | null

German Betriebsnummer (8 digits: xxx-yyyy-z format)

Pattern: ^\d{8}$
Example:

"98797889"

payroll_processing_location_number
string | null

German Betriebsnummer (8 digits: xxx-yyyy-z format)

Pattern: ^\d{8}$
Example:

"98797889"

economic_sector
enum<integer> | null

DE: Wirtschaftssektor

Available options:
1,
2,
3,
4,
5,
6,
7,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
21,
22
u1_selected
boolean
default:false
u2_selected
boolean
default:false
u3_selected
boolean
default:false
agency_id
string | null
alternate_agency_id
string | null
contact_id
string | null