Create Orgs Bulk
curl --request POST \
--url https://dev.intermezzo.ai/organizations/list \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
[
{
"legal_name": "<string>",
"bank_accounts": [
{
"financial_institution_name": "<string>",
"account_number": "DE: DE89370400440532013000",
"routing_number": "DE: 370400440",
"iban": "DE: DE89370400440532013000",
"swift_code": "DE: COBADEFFXXX",
"account_details": {},
"is_active": true,
"is_primary": false
}
],
"preferences": {
"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
},
"validate_legal_name_against_blacklist": true,
"registration_country": "DE",
"correspondence_address": {
"address": "<string>",
"content": {
"country_code": "DE",
"address_type": "HAUSANSCHRIFT"
}
},
"dba_name": "<string>",
"incorporation_date": "2023-12-25",
"website": "<string>",
"external_ref": "<string>",
"valid_from": "2023-12-25",
"valid_to": "2023-12-25",
"work_sites": [
{
"name": "<string>",
"address": {
"address": "<string>",
"content": {
"country_code": "DE",
"address_type": "HAUSANSCHRIFT"
}
},
"is_active": true,
"is_primary": true,
"valid_from": "2023-12-25",
"correspondence_address": {
"address": "<string>",
"content": {
"country_code": "DE",
"address_type": "HAUSANSCHRIFT"
}
},
"valid_to": "2023-12-25",
"contacts": [
{
"name": "<string>",
"email": "jsmith@example.com",
"phone": {
"phone_number": "<string>"
},
"roles": []
}
],
"tax_identifiers": {
"valid_from": "2023-12-25",
"valid_to": "2023-12-25",
"tax_data": {
"country": "<string>",
"valid_from": "2023-12-25",
"valid_to": "2023-12-25",
"tax_number": "<string>",
"is_employee_flat_tax": false,
"is_employee_mini_job_flat_tax": false
}
},
"insurance_data": {
"valid_from": "2023-12-25",
"valid_to": "2023-12-25",
"insurance_country": "DE",
"worksite_location_number": "98797889",
"accident_insurance_company_number": "98797889",
"accident_insurance_pin": "DE-WS-PIN-456",
"payroll_service_provider_number": "98797889",
"payroll_processing_location_number": "98797889"
}
}
],
"contacts": [
{
"name": "<string>",
"email": "jsmith@example.com",
"phone": {
"phone_number": "<string>"
},
"roles": []
}
],
"sepa_mandates": [
{
"creditor_id": "<string>",
"bank_account_id": "<string>",
"valid_from": "2023-12-25",
"valid_to": "2023-12-25",
"mandate_reference": "<string>",
"is_recurring": true
}
],
"insurance_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>"
},
"tax_identifiers": {
"valid_from": "2023-12-25",
"valid_to": "2023-12-25",
"tax_data": {
"country": "<string>",
"valid_from": "2023-12-25",
"valid_to": "2023-12-25",
"tax_number": "<string>",
"is_employee_flat_tax": false,
"is_employee_mini_job_flat_tax": false
}
}
}
]
'import requests
url = "https://dev.intermezzo.ai/organizations/list"
payload = [
{
"legal_name": "<string>",
"bank_accounts": [
{
"financial_institution_name": "<string>",
"account_number": "DE: DE89370400440532013000",
"routing_number": "DE: 370400440",
"iban": "DE: DE89370400440532013000",
"swift_code": "DE: COBADEFFXXX",
"account_details": {},
"is_active": True,
"is_primary": False
}
],
"preferences": {
"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
},
"validate_legal_name_against_blacklist": True,
"registration_country": "DE",
"correspondence_address": {
"address": "<string>",
"content": {
"country_code": "DE",
"address_type": "HAUSANSCHRIFT"
}
},
"dba_name": "<string>",
"incorporation_date": "2023-12-25",
"website": "<string>",
"external_ref": "<string>",
"valid_from": "2023-12-25",
"valid_to": "2023-12-25",
"work_sites": [
{
"name": "<string>",
"address": {
"address": "<string>",
"content": {
"country_code": "DE",
"address_type": "HAUSANSCHRIFT"
}
},
"is_active": True,
"is_primary": True,
"valid_from": "2023-12-25",
"correspondence_address": {
"address": "<string>",
"content": {
"country_code": "DE",
"address_type": "HAUSANSCHRIFT"
}
},
"valid_to": "2023-12-25",
"contacts": [
{
"name": "<string>",
"email": "jsmith@example.com",
"phone": { "phone_number": "<string>" },
"roles": []
}
],
"tax_identifiers": {
"valid_from": "2023-12-25",
"valid_to": "2023-12-25",
"tax_data": {
"country": "<string>",
"valid_from": "2023-12-25",
"valid_to": "2023-12-25",
"tax_number": "<string>",
"is_employee_flat_tax": False,
"is_employee_mini_job_flat_tax": False
}
},
"insurance_data": {
"valid_from": "2023-12-25",
"valid_to": "2023-12-25",
"insurance_country": "DE",
"worksite_location_number": "98797889",
"accident_insurance_company_number": "98797889",
"accident_insurance_pin": "DE-WS-PIN-456",
"payroll_service_provider_number": "98797889",
"payroll_processing_location_number": "98797889"
}
}
],
"contacts": [
{
"name": "<string>",
"email": "jsmith@example.com",
"phone": { "phone_number": "<string>" },
"roles": []
}
],
"sepa_mandates": [
{
"creditor_id": "<string>",
"bank_account_id": "<string>",
"valid_from": "2023-12-25",
"valid_to": "2023-12-25",
"mandate_reference": "<string>",
"is_recurring": True
}
],
"insurance_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>"
},
"tax_identifiers": {
"valid_from": "2023-12-25",
"valid_to": "2023-12-25",
"tax_data": {
"country": "<string>",
"valid_from": "2023-12-25",
"valid_to": "2023-12-25",
"tax_number": "<string>",
"is_employee_flat_tax": False,
"is_employee_mini_job_flat_tax": False
}
}
}
]
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([
{
legal_name: '<string>',
bank_accounts: [
{
financial_institution_name: '<string>',
account_number: 'DE: DE89370400440532013000',
routing_number: 'DE: 370400440',
iban: 'DE: DE89370400440532013000',
swift_code: 'DE: COBADEFFXXX',
account_details: {},
is_active: true,
is_primary: false
}
],
preferences: {
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
},
validate_legal_name_against_blacklist: true,
registration_country: 'DE',
correspondence_address: {
address: '<string>',
content: {country_code: 'DE', address_type: 'HAUSANSCHRIFT'}
},
dba_name: '<string>',
incorporation_date: '2023-12-25',
website: '<string>',
external_ref: '<string>',
valid_from: '2023-12-25',
valid_to: '2023-12-25',
work_sites: [
{
name: '<string>',
address: {
address: '<string>',
content: {country_code: 'DE', address_type: 'HAUSANSCHRIFT'}
},
is_active: true,
is_primary: true,
valid_from: '2023-12-25',
correspondence_address: {
address: '<string>',
content: {country_code: 'DE', address_type: 'HAUSANSCHRIFT'}
},
valid_to: '2023-12-25',
contacts: [
{
name: '<string>',
email: 'jsmith@example.com',
phone: {phone_number: '<string>'},
roles: []
}
],
tax_identifiers: {
valid_from: '2023-12-25',
valid_to: '2023-12-25',
tax_data: {
country: '<string>',
valid_from: '2023-12-25',
valid_to: '2023-12-25',
tax_number: '<string>',
is_employee_flat_tax: false,
is_employee_mini_job_flat_tax: false
}
},
insurance_data: {
valid_from: '2023-12-25',
valid_to: '2023-12-25',
insurance_country: 'DE',
worksite_location_number: '98797889',
accident_insurance_company_number: '98797889',
accident_insurance_pin: 'DE-WS-PIN-456',
payroll_service_provider_number: '98797889',
payroll_processing_location_number: '98797889'
}
}
],
contacts: [
{
name: '<string>',
email: 'jsmith@example.com',
phone: {phone_number: '<string>'},
roles: []
}
],
sepa_mandates: [
{
creditor_id: '<string>',
bank_account_id: '<string>',
valid_from: '2023-12-25',
valid_to: '2023-12-25',
mandate_reference: '<string>',
is_recurring: true
}
],
insurance_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>'
},
tax_identifiers: {
valid_from: '2023-12-25',
valid_to: '2023-12-25',
tax_data: {
country: '<string>',
valid_from: '2023-12-25',
valid_to: '2023-12-25',
tax_number: '<string>',
is_employee_flat_tax: false,
is_employee_mini_job_flat_tax: false
}
}
}
])
};
fetch('https://dev.intermezzo.ai/organizations/list', 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/list",
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([
[
'legal_name' => '<string>',
'bank_accounts' => [
[
'financial_institution_name' => '<string>',
'account_number' => 'DE: DE89370400440532013000',
'routing_number' => 'DE: 370400440',
'iban' => 'DE: DE89370400440532013000',
'swift_code' => 'DE: COBADEFFXXX',
'account_details' => [
],
'is_active' => true,
'is_primary' => false
]
],
'preferences' => [
'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
],
'validate_legal_name_against_blacklist' => true,
'registration_country' => 'DE',
'correspondence_address' => [
'address' => '<string>',
'content' => [
'country_code' => 'DE',
'address_type' => 'HAUSANSCHRIFT'
]
],
'dba_name' => '<string>',
'incorporation_date' => '2023-12-25',
'website' => '<string>',
'external_ref' => '<string>',
'valid_from' => '2023-12-25',
'valid_to' => '2023-12-25',
'work_sites' => [
[
'name' => '<string>',
'address' => [
'address' => '<string>',
'content' => [
'country_code' => 'DE',
'address_type' => 'HAUSANSCHRIFT'
]
],
'is_active' => true,
'is_primary' => true,
'valid_from' => '2023-12-25',
'correspondence_address' => [
'address' => '<string>',
'content' => [
'country_code' => 'DE',
'address_type' => 'HAUSANSCHRIFT'
]
],
'valid_to' => '2023-12-25',
'contacts' => [
[
'name' => '<string>',
'email' => 'jsmith@example.com',
'phone' => [
'phone_number' => '<string>'
],
'roles' => [
]
]
],
'tax_identifiers' => [
'valid_from' => '2023-12-25',
'valid_to' => '2023-12-25',
'tax_data' => [
'country' => '<string>',
'valid_from' => '2023-12-25',
'valid_to' => '2023-12-25',
'tax_number' => '<string>',
'is_employee_flat_tax' => false,
'is_employee_mini_job_flat_tax' => false
]
],
'insurance_data' => [
'valid_from' => '2023-12-25',
'valid_to' => '2023-12-25',
'insurance_country' => 'DE',
'worksite_location_number' => '98797889',
'accident_insurance_company_number' => '98797889',
'accident_insurance_pin' => 'DE-WS-PIN-456',
'payroll_service_provider_number' => '98797889',
'payroll_processing_location_number' => '98797889'
]
]
],
'contacts' => [
[
'name' => '<string>',
'email' => 'jsmith@example.com',
'phone' => [
'phone_number' => '<string>'
],
'roles' => [
]
]
],
'sepa_mandates' => [
[
'creditor_id' => '<string>',
'bank_account_id' => '<string>',
'valid_from' => '2023-12-25',
'valid_to' => '2023-12-25',
'mandate_reference' => '<string>',
'is_recurring' => true
]
],
'insurance_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>'
],
'tax_identifiers' => [
'valid_from' => '2023-12-25',
'valid_to' => '2023-12-25',
'tax_data' => [
'country' => '<string>',
'valid_from' => '2023-12-25',
'valid_to' => '2023-12-25',
'tax_number' => '<string>',
'is_employee_flat_tax' => false,
'is_employee_mini_job_flat_tax' => false
]
]
]
]),
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/list"
payload := strings.NewReader("[\n {\n \"legal_name\": \"<string>\",\n \"bank_accounts\": [\n {\n \"financial_institution_name\": \"<string>\",\n \"account_number\": \"DE: DE89370400440532013000\",\n \"routing_number\": \"DE: 370400440\",\n \"iban\": \"DE: DE89370400440532013000\",\n \"swift_code\": \"DE: COBADEFFXXX\",\n \"account_details\": {},\n \"is_active\": true,\n \"is_primary\": false\n }\n ],\n \"preferences\": {\n \"valid_from\": \"2023-12-25\",\n \"valid_to\": \"2023-12-25\",\n \"is_insolvent\": false,\n \"insolvency_start_date\": \"2023-12-25\",\n \"insolvency_end_date\": \"2023-12-25\",\n \"insolvency_company_number\": \"<string>\",\n \"extra_paid_leave_days\": 123,\n \"first_payroll_date\": \"2023-12-25\",\n \"last_payroll_date\": \"2023-12-25\",\n \"first_payroll_intermezzo\": \"2023-12-25\",\n \"logo_id\": \"<string>\",\n \"preferences_country\": \"DE\",\n \"insurance_credit_preference\": \"<string>\",\n \"days_for_sickness_certificate\": 4\n },\n \"validate_legal_name_against_blacklist\": true,\n \"registration_country\": \"DE\",\n \"correspondence_address\": {\n \"address\": \"<string>\",\n \"content\": {\n \"country_code\": \"DE\",\n \"address_type\": \"HAUSANSCHRIFT\"\n }\n },\n \"dba_name\": \"<string>\",\n \"incorporation_date\": \"2023-12-25\",\n \"website\": \"<string>\",\n \"external_ref\": \"<string>\",\n \"valid_from\": \"2023-12-25\",\n \"valid_to\": \"2023-12-25\",\n \"work_sites\": [\n {\n \"name\": \"<string>\",\n \"address\": {\n \"address\": \"<string>\",\n \"content\": {\n \"country_code\": \"DE\",\n \"address_type\": \"HAUSANSCHRIFT\"\n }\n },\n \"is_active\": true,\n \"is_primary\": true,\n \"valid_from\": \"2023-12-25\",\n \"correspondence_address\": {\n \"address\": \"<string>\",\n \"content\": {\n \"country_code\": \"DE\",\n \"address_type\": \"HAUSANSCHRIFT\"\n }\n },\n \"valid_to\": \"2023-12-25\",\n \"contacts\": [\n {\n \"name\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"phone\": {\n \"phone_number\": \"<string>\"\n },\n \"roles\": []\n }\n ],\n \"tax_identifiers\": {\n \"valid_from\": \"2023-12-25\",\n \"valid_to\": \"2023-12-25\",\n \"tax_data\": {\n \"country\": \"<string>\",\n \"valid_from\": \"2023-12-25\",\n \"valid_to\": \"2023-12-25\",\n \"tax_number\": \"<string>\",\n \"is_employee_flat_tax\": false,\n \"is_employee_mini_job_flat_tax\": false\n }\n },\n \"insurance_data\": {\n \"valid_from\": \"2023-12-25\",\n \"valid_to\": \"2023-12-25\",\n \"insurance_country\": \"DE\",\n \"worksite_location_number\": \"98797889\",\n \"accident_insurance_company_number\": \"98797889\",\n \"accident_insurance_pin\": \"DE-WS-PIN-456\",\n \"payroll_service_provider_number\": \"98797889\",\n \"payroll_processing_location_number\": \"98797889\"\n }\n }\n ],\n \"contacts\": [\n {\n \"name\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"phone\": {\n \"phone_number\": \"<string>\"\n },\n \"roles\": []\n }\n ],\n \"sepa_mandates\": [\n {\n \"creditor_id\": \"<string>\",\n \"bank_account_id\": \"<string>\",\n \"valid_from\": \"2023-12-25\",\n \"valid_to\": \"2023-12-25\",\n \"mandate_reference\": \"<string>\",\n \"is_recurring\": true\n }\n ],\n \"insurance_data\": {\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 },\n \"tax_identifiers\": {\n \"valid_from\": \"2023-12-25\",\n \"valid_to\": \"2023-12-25\",\n \"tax_data\": {\n \"country\": \"<string>\",\n \"valid_from\": \"2023-12-25\",\n \"valid_to\": \"2023-12-25\",\n \"tax_number\": \"<string>\",\n \"is_employee_flat_tax\": false,\n \"is_employee_mini_job_flat_tax\": false\n }\n }\n }\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/list")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("[\n {\n \"legal_name\": \"<string>\",\n \"bank_accounts\": [\n {\n \"financial_institution_name\": \"<string>\",\n \"account_number\": \"DE: DE89370400440532013000\",\n \"routing_number\": \"DE: 370400440\",\n \"iban\": \"DE: DE89370400440532013000\",\n \"swift_code\": \"DE: COBADEFFXXX\",\n \"account_details\": {},\n \"is_active\": true,\n \"is_primary\": false\n }\n ],\n \"preferences\": {\n \"valid_from\": \"2023-12-25\",\n \"valid_to\": \"2023-12-25\",\n \"is_insolvent\": false,\n \"insolvency_start_date\": \"2023-12-25\",\n \"insolvency_end_date\": \"2023-12-25\",\n \"insolvency_company_number\": \"<string>\",\n \"extra_paid_leave_days\": 123,\n \"first_payroll_date\": \"2023-12-25\",\n \"last_payroll_date\": \"2023-12-25\",\n \"first_payroll_intermezzo\": \"2023-12-25\",\n \"logo_id\": \"<string>\",\n \"preferences_country\": \"DE\",\n \"insurance_credit_preference\": \"<string>\",\n \"days_for_sickness_certificate\": 4\n },\n \"validate_legal_name_against_blacklist\": true,\n \"registration_country\": \"DE\",\n \"correspondence_address\": {\n \"address\": \"<string>\",\n \"content\": {\n \"country_code\": \"DE\",\n \"address_type\": \"HAUSANSCHRIFT\"\n }\n },\n \"dba_name\": \"<string>\",\n \"incorporation_date\": \"2023-12-25\",\n \"website\": \"<string>\",\n \"external_ref\": \"<string>\",\n \"valid_from\": \"2023-12-25\",\n \"valid_to\": \"2023-12-25\",\n \"work_sites\": [\n {\n \"name\": \"<string>\",\n \"address\": {\n \"address\": \"<string>\",\n \"content\": {\n \"country_code\": \"DE\",\n \"address_type\": \"HAUSANSCHRIFT\"\n }\n },\n \"is_active\": true,\n \"is_primary\": true,\n \"valid_from\": \"2023-12-25\",\n \"correspondence_address\": {\n \"address\": \"<string>\",\n \"content\": {\n \"country_code\": \"DE\",\n \"address_type\": \"HAUSANSCHRIFT\"\n }\n },\n \"valid_to\": \"2023-12-25\",\n \"contacts\": [\n {\n \"name\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"phone\": {\n \"phone_number\": \"<string>\"\n },\n \"roles\": []\n }\n ],\n \"tax_identifiers\": {\n \"valid_from\": \"2023-12-25\",\n \"valid_to\": \"2023-12-25\",\n \"tax_data\": {\n \"country\": \"<string>\",\n \"valid_from\": \"2023-12-25\",\n \"valid_to\": \"2023-12-25\",\n \"tax_number\": \"<string>\",\n \"is_employee_flat_tax\": false,\n \"is_employee_mini_job_flat_tax\": false\n }\n },\n \"insurance_data\": {\n \"valid_from\": \"2023-12-25\",\n \"valid_to\": \"2023-12-25\",\n \"insurance_country\": \"DE\",\n \"worksite_location_number\": \"98797889\",\n \"accident_insurance_company_number\": \"98797889\",\n \"accident_insurance_pin\": \"DE-WS-PIN-456\",\n \"payroll_service_provider_number\": \"98797889\",\n \"payroll_processing_location_number\": \"98797889\"\n }\n }\n ],\n \"contacts\": [\n {\n \"name\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"phone\": {\n \"phone_number\": \"<string>\"\n },\n \"roles\": []\n }\n ],\n \"sepa_mandates\": [\n {\n \"creditor_id\": \"<string>\",\n \"bank_account_id\": \"<string>\",\n \"valid_from\": \"2023-12-25\",\n \"valid_to\": \"2023-12-25\",\n \"mandate_reference\": \"<string>\",\n \"is_recurring\": true\n }\n ],\n \"insurance_data\": {\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 },\n \"tax_identifiers\": {\n \"valid_from\": \"2023-12-25\",\n \"valid_to\": \"2023-12-25\",\n \"tax_data\": {\n \"country\": \"<string>\",\n \"valid_from\": \"2023-12-25\",\n \"valid_to\": \"2023-12-25\",\n \"tax_number\": \"<string>\",\n \"is_employee_flat_tax\": false,\n \"is_employee_mini_job_flat_tax\": false\n }\n }\n }\n]")
.asString();require 'uri'
require 'net/http'
url = URI("https://dev.intermezzo.ai/organizations/list")
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 {\n \"legal_name\": \"<string>\",\n \"bank_accounts\": [\n {\n \"financial_institution_name\": \"<string>\",\n \"account_number\": \"DE: DE89370400440532013000\",\n \"routing_number\": \"DE: 370400440\",\n \"iban\": \"DE: DE89370400440532013000\",\n \"swift_code\": \"DE: COBADEFFXXX\",\n \"account_details\": {},\n \"is_active\": true,\n \"is_primary\": false\n }\n ],\n \"preferences\": {\n \"valid_from\": \"2023-12-25\",\n \"valid_to\": \"2023-12-25\",\n \"is_insolvent\": false,\n \"insolvency_start_date\": \"2023-12-25\",\n \"insolvency_end_date\": \"2023-12-25\",\n \"insolvency_company_number\": \"<string>\",\n \"extra_paid_leave_days\": 123,\n \"first_payroll_date\": \"2023-12-25\",\n \"last_payroll_date\": \"2023-12-25\",\n \"first_payroll_intermezzo\": \"2023-12-25\",\n \"logo_id\": \"<string>\",\n \"preferences_country\": \"DE\",\n \"insurance_credit_preference\": \"<string>\",\n \"days_for_sickness_certificate\": 4\n },\n \"validate_legal_name_against_blacklist\": true,\n \"registration_country\": \"DE\",\n \"correspondence_address\": {\n \"address\": \"<string>\",\n \"content\": {\n \"country_code\": \"DE\",\n \"address_type\": \"HAUSANSCHRIFT\"\n }\n },\n \"dba_name\": \"<string>\",\n \"incorporation_date\": \"2023-12-25\",\n \"website\": \"<string>\",\n \"external_ref\": \"<string>\",\n \"valid_from\": \"2023-12-25\",\n \"valid_to\": \"2023-12-25\",\n \"work_sites\": [\n {\n \"name\": \"<string>\",\n \"address\": {\n \"address\": \"<string>\",\n \"content\": {\n \"country_code\": \"DE\",\n \"address_type\": \"HAUSANSCHRIFT\"\n }\n },\n \"is_active\": true,\n \"is_primary\": true,\n \"valid_from\": \"2023-12-25\",\n \"correspondence_address\": {\n \"address\": \"<string>\",\n \"content\": {\n \"country_code\": \"DE\",\n \"address_type\": \"HAUSANSCHRIFT\"\n }\n },\n \"valid_to\": \"2023-12-25\",\n \"contacts\": [\n {\n \"name\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"phone\": {\n \"phone_number\": \"<string>\"\n },\n \"roles\": []\n }\n ],\n \"tax_identifiers\": {\n \"valid_from\": \"2023-12-25\",\n \"valid_to\": \"2023-12-25\",\n \"tax_data\": {\n \"country\": \"<string>\",\n \"valid_from\": \"2023-12-25\",\n \"valid_to\": \"2023-12-25\",\n \"tax_number\": \"<string>\",\n \"is_employee_flat_tax\": false,\n \"is_employee_mini_job_flat_tax\": false\n }\n },\n \"insurance_data\": {\n \"valid_from\": \"2023-12-25\",\n \"valid_to\": \"2023-12-25\",\n \"insurance_country\": \"DE\",\n \"worksite_location_number\": \"98797889\",\n \"accident_insurance_company_number\": \"98797889\",\n \"accident_insurance_pin\": \"DE-WS-PIN-456\",\n \"payroll_service_provider_number\": \"98797889\",\n \"payroll_processing_location_number\": \"98797889\"\n }\n }\n ],\n \"contacts\": [\n {\n \"name\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"phone\": {\n \"phone_number\": \"<string>\"\n },\n \"roles\": []\n }\n ],\n \"sepa_mandates\": [\n {\n \"creditor_id\": \"<string>\",\n \"bank_account_id\": \"<string>\",\n \"valid_from\": \"2023-12-25\",\n \"valid_to\": \"2023-12-25\",\n \"mandate_reference\": \"<string>\",\n \"is_recurring\": true\n }\n ],\n \"insurance_data\": {\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 },\n \"tax_identifiers\": {\n \"valid_from\": \"2023-12-25\",\n \"valid_to\": \"2023-12-25\",\n \"tax_data\": {\n \"country\": \"<string>\",\n \"valid_from\": \"2023-12-25\",\n \"valid_to\": \"2023-12-25\",\n \"tax_number\": \"<string>\",\n \"is_employee_flat_tax\": false,\n \"is_employee_mini_job_flat_tax\": false\n }\n }\n }\n]"
response = http.request(request)
puts response.read_body{
"total": 123,
"succeeded": 123,
"failed": 123,
"unprocessed": 123,
"data": [
{
"legal_name": "<string>",
"address": {
"id": "<string>",
"address": "<string>",
"components": {
"formatted_address": "<string>",
"street_number": "<string>",
"road": "<string>",
"city": "<string>",
"state": "<string>",
"country": "<string>",
"postal_code": "<string>",
"postal_code_suffix": "<string>",
"latitude": 123,
"longitude": 123
},
"content": {
"normalized_address": "<string>",
"country_code": "DE",
"address_type": "HAUSANSCHRIFT"
}
},
"id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"work_sites": [
{
"name": "<string>",
"address": {
"id": "<string>",
"address": "<string>",
"components": {
"formatted_address": "<string>",
"street_number": "<string>",
"road": "<string>",
"city": "<string>",
"state": "<string>",
"country": "<string>",
"postal_code": "<string>",
"postal_code_suffix": "<string>",
"latitude": 123,
"longitude": 123
},
"content": {
"normalized_address": "<string>",
"country_code": "DE",
"address_type": "HAUSANSCHRIFT"
}
},
"is_active": true,
"is_primary": true,
"id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"correspondence_address": {
"id": "<string>",
"address": "<string>",
"components": {
"formatted_address": "<string>",
"street_number": "<string>",
"road": "<string>",
"city": "<string>",
"state": "<string>",
"country": "<string>",
"postal_code": "<string>",
"postal_code_suffix": "<string>",
"latitude": 123,
"longitude": 123
},
"content": {
"normalized_address": "<string>",
"country_code": "DE",
"address_type": "HAUSANSCHRIFT"
}
},
"valid_from": "2023-12-25",
"valid_to": "2023-12-25",
"org_id": "<string>",
"contacts": [
{
"name": "<string>",
"id": "<string>",
"email": "jsmith@example.com",
"phone": {
"phone_number": "<string>"
},
"roles": []
}
],
"tax_identifiers": {
"id": 123,
"valid_from": "2023-12-25",
"valid_to": "2023-12-25",
"tax_data": {
"country": "<string>",
"valid_from": "2023-12-25",
"valid_to": "2023-12-25",
"tax_number": "<string>",
"is_employee_flat_tax": false,
"is_employee_mini_job_flat_tax": false
}
},
"insurance_data": {
"id": 123,
"valid_from": "2023-12-25",
"valid_to": "2023-12-25",
"insurance_country": "DE",
"worksite_location_number": "98797889",
"accident_insurance_company_number": "98797889",
"accident_insurance_pin": "DE-WS-PIN-456",
"payroll_service_provider_number": "98797889",
"payroll_processing_location_number": "98797889"
}
}
],
"bank_accounts": [
{
"financial_institution_name": "<string>",
"id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"account_number": "DE: DE89370400440532013000",
"routing_number": "DE: 370400440",
"iban": "DE: DE89370400440532013000",
"swift_code": "DE: COBADEFFXXX",
"account_details": {},
"is_active": true,
"is_primary": false
}
],
"preferences": {
"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
},
"correspondence_address": {
"id": "<string>",
"address": "<string>",
"components": {
"formatted_address": "<string>",
"street_number": "<string>",
"road": "<string>",
"city": "<string>",
"state": "<string>",
"country": "<string>",
"postal_code": "<string>",
"postal_code_suffix": "<string>",
"latitude": 123,
"longitude": 123
},
"content": {
"normalized_address": "<string>",
"country_code": "DE",
"address_type": "HAUSANSCHRIFT"
}
},
"dba_name": "<string>",
"incorporation_date": "2023-12-25",
"website": "<string>",
"external_ref": "<string>",
"valid_from": "2023-12-25",
"valid_to": "2023-12-25",
"shutdown_date": "2023-12-25",
"contacts": [
{
"name": "<string>",
"id": "<string>",
"email": "jsmith@example.com",
"phone": {
"phone_number": "<string>"
},
"roles": []
}
],
"tax_identifiers": {
"id": 123,
"valid_from": "2023-12-25",
"valid_to": "2023-12-25",
"tax_data": {
"country": "<string>",
"valid_from": "2023-12-25",
"valid_to": "2023-12-25",
"tax_number": "<string>",
"is_employee_flat_tax": false,
"is_employee_mini_job_flat_tax": false
}
},
"insurance_data": {
"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>"
},
"sepa_mandates": [
{
"creditor_id": "<string>",
"bank_account_id": "<string>",
"is_recurring": true,
"id": "<string>",
"created_by": "<string>",
"valid_from": "2023-12-25",
"valid_to": "2023-12-25",
"mandate_reference": "<string>"
}
]
}
],
"errors": [
{
"input_index": 123,
"errors": [
{
"message": "<string>",
"field": "<string>",
"params": {}
}
]
}
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Organizations
Create Orgs Bulk
Create multiple organizations in bulk
POST
/
organizations
/
list
Create Orgs Bulk
curl --request POST \
--url https://dev.intermezzo.ai/organizations/list \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
[
{
"legal_name": "<string>",
"bank_accounts": [
{
"financial_institution_name": "<string>",
"account_number": "DE: DE89370400440532013000",
"routing_number": "DE: 370400440",
"iban": "DE: DE89370400440532013000",
"swift_code": "DE: COBADEFFXXX",
"account_details": {},
"is_active": true,
"is_primary": false
}
],
"preferences": {
"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
},
"validate_legal_name_against_blacklist": true,
"registration_country": "DE",
"correspondence_address": {
"address": "<string>",
"content": {
"country_code": "DE",
"address_type": "HAUSANSCHRIFT"
}
},
"dba_name": "<string>",
"incorporation_date": "2023-12-25",
"website": "<string>",
"external_ref": "<string>",
"valid_from": "2023-12-25",
"valid_to": "2023-12-25",
"work_sites": [
{
"name": "<string>",
"address": {
"address": "<string>",
"content": {
"country_code": "DE",
"address_type": "HAUSANSCHRIFT"
}
},
"is_active": true,
"is_primary": true,
"valid_from": "2023-12-25",
"correspondence_address": {
"address": "<string>",
"content": {
"country_code": "DE",
"address_type": "HAUSANSCHRIFT"
}
},
"valid_to": "2023-12-25",
"contacts": [
{
"name": "<string>",
"email": "jsmith@example.com",
"phone": {
"phone_number": "<string>"
},
"roles": []
}
],
"tax_identifiers": {
"valid_from": "2023-12-25",
"valid_to": "2023-12-25",
"tax_data": {
"country": "<string>",
"valid_from": "2023-12-25",
"valid_to": "2023-12-25",
"tax_number": "<string>",
"is_employee_flat_tax": false,
"is_employee_mini_job_flat_tax": false
}
},
"insurance_data": {
"valid_from": "2023-12-25",
"valid_to": "2023-12-25",
"insurance_country": "DE",
"worksite_location_number": "98797889",
"accident_insurance_company_number": "98797889",
"accident_insurance_pin": "DE-WS-PIN-456",
"payroll_service_provider_number": "98797889",
"payroll_processing_location_number": "98797889"
}
}
],
"contacts": [
{
"name": "<string>",
"email": "jsmith@example.com",
"phone": {
"phone_number": "<string>"
},
"roles": []
}
],
"sepa_mandates": [
{
"creditor_id": "<string>",
"bank_account_id": "<string>",
"valid_from": "2023-12-25",
"valid_to": "2023-12-25",
"mandate_reference": "<string>",
"is_recurring": true
}
],
"insurance_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>"
},
"tax_identifiers": {
"valid_from": "2023-12-25",
"valid_to": "2023-12-25",
"tax_data": {
"country": "<string>",
"valid_from": "2023-12-25",
"valid_to": "2023-12-25",
"tax_number": "<string>",
"is_employee_flat_tax": false,
"is_employee_mini_job_flat_tax": false
}
}
}
]
'import requests
url = "https://dev.intermezzo.ai/organizations/list"
payload = [
{
"legal_name": "<string>",
"bank_accounts": [
{
"financial_institution_name": "<string>",
"account_number": "DE: DE89370400440532013000",
"routing_number": "DE: 370400440",
"iban": "DE: DE89370400440532013000",
"swift_code": "DE: COBADEFFXXX",
"account_details": {},
"is_active": True,
"is_primary": False
}
],
"preferences": {
"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
},
"validate_legal_name_against_blacklist": True,
"registration_country": "DE",
"correspondence_address": {
"address": "<string>",
"content": {
"country_code": "DE",
"address_type": "HAUSANSCHRIFT"
}
},
"dba_name": "<string>",
"incorporation_date": "2023-12-25",
"website": "<string>",
"external_ref": "<string>",
"valid_from": "2023-12-25",
"valid_to": "2023-12-25",
"work_sites": [
{
"name": "<string>",
"address": {
"address": "<string>",
"content": {
"country_code": "DE",
"address_type": "HAUSANSCHRIFT"
}
},
"is_active": True,
"is_primary": True,
"valid_from": "2023-12-25",
"correspondence_address": {
"address": "<string>",
"content": {
"country_code": "DE",
"address_type": "HAUSANSCHRIFT"
}
},
"valid_to": "2023-12-25",
"contacts": [
{
"name": "<string>",
"email": "jsmith@example.com",
"phone": { "phone_number": "<string>" },
"roles": []
}
],
"tax_identifiers": {
"valid_from": "2023-12-25",
"valid_to": "2023-12-25",
"tax_data": {
"country": "<string>",
"valid_from": "2023-12-25",
"valid_to": "2023-12-25",
"tax_number": "<string>",
"is_employee_flat_tax": False,
"is_employee_mini_job_flat_tax": False
}
},
"insurance_data": {
"valid_from": "2023-12-25",
"valid_to": "2023-12-25",
"insurance_country": "DE",
"worksite_location_number": "98797889",
"accident_insurance_company_number": "98797889",
"accident_insurance_pin": "DE-WS-PIN-456",
"payroll_service_provider_number": "98797889",
"payroll_processing_location_number": "98797889"
}
}
],
"contacts": [
{
"name": "<string>",
"email": "jsmith@example.com",
"phone": { "phone_number": "<string>" },
"roles": []
}
],
"sepa_mandates": [
{
"creditor_id": "<string>",
"bank_account_id": "<string>",
"valid_from": "2023-12-25",
"valid_to": "2023-12-25",
"mandate_reference": "<string>",
"is_recurring": True
}
],
"insurance_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>"
},
"tax_identifiers": {
"valid_from": "2023-12-25",
"valid_to": "2023-12-25",
"tax_data": {
"country": "<string>",
"valid_from": "2023-12-25",
"valid_to": "2023-12-25",
"tax_number": "<string>",
"is_employee_flat_tax": False,
"is_employee_mini_job_flat_tax": False
}
}
}
]
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([
{
legal_name: '<string>',
bank_accounts: [
{
financial_institution_name: '<string>',
account_number: 'DE: DE89370400440532013000',
routing_number: 'DE: 370400440',
iban: 'DE: DE89370400440532013000',
swift_code: 'DE: COBADEFFXXX',
account_details: {},
is_active: true,
is_primary: false
}
],
preferences: {
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
},
validate_legal_name_against_blacklist: true,
registration_country: 'DE',
correspondence_address: {
address: '<string>',
content: {country_code: 'DE', address_type: 'HAUSANSCHRIFT'}
},
dba_name: '<string>',
incorporation_date: '2023-12-25',
website: '<string>',
external_ref: '<string>',
valid_from: '2023-12-25',
valid_to: '2023-12-25',
work_sites: [
{
name: '<string>',
address: {
address: '<string>',
content: {country_code: 'DE', address_type: 'HAUSANSCHRIFT'}
},
is_active: true,
is_primary: true,
valid_from: '2023-12-25',
correspondence_address: {
address: '<string>',
content: {country_code: 'DE', address_type: 'HAUSANSCHRIFT'}
},
valid_to: '2023-12-25',
contacts: [
{
name: '<string>',
email: 'jsmith@example.com',
phone: {phone_number: '<string>'},
roles: []
}
],
tax_identifiers: {
valid_from: '2023-12-25',
valid_to: '2023-12-25',
tax_data: {
country: '<string>',
valid_from: '2023-12-25',
valid_to: '2023-12-25',
tax_number: '<string>',
is_employee_flat_tax: false,
is_employee_mini_job_flat_tax: false
}
},
insurance_data: {
valid_from: '2023-12-25',
valid_to: '2023-12-25',
insurance_country: 'DE',
worksite_location_number: '98797889',
accident_insurance_company_number: '98797889',
accident_insurance_pin: 'DE-WS-PIN-456',
payroll_service_provider_number: '98797889',
payroll_processing_location_number: '98797889'
}
}
],
contacts: [
{
name: '<string>',
email: 'jsmith@example.com',
phone: {phone_number: '<string>'},
roles: []
}
],
sepa_mandates: [
{
creditor_id: '<string>',
bank_account_id: '<string>',
valid_from: '2023-12-25',
valid_to: '2023-12-25',
mandate_reference: '<string>',
is_recurring: true
}
],
insurance_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>'
},
tax_identifiers: {
valid_from: '2023-12-25',
valid_to: '2023-12-25',
tax_data: {
country: '<string>',
valid_from: '2023-12-25',
valid_to: '2023-12-25',
tax_number: '<string>',
is_employee_flat_tax: false,
is_employee_mini_job_flat_tax: false
}
}
}
])
};
fetch('https://dev.intermezzo.ai/organizations/list', 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/list",
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([
[
'legal_name' => '<string>',
'bank_accounts' => [
[
'financial_institution_name' => '<string>',
'account_number' => 'DE: DE89370400440532013000',
'routing_number' => 'DE: 370400440',
'iban' => 'DE: DE89370400440532013000',
'swift_code' => 'DE: COBADEFFXXX',
'account_details' => [
],
'is_active' => true,
'is_primary' => false
]
],
'preferences' => [
'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
],
'validate_legal_name_against_blacklist' => true,
'registration_country' => 'DE',
'correspondence_address' => [
'address' => '<string>',
'content' => [
'country_code' => 'DE',
'address_type' => 'HAUSANSCHRIFT'
]
],
'dba_name' => '<string>',
'incorporation_date' => '2023-12-25',
'website' => '<string>',
'external_ref' => '<string>',
'valid_from' => '2023-12-25',
'valid_to' => '2023-12-25',
'work_sites' => [
[
'name' => '<string>',
'address' => [
'address' => '<string>',
'content' => [
'country_code' => 'DE',
'address_type' => 'HAUSANSCHRIFT'
]
],
'is_active' => true,
'is_primary' => true,
'valid_from' => '2023-12-25',
'correspondence_address' => [
'address' => '<string>',
'content' => [
'country_code' => 'DE',
'address_type' => 'HAUSANSCHRIFT'
]
],
'valid_to' => '2023-12-25',
'contacts' => [
[
'name' => '<string>',
'email' => 'jsmith@example.com',
'phone' => [
'phone_number' => '<string>'
],
'roles' => [
]
]
],
'tax_identifiers' => [
'valid_from' => '2023-12-25',
'valid_to' => '2023-12-25',
'tax_data' => [
'country' => '<string>',
'valid_from' => '2023-12-25',
'valid_to' => '2023-12-25',
'tax_number' => '<string>',
'is_employee_flat_tax' => false,
'is_employee_mini_job_flat_tax' => false
]
],
'insurance_data' => [
'valid_from' => '2023-12-25',
'valid_to' => '2023-12-25',
'insurance_country' => 'DE',
'worksite_location_number' => '98797889',
'accident_insurance_company_number' => '98797889',
'accident_insurance_pin' => 'DE-WS-PIN-456',
'payroll_service_provider_number' => '98797889',
'payroll_processing_location_number' => '98797889'
]
]
],
'contacts' => [
[
'name' => '<string>',
'email' => 'jsmith@example.com',
'phone' => [
'phone_number' => '<string>'
],
'roles' => [
]
]
],
'sepa_mandates' => [
[
'creditor_id' => '<string>',
'bank_account_id' => '<string>',
'valid_from' => '2023-12-25',
'valid_to' => '2023-12-25',
'mandate_reference' => '<string>',
'is_recurring' => true
]
],
'insurance_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>'
],
'tax_identifiers' => [
'valid_from' => '2023-12-25',
'valid_to' => '2023-12-25',
'tax_data' => [
'country' => '<string>',
'valid_from' => '2023-12-25',
'valid_to' => '2023-12-25',
'tax_number' => '<string>',
'is_employee_flat_tax' => false,
'is_employee_mini_job_flat_tax' => false
]
]
]
]),
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/list"
payload := strings.NewReader("[\n {\n \"legal_name\": \"<string>\",\n \"bank_accounts\": [\n {\n \"financial_institution_name\": \"<string>\",\n \"account_number\": \"DE: DE89370400440532013000\",\n \"routing_number\": \"DE: 370400440\",\n \"iban\": \"DE: DE89370400440532013000\",\n \"swift_code\": \"DE: COBADEFFXXX\",\n \"account_details\": {},\n \"is_active\": true,\n \"is_primary\": false\n }\n ],\n \"preferences\": {\n \"valid_from\": \"2023-12-25\",\n \"valid_to\": \"2023-12-25\",\n \"is_insolvent\": false,\n \"insolvency_start_date\": \"2023-12-25\",\n \"insolvency_end_date\": \"2023-12-25\",\n \"insolvency_company_number\": \"<string>\",\n \"extra_paid_leave_days\": 123,\n \"first_payroll_date\": \"2023-12-25\",\n \"last_payroll_date\": \"2023-12-25\",\n \"first_payroll_intermezzo\": \"2023-12-25\",\n \"logo_id\": \"<string>\",\n \"preferences_country\": \"DE\",\n \"insurance_credit_preference\": \"<string>\",\n \"days_for_sickness_certificate\": 4\n },\n \"validate_legal_name_against_blacklist\": true,\n \"registration_country\": \"DE\",\n \"correspondence_address\": {\n \"address\": \"<string>\",\n \"content\": {\n \"country_code\": \"DE\",\n \"address_type\": \"HAUSANSCHRIFT\"\n }\n },\n \"dba_name\": \"<string>\",\n \"incorporation_date\": \"2023-12-25\",\n \"website\": \"<string>\",\n \"external_ref\": \"<string>\",\n \"valid_from\": \"2023-12-25\",\n \"valid_to\": \"2023-12-25\",\n \"work_sites\": [\n {\n \"name\": \"<string>\",\n \"address\": {\n \"address\": \"<string>\",\n \"content\": {\n \"country_code\": \"DE\",\n \"address_type\": \"HAUSANSCHRIFT\"\n }\n },\n \"is_active\": true,\n \"is_primary\": true,\n \"valid_from\": \"2023-12-25\",\n \"correspondence_address\": {\n \"address\": \"<string>\",\n \"content\": {\n \"country_code\": \"DE\",\n \"address_type\": \"HAUSANSCHRIFT\"\n }\n },\n \"valid_to\": \"2023-12-25\",\n \"contacts\": [\n {\n \"name\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"phone\": {\n \"phone_number\": \"<string>\"\n },\n \"roles\": []\n }\n ],\n \"tax_identifiers\": {\n \"valid_from\": \"2023-12-25\",\n \"valid_to\": \"2023-12-25\",\n \"tax_data\": {\n \"country\": \"<string>\",\n \"valid_from\": \"2023-12-25\",\n \"valid_to\": \"2023-12-25\",\n \"tax_number\": \"<string>\",\n \"is_employee_flat_tax\": false,\n \"is_employee_mini_job_flat_tax\": false\n }\n },\n \"insurance_data\": {\n \"valid_from\": \"2023-12-25\",\n \"valid_to\": \"2023-12-25\",\n \"insurance_country\": \"DE\",\n \"worksite_location_number\": \"98797889\",\n \"accident_insurance_company_number\": \"98797889\",\n \"accident_insurance_pin\": \"DE-WS-PIN-456\",\n \"payroll_service_provider_number\": \"98797889\",\n \"payroll_processing_location_number\": \"98797889\"\n }\n }\n ],\n \"contacts\": [\n {\n \"name\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"phone\": {\n \"phone_number\": \"<string>\"\n },\n \"roles\": []\n }\n ],\n \"sepa_mandates\": [\n {\n \"creditor_id\": \"<string>\",\n \"bank_account_id\": \"<string>\",\n \"valid_from\": \"2023-12-25\",\n \"valid_to\": \"2023-12-25\",\n \"mandate_reference\": \"<string>\",\n \"is_recurring\": true\n }\n ],\n \"insurance_data\": {\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 },\n \"tax_identifiers\": {\n \"valid_from\": \"2023-12-25\",\n \"valid_to\": \"2023-12-25\",\n \"tax_data\": {\n \"country\": \"<string>\",\n \"valid_from\": \"2023-12-25\",\n \"valid_to\": \"2023-12-25\",\n \"tax_number\": \"<string>\",\n \"is_employee_flat_tax\": false,\n \"is_employee_mini_job_flat_tax\": false\n }\n }\n }\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/list")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("[\n {\n \"legal_name\": \"<string>\",\n \"bank_accounts\": [\n {\n \"financial_institution_name\": \"<string>\",\n \"account_number\": \"DE: DE89370400440532013000\",\n \"routing_number\": \"DE: 370400440\",\n \"iban\": \"DE: DE89370400440532013000\",\n \"swift_code\": \"DE: COBADEFFXXX\",\n \"account_details\": {},\n \"is_active\": true,\n \"is_primary\": false\n }\n ],\n \"preferences\": {\n \"valid_from\": \"2023-12-25\",\n \"valid_to\": \"2023-12-25\",\n \"is_insolvent\": false,\n \"insolvency_start_date\": \"2023-12-25\",\n \"insolvency_end_date\": \"2023-12-25\",\n \"insolvency_company_number\": \"<string>\",\n \"extra_paid_leave_days\": 123,\n \"first_payroll_date\": \"2023-12-25\",\n \"last_payroll_date\": \"2023-12-25\",\n \"first_payroll_intermezzo\": \"2023-12-25\",\n \"logo_id\": \"<string>\",\n \"preferences_country\": \"DE\",\n \"insurance_credit_preference\": \"<string>\",\n \"days_for_sickness_certificate\": 4\n },\n \"validate_legal_name_against_blacklist\": true,\n \"registration_country\": \"DE\",\n \"correspondence_address\": {\n \"address\": \"<string>\",\n \"content\": {\n \"country_code\": \"DE\",\n \"address_type\": \"HAUSANSCHRIFT\"\n }\n },\n \"dba_name\": \"<string>\",\n \"incorporation_date\": \"2023-12-25\",\n \"website\": \"<string>\",\n \"external_ref\": \"<string>\",\n \"valid_from\": \"2023-12-25\",\n \"valid_to\": \"2023-12-25\",\n \"work_sites\": [\n {\n \"name\": \"<string>\",\n \"address\": {\n \"address\": \"<string>\",\n \"content\": {\n \"country_code\": \"DE\",\n \"address_type\": \"HAUSANSCHRIFT\"\n }\n },\n \"is_active\": true,\n \"is_primary\": true,\n \"valid_from\": \"2023-12-25\",\n \"correspondence_address\": {\n \"address\": \"<string>\",\n \"content\": {\n \"country_code\": \"DE\",\n \"address_type\": \"HAUSANSCHRIFT\"\n }\n },\n \"valid_to\": \"2023-12-25\",\n \"contacts\": [\n {\n \"name\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"phone\": {\n \"phone_number\": \"<string>\"\n },\n \"roles\": []\n }\n ],\n \"tax_identifiers\": {\n \"valid_from\": \"2023-12-25\",\n \"valid_to\": \"2023-12-25\",\n \"tax_data\": {\n \"country\": \"<string>\",\n \"valid_from\": \"2023-12-25\",\n \"valid_to\": \"2023-12-25\",\n \"tax_number\": \"<string>\",\n \"is_employee_flat_tax\": false,\n \"is_employee_mini_job_flat_tax\": false\n }\n },\n \"insurance_data\": {\n \"valid_from\": \"2023-12-25\",\n \"valid_to\": \"2023-12-25\",\n \"insurance_country\": \"DE\",\n \"worksite_location_number\": \"98797889\",\n \"accident_insurance_company_number\": \"98797889\",\n \"accident_insurance_pin\": \"DE-WS-PIN-456\",\n \"payroll_service_provider_number\": \"98797889\",\n \"payroll_processing_location_number\": \"98797889\"\n }\n }\n ],\n \"contacts\": [\n {\n \"name\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"phone\": {\n \"phone_number\": \"<string>\"\n },\n \"roles\": []\n }\n ],\n \"sepa_mandates\": [\n {\n \"creditor_id\": \"<string>\",\n \"bank_account_id\": \"<string>\",\n \"valid_from\": \"2023-12-25\",\n \"valid_to\": \"2023-12-25\",\n \"mandate_reference\": \"<string>\",\n \"is_recurring\": true\n }\n ],\n \"insurance_data\": {\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 },\n \"tax_identifiers\": {\n \"valid_from\": \"2023-12-25\",\n \"valid_to\": \"2023-12-25\",\n \"tax_data\": {\n \"country\": \"<string>\",\n \"valid_from\": \"2023-12-25\",\n \"valid_to\": \"2023-12-25\",\n \"tax_number\": \"<string>\",\n \"is_employee_flat_tax\": false,\n \"is_employee_mini_job_flat_tax\": false\n }\n }\n }\n]")
.asString();require 'uri'
require 'net/http'
url = URI("https://dev.intermezzo.ai/organizations/list")
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 {\n \"legal_name\": \"<string>\",\n \"bank_accounts\": [\n {\n \"financial_institution_name\": \"<string>\",\n \"account_number\": \"DE: DE89370400440532013000\",\n \"routing_number\": \"DE: 370400440\",\n \"iban\": \"DE: DE89370400440532013000\",\n \"swift_code\": \"DE: COBADEFFXXX\",\n \"account_details\": {},\n \"is_active\": true,\n \"is_primary\": false\n }\n ],\n \"preferences\": {\n \"valid_from\": \"2023-12-25\",\n \"valid_to\": \"2023-12-25\",\n \"is_insolvent\": false,\n \"insolvency_start_date\": \"2023-12-25\",\n \"insolvency_end_date\": \"2023-12-25\",\n \"insolvency_company_number\": \"<string>\",\n \"extra_paid_leave_days\": 123,\n \"first_payroll_date\": \"2023-12-25\",\n \"last_payroll_date\": \"2023-12-25\",\n \"first_payroll_intermezzo\": \"2023-12-25\",\n \"logo_id\": \"<string>\",\n \"preferences_country\": \"DE\",\n \"insurance_credit_preference\": \"<string>\",\n \"days_for_sickness_certificate\": 4\n },\n \"validate_legal_name_against_blacklist\": true,\n \"registration_country\": \"DE\",\n \"correspondence_address\": {\n \"address\": \"<string>\",\n \"content\": {\n \"country_code\": \"DE\",\n \"address_type\": \"HAUSANSCHRIFT\"\n }\n },\n \"dba_name\": \"<string>\",\n \"incorporation_date\": \"2023-12-25\",\n \"website\": \"<string>\",\n \"external_ref\": \"<string>\",\n \"valid_from\": \"2023-12-25\",\n \"valid_to\": \"2023-12-25\",\n \"work_sites\": [\n {\n \"name\": \"<string>\",\n \"address\": {\n \"address\": \"<string>\",\n \"content\": {\n \"country_code\": \"DE\",\n \"address_type\": \"HAUSANSCHRIFT\"\n }\n },\n \"is_active\": true,\n \"is_primary\": true,\n \"valid_from\": \"2023-12-25\",\n \"correspondence_address\": {\n \"address\": \"<string>\",\n \"content\": {\n \"country_code\": \"DE\",\n \"address_type\": \"HAUSANSCHRIFT\"\n }\n },\n \"valid_to\": \"2023-12-25\",\n \"contacts\": [\n {\n \"name\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"phone\": {\n \"phone_number\": \"<string>\"\n },\n \"roles\": []\n }\n ],\n \"tax_identifiers\": {\n \"valid_from\": \"2023-12-25\",\n \"valid_to\": \"2023-12-25\",\n \"tax_data\": {\n \"country\": \"<string>\",\n \"valid_from\": \"2023-12-25\",\n \"valid_to\": \"2023-12-25\",\n \"tax_number\": \"<string>\",\n \"is_employee_flat_tax\": false,\n \"is_employee_mini_job_flat_tax\": false\n }\n },\n \"insurance_data\": {\n \"valid_from\": \"2023-12-25\",\n \"valid_to\": \"2023-12-25\",\n \"insurance_country\": \"DE\",\n \"worksite_location_number\": \"98797889\",\n \"accident_insurance_company_number\": \"98797889\",\n \"accident_insurance_pin\": \"DE-WS-PIN-456\",\n \"payroll_service_provider_number\": \"98797889\",\n \"payroll_processing_location_number\": \"98797889\"\n }\n }\n ],\n \"contacts\": [\n {\n \"name\": \"<string>\",\n \"email\": \"jsmith@example.com\",\n \"phone\": {\n \"phone_number\": \"<string>\"\n },\n \"roles\": []\n }\n ],\n \"sepa_mandates\": [\n {\n \"creditor_id\": \"<string>\",\n \"bank_account_id\": \"<string>\",\n \"valid_from\": \"2023-12-25\",\n \"valid_to\": \"2023-12-25\",\n \"mandate_reference\": \"<string>\",\n \"is_recurring\": true\n }\n ],\n \"insurance_data\": {\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 },\n \"tax_identifiers\": {\n \"valid_from\": \"2023-12-25\",\n \"valid_to\": \"2023-12-25\",\n \"tax_data\": {\n \"country\": \"<string>\",\n \"valid_from\": \"2023-12-25\",\n \"valid_to\": \"2023-12-25\",\n \"tax_number\": \"<string>\",\n \"is_employee_flat_tax\": false,\n \"is_employee_mini_job_flat_tax\": false\n }\n }\n }\n]"
response = http.request(request)
puts response.read_body{
"total": 123,
"succeeded": 123,
"failed": 123,
"unprocessed": 123,
"data": [
{
"legal_name": "<string>",
"address": {
"id": "<string>",
"address": "<string>",
"components": {
"formatted_address": "<string>",
"street_number": "<string>",
"road": "<string>",
"city": "<string>",
"state": "<string>",
"country": "<string>",
"postal_code": "<string>",
"postal_code_suffix": "<string>",
"latitude": 123,
"longitude": 123
},
"content": {
"normalized_address": "<string>",
"country_code": "DE",
"address_type": "HAUSANSCHRIFT"
}
},
"id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"work_sites": [
{
"name": "<string>",
"address": {
"id": "<string>",
"address": "<string>",
"components": {
"formatted_address": "<string>",
"street_number": "<string>",
"road": "<string>",
"city": "<string>",
"state": "<string>",
"country": "<string>",
"postal_code": "<string>",
"postal_code_suffix": "<string>",
"latitude": 123,
"longitude": 123
},
"content": {
"normalized_address": "<string>",
"country_code": "DE",
"address_type": "HAUSANSCHRIFT"
}
},
"is_active": true,
"is_primary": true,
"id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"correspondence_address": {
"id": "<string>",
"address": "<string>",
"components": {
"formatted_address": "<string>",
"street_number": "<string>",
"road": "<string>",
"city": "<string>",
"state": "<string>",
"country": "<string>",
"postal_code": "<string>",
"postal_code_suffix": "<string>",
"latitude": 123,
"longitude": 123
},
"content": {
"normalized_address": "<string>",
"country_code": "DE",
"address_type": "HAUSANSCHRIFT"
}
},
"valid_from": "2023-12-25",
"valid_to": "2023-12-25",
"org_id": "<string>",
"contacts": [
{
"name": "<string>",
"id": "<string>",
"email": "jsmith@example.com",
"phone": {
"phone_number": "<string>"
},
"roles": []
}
],
"tax_identifiers": {
"id": 123,
"valid_from": "2023-12-25",
"valid_to": "2023-12-25",
"tax_data": {
"country": "<string>",
"valid_from": "2023-12-25",
"valid_to": "2023-12-25",
"tax_number": "<string>",
"is_employee_flat_tax": false,
"is_employee_mini_job_flat_tax": false
}
},
"insurance_data": {
"id": 123,
"valid_from": "2023-12-25",
"valid_to": "2023-12-25",
"insurance_country": "DE",
"worksite_location_number": "98797889",
"accident_insurance_company_number": "98797889",
"accident_insurance_pin": "DE-WS-PIN-456",
"payroll_service_provider_number": "98797889",
"payroll_processing_location_number": "98797889"
}
}
],
"bank_accounts": [
{
"financial_institution_name": "<string>",
"id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"account_number": "DE: DE89370400440532013000",
"routing_number": "DE: 370400440",
"iban": "DE: DE89370400440532013000",
"swift_code": "DE: COBADEFFXXX",
"account_details": {},
"is_active": true,
"is_primary": false
}
],
"preferences": {
"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
},
"correspondence_address": {
"id": "<string>",
"address": "<string>",
"components": {
"formatted_address": "<string>",
"street_number": "<string>",
"road": "<string>",
"city": "<string>",
"state": "<string>",
"country": "<string>",
"postal_code": "<string>",
"postal_code_suffix": "<string>",
"latitude": 123,
"longitude": 123
},
"content": {
"normalized_address": "<string>",
"country_code": "DE",
"address_type": "HAUSANSCHRIFT"
}
},
"dba_name": "<string>",
"incorporation_date": "2023-12-25",
"website": "<string>",
"external_ref": "<string>",
"valid_from": "2023-12-25",
"valid_to": "2023-12-25",
"shutdown_date": "2023-12-25",
"contacts": [
{
"name": "<string>",
"id": "<string>",
"email": "jsmith@example.com",
"phone": {
"phone_number": "<string>"
},
"roles": []
}
],
"tax_identifiers": {
"id": 123,
"valid_from": "2023-12-25",
"valid_to": "2023-12-25",
"tax_data": {
"country": "<string>",
"valid_from": "2023-12-25",
"valid_to": "2023-12-25",
"tax_number": "<string>",
"is_employee_flat_tax": false,
"is_employee_mini_job_flat_tax": false
}
},
"insurance_data": {
"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>"
},
"sepa_mandates": [
{
"creditor_id": "<string>",
"bank_account_id": "<string>",
"is_recurring": true,
"id": "<string>",
"created_by": "<string>",
"valid_from": "2023-12-25",
"valid_to": "2023-12-25",
"mandate_reference": "<string>"
}
]
}
],
"errors": [
{
"input_index": 123,
"errors": [
{
"message": "<string>",
"field": "<string>",
"params": {}
}
]
}
]
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Get token from Auth0 and paste it here
Body
application/json
- DEOrganizationRequest
- GBOrganizationRequest
Show child attributes
Show child attributes
- DEOrganizationPreferencesRequest
- GBOrganizationPreferencesRequest
Show child attributes
Show child attributes
Whether or not the legal name should be checked for terms on blacklist
Allowed value:
"DE"Show child attributes
Show child attributes
Show child attributes
Show child attributes
Maximum string length:
255Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
- DEOrganizationInsuranceDetailsRequest
- GBOrganizationInsuranceDetailsRequest
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Response
Successful Response
Total number of records in the request
Number of successfully processed records
Number of failed records
Number of records that passed validation but were not processed
Successfully processed records
Show child attributes
Show child attributes
Failed records with error details
Show child attributes
Show child attributes
⌘I