List Orgs
curl --request GET \
--url https://dev.intermezzo.ai/organizations \
--header 'Authorization: Bearer <token>'import requests
url = "https://dev.intermezzo.ai/organizations"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://dev.intermezzo.ai/organizations', 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",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://dev.intermezzo.ai/organizations"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://dev.intermezzo.ai/organizations")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://dev.intermezzo.ai/organizations")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"items": [
{
"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"
}
}
],
"pagination": {
"limit": 123,
"has_next": false,
"has_prev": false,
"next_cursor": "<string>",
"prev_cursor": "<string>",
"total": 0
}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Organizations
List Orgs
GET
/
organizations
List Orgs
curl --request GET \
--url https://dev.intermezzo.ai/organizations \
--header 'Authorization: Bearer <token>'import requests
url = "https://dev.intermezzo.ai/organizations"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://dev.intermezzo.ai/organizations', 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",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://dev.intermezzo.ai/organizations"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://dev.intermezzo.ai/organizations")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://dev.intermezzo.ai/organizations")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"items": [
{
"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"
}
}
],
"pagination": {
"limit": 123,
"has_next": false,
"has_prev": false,
"next_cursor": "<string>",
"prev_cursor": "<string>",
"total": 0
}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Get token from Auth0 and paste it here
Query Parameters
Items per page
Required range:
1 <= x <= 100next_cursor of the previous response, for the next page
prev_cursor of the previous response, for the page before it. Not together with cursor.
Fields to order by, - in front for descending (-created_at). Repeat the parameter for more fields. Keep the same sort while following cursors.