Update Org
curl --request PATCH \
--url https://dev.intermezzo.ai/organizations/{organization_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"country_code": "GB",
"legal_name": "<string>",
"address": "<string>",
"correspondence_address": "<string>",
"dba_name": "<string>",
"incorporation_date": "2023-12-25",
"website": "<string>",
"external_ref": "<string>"
}
'import requests
url = "https://dev.intermezzo.ai/organizations/{organization_id}"
payload = {
"country_code": "GB",
"legal_name": "<string>",
"address": "<string>",
"correspondence_address": "<string>",
"dba_name": "<string>",
"incorporation_date": "2023-12-25",
"website": "<string>",
"external_ref": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
country_code: 'GB',
legal_name: '<string>',
address: '<string>',
correspondence_address: '<string>',
dba_name: '<string>',
incorporation_date: '2023-12-25',
website: '<string>',
external_ref: '<string>'
})
};
fetch('https://dev.intermezzo.ai/organizations/{organization_id}', 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}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'country_code' => 'GB',
'legal_name' => '<string>',
'address' => '<string>',
'correspondence_address' => '<string>',
'dba_name' => '<string>',
'incorporation_date' => '2023-12-25',
'website' => '<string>',
'external_ref' => '<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}"
payload := strings.NewReader("{\n \"country_code\": \"GB\",\n \"legal_name\": \"<string>\",\n \"address\": \"<string>\",\n \"correspondence_address\": \"<string>\",\n \"dba_name\": \"<string>\",\n \"incorporation_date\": \"2023-12-25\",\n \"website\": \"<string>\",\n \"external_ref\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://dev.intermezzo.ai/organizations/{organization_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"country_code\": \"GB\",\n \"legal_name\": \"<string>\",\n \"address\": \"<string>\",\n \"correspondence_address\": \"<string>\",\n \"dba_name\": \"<string>\",\n \"incorporation_date\": \"2023-12-25\",\n \"website\": \"<string>\",\n \"external_ref\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://dev.intermezzo.ai/organizations/{organization_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"country_code\": \"GB\",\n \"legal_name\": \"<string>\",\n \"address\": \"<string>\",\n \"correspondence_address\": \"<string>\",\n \"dba_name\": \"<string>\",\n \"incorporation_date\": \"2023-12-25\",\n \"website\": \"<string>\",\n \"external_ref\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"country_code": "IE",
"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": {}
},
"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": {}
},
"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": {}
},
"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>",
"phone_type": "MOBILE"
},
"roles": []
}
],
"tax_identifiers": {
"id": 123,
"valid_from": "2023-12-25",
"valid_to": "2023-12-25",
"tax_data": {
"country_code": "GB",
"business_type": "SOLE_TRADER",
"paye_reference_number": "<string>",
"accounts_office_reference": "<string>",
"valid_from": "2023-12-25",
"valid_to": "2023-12-25",
"corporation_tax_reference": "<string>"
}
},
"insurance_data": {
"id": 123,
"valid_from": "2023-12-25",
"valid_to": "2023-12-25",
"country_code": "GB"
}
}
],
"bank_accounts": [
{
"financial_institution_name": "Lloyds Bank",
"id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"account_number": "31926819",
"routing_number": "226073523",
"iban": "GB29NWBK60161331926819",
"swift_code": "NWBK6016",
"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>",
"insurance_subsidy_method": "REMUNERATION",
"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>",
"country_code": "GB",
"sender_id": "<string>",
"sender_pass": "<string>",
"sender_email": "<string>",
"sender_type": "EMPLOYER",
"ea_eligible": false,
"ea_annual_allowance": "10500",
"bacs_sun": "<string>",
"proration_basis": {
"mode": "CALENDAR_DAY",
"business_days_per_year": "<string>"
}
},
"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": {}
},
"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>",
"phone_type": "MOBILE"
},
"roles": []
}
],
"tax_identifiers": {
"id": 123,
"valid_from": "2023-12-25",
"valid_to": "2023-12-25",
"tax_data": {
"country_code": "GB",
"business_type": "SOLE_TRADER",
"paye_reference_number": "<string>",
"accounts_office_reference": "<string>",
"valid_from": "2023-12-25",
"valid_to": "2023-12-25",
"corporation_tax_reference": "<string>"
}
},
"insurance_data": {
"id": 123,
"valid_from": "2023-12-25",
"valid_to": "2023-12-25",
"country_code": "GB"
}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Organizations
Update Org
PATCH
/
organizations
/
{organization_id}
Update Org
curl --request PATCH \
--url https://dev.intermezzo.ai/organizations/{organization_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"country_code": "GB",
"legal_name": "<string>",
"address": "<string>",
"correspondence_address": "<string>",
"dba_name": "<string>",
"incorporation_date": "2023-12-25",
"website": "<string>",
"external_ref": "<string>"
}
'import requests
url = "https://dev.intermezzo.ai/organizations/{organization_id}"
payload = {
"country_code": "GB",
"legal_name": "<string>",
"address": "<string>",
"correspondence_address": "<string>",
"dba_name": "<string>",
"incorporation_date": "2023-12-25",
"website": "<string>",
"external_ref": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
country_code: 'GB',
legal_name: '<string>',
address: '<string>',
correspondence_address: '<string>',
dba_name: '<string>',
incorporation_date: '2023-12-25',
website: '<string>',
external_ref: '<string>'
})
};
fetch('https://dev.intermezzo.ai/organizations/{organization_id}', 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}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'country_code' => 'GB',
'legal_name' => '<string>',
'address' => '<string>',
'correspondence_address' => '<string>',
'dba_name' => '<string>',
'incorporation_date' => '2023-12-25',
'website' => '<string>',
'external_ref' => '<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}"
payload := strings.NewReader("{\n \"country_code\": \"GB\",\n \"legal_name\": \"<string>\",\n \"address\": \"<string>\",\n \"correspondence_address\": \"<string>\",\n \"dba_name\": \"<string>\",\n \"incorporation_date\": \"2023-12-25\",\n \"website\": \"<string>\",\n \"external_ref\": \"<string>\"\n}")
req, _ := http.NewRequest("PATCH", 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.patch("https://dev.intermezzo.ai/organizations/{organization_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"country_code\": \"GB\",\n \"legal_name\": \"<string>\",\n \"address\": \"<string>\",\n \"correspondence_address\": \"<string>\",\n \"dba_name\": \"<string>\",\n \"incorporation_date\": \"2023-12-25\",\n \"website\": \"<string>\",\n \"external_ref\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://dev.intermezzo.ai/organizations/{organization_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"country_code\": \"GB\",\n \"legal_name\": \"<string>\",\n \"address\": \"<string>\",\n \"correspondence_address\": \"<string>\",\n \"dba_name\": \"<string>\",\n \"incorporation_date\": \"2023-12-25\",\n \"website\": \"<string>\",\n \"external_ref\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"country_code": "IE",
"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": {}
},
"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": {}
},
"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": {}
},
"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>",
"phone_type": "MOBILE"
},
"roles": []
}
],
"tax_identifiers": {
"id": 123,
"valid_from": "2023-12-25",
"valid_to": "2023-12-25",
"tax_data": {
"country_code": "GB",
"business_type": "SOLE_TRADER",
"paye_reference_number": "<string>",
"accounts_office_reference": "<string>",
"valid_from": "2023-12-25",
"valid_to": "2023-12-25",
"corporation_tax_reference": "<string>"
}
},
"insurance_data": {
"id": 123,
"valid_from": "2023-12-25",
"valid_to": "2023-12-25",
"country_code": "GB"
}
}
],
"bank_accounts": [
{
"financial_institution_name": "Lloyds Bank",
"id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"account_number": "31926819",
"routing_number": "226073523",
"iban": "GB29NWBK60161331926819",
"swift_code": "NWBK6016",
"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>",
"insurance_subsidy_method": "REMUNERATION",
"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>",
"country_code": "GB",
"sender_id": "<string>",
"sender_pass": "<string>",
"sender_email": "<string>",
"sender_type": "EMPLOYER",
"ea_eligible": false,
"ea_annual_allowance": "10500",
"bacs_sun": "<string>",
"proration_basis": {
"mode": "CALENDAR_DAY",
"business_days_per_year": "<string>"
}
},
"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": {}
},
"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>",
"phone_type": "MOBILE"
},
"roles": []
}
],
"tax_identifiers": {
"id": 123,
"valid_from": "2023-12-25",
"valid_to": "2023-12-25",
"tax_data": {
"country_code": "GB",
"business_type": "SOLE_TRADER",
"paye_reference_number": "<string>",
"accounts_office_reference": "<string>",
"valid_from": "2023-12-25",
"valid_to": "2023-12-25",
"corporation_tax_reference": "<string>"
}
},
"insurance_data": {
"id": 123,
"valid_from": "2023-12-25",
"valid_to": "2023-12-25",
"country_code": "GB"
}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Get token from Auth0 and paste it here
Path Parameters
Body
application/json
Response
Successful Response
Enum for CountryAlpha2 codes
Available options:
IE, GB, AE, US Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
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