Create Address Edition
curl --request PUT \
--url https://preview.intermezzo.ai/gb/organizations/{organization_id}/address \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"address": {
"address_line_1": "1 Main Street",
"address_line_2": "Floor 2",
"address_line_3": "<string>",
"address_line_4": "<string>",
"country": "GB",
"county": "<string>",
"postcode": "EC1A 1BB",
"town": "London"
},
"correspondence_address": {
"address_line_1": "1 Main Street",
"address_line_2": "Floor 2",
"address_line_3": "<string>",
"address_line_4": "<string>",
"country": "GB",
"county": "<string>",
"postcode": "EC1A 1BB",
"town": "London"
},
"valid_from": "2023-12-25",
"valid_to": "2023-12-25"
}
'import requests
url = "https://preview.intermezzo.ai/gb/organizations/{organization_id}/address"
payload = {
"address": {
"address_line_1": "1 Main Street",
"address_line_2": "Floor 2",
"address_line_3": "<string>",
"address_line_4": "<string>",
"country": "GB",
"county": "<string>",
"postcode": "EC1A 1BB",
"town": "London"
},
"correspondence_address": {
"address_line_1": "1 Main Street",
"address_line_2": "Floor 2",
"address_line_3": "<string>",
"address_line_4": "<string>",
"country": "GB",
"county": "<string>",
"postcode": "EC1A 1BB",
"town": "London"
},
"valid_from": "2023-12-25",
"valid_to": "2023-12-25"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
address: {
address_line_1: '1 Main Street',
address_line_2: 'Floor 2',
address_line_3: '<string>',
address_line_4: '<string>',
country: 'GB',
county: '<string>',
postcode: 'EC1A 1BB',
town: 'London'
},
correspondence_address: {
address_line_1: '1 Main Street',
address_line_2: 'Floor 2',
address_line_3: '<string>',
address_line_4: '<string>',
country: 'GB',
county: '<string>',
postcode: 'EC1A 1BB',
town: 'London'
},
valid_from: '2023-12-25',
valid_to: '2023-12-25'
})
};
fetch('https://preview.intermezzo.ai/gb/organizations/{organization_id}/address', 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://preview.intermezzo.ai/gb/organizations/{organization_id}/address",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'address' => [
'address_line_1' => '1 Main Street',
'address_line_2' => 'Floor 2',
'address_line_3' => '<string>',
'address_line_4' => '<string>',
'country' => 'GB',
'county' => '<string>',
'postcode' => 'EC1A 1BB',
'town' => 'London'
],
'correspondence_address' => [
'address_line_1' => '1 Main Street',
'address_line_2' => 'Floor 2',
'address_line_3' => '<string>',
'address_line_4' => '<string>',
'country' => 'GB',
'county' => '<string>',
'postcode' => 'EC1A 1BB',
'town' => 'London'
],
'valid_from' => '2023-12-25',
'valid_to' => '2023-12-25'
]),
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://preview.intermezzo.ai/gb/organizations/{organization_id}/address"
payload := strings.NewReader("{\n \"address\": {\n \"address_line_1\": \"1 Main Street\",\n \"address_line_2\": \"Floor 2\",\n \"address_line_3\": \"<string>\",\n \"address_line_4\": \"<string>\",\n \"country\": \"GB\",\n \"county\": \"<string>\",\n \"postcode\": \"EC1A 1BB\",\n \"town\": \"London\"\n },\n \"correspondence_address\": {\n \"address_line_1\": \"1 Main Street\",\n \"address_line_2\": \"Floor 2\",\n \"address_line_3\": \"<string>\",\n \"address_line_4\": \"<string>\",\n \"country\": \"GB\",\n \"county\": \"<string>\",\n \"postcode\": \"EC1A 1BB\",\n \"town\": \"London\"\n },\n \"valid_from\": \"2023-12-25\",\n \"valid_to\": \"2023-12-25\"\n}")
req, _ := http.NewRequest("PUT", 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.put("https://preview.intermezzo.ai/gb/organizations/{organization_id}/address")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"address\": {\n \"address_line_1\": \"1 Main Street\",\n \"address_line_2\": \"Floor 2\",\n \"address_line_3\": \"<string>\",\n \"address_line_4\": \"<string>\",\n \"country\": \"GB\",\n \"county\": \"<string>\",\n \"postcode\": \"EC1A 1BB\",\n \"town\": \"London\"\n },\n \"correspondence_address\": {\n \"address_line_1\": \"1 Main Street\",\n \"address_line_2\": \"Floor 2\",\n \"address_line_3\": \"<string>\",\n \"address_line_4\": \"<string>\",\n \"country\": \"GB\",\n \"county\": \"<string>\",\n \"postcode\": \"EC1A 1BB\",\n \"town\": \"London\"\n },\n \"valid_from\": \"2023-12-25\",\n \"valid_to\": \"2023-12-25\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://preview.intermezzo.ai/gb/organizations/{organization_id}/address")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"address\": {\n \"address_line_1\": \"1 Main Street\",\n \"address_line_2\": \"Floor 2\",\n \"address_line_3\": \"<string>\",\n \"address_line_4\": \"<string>\",\n \"country\": \"GB\",\n \"county\": \"<string>\",\n \"postcode\": \"EC1A 1BB\",\n \"town\": \"London\"\n },\n \"correspondence_address\": {\n \"address_line_1\": \"1 Main Street\",\n \"address_line_2\": \"Floor 2\",\n \"address_line_3\": \"<string>\",\n \"address_line_4\": \"<string>\",\n \"country\": \"GB\",\n \"county\": \"<string>\",\n \"postcode\": \"EC1A 1BB\",\n \"town\": \"London\"\n },\n \"valid_from\": \"2023-12-25\",\n \"valid_to\": \"2023-12-25\"\n}"
response = http.request(request)
puts response.read_body{
"created_at": "2023-11-07T05:31:56Z",
"created_by": "<string>",
"edition": 123,
"valid_from": "2023-12-25",
"valid_to": "2023-12-25",
"address": {
"address_line_1": "<string>",
"address_line_2": "<string>",
"address_line_3": "<string>",
"address_line_4": "<string>",
"country": "<string>",
"county": "<string>",
"postcode": "<string>",
"town": "<string>"
},
"correspondence_address": {
"address_line_1": "<string>",
"address_line_2": "<string>",
"address_line_3": "<string>",
"address_line_4": "<string>",
"country": "<string>",
"county": "<string>",
"postcode": "<string>",
"town": "<string>"
}
}Address
Create Address Edition
If-Match carries the edition of the slice the range starts in, as read. A satellite not yet written is created by a PUT with If-None-Match: * instead, on a range that runs to 9999-12-31. The response’s ETag is the edition written.
PUT
/
gb
/
organizations
/
{organization_id}
/
address
Create Address Edition
curl --request PUT \
--url https://preview.intermezzo.ai/gb/organizations/{organization_id}/address \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"address": {
"address_line_1": "1 Main Street",
"address_line_2": "Floor 2",
"address_line_3": "<string>",
"address_line_4": "<string>",
"country": "GB",
"county": "<string>",
"postcode": "EC1A 1BB",
"town": "London"
},
"correspondence_address": {
"address_line_1": "1 Main Street",
"address_line_2": "Floor 2",
"address_line_3": "<string>",
"address_line_4": "<string>",
"country": "GB",
"county": "<string>",
"postcode": "EC1A 1BB",
"town": "London"
},
"valid_from": "2023-12-25",
"valid_to": "2023-12-25"
}
'import requests
url = "https://preview.intermezzo.ai/gb/organizations/{organization_id}/address"
payload = {
"address": {
"address_line_1": "1 Main Street",
"address_line_2": "Floor 2",
"address_line_3": "<string>",
"address_line_4": "<string>",
"country": "GB",
"county": "<string>",
"postcode": "EC1A 1BB",
"town": "London"
},
"correspondence_address": {
"address_line_1": "1 Main Street",
"address_line_2": "Floor 2",
"address_line_3": "<string>",
"address_line_4": "<string>",
"country": "GB",
"county": "<string>",
"postcode": "EC1A 1BB",
"town": "London"
},
"valid_from": "2023-12-25",
"valid_to": "2023-12-25"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
address: {
address_line_1: '1 Main Street',
address_line_2: 'Floor 2',
address_line_3: '<string>',
address_line_4: '<string>',
country: 'GB',
county: '<string>',
postcode: 'EC1A 1BB',
town: 'London'
},
correspondence_address: {
address_line_1: '1 Main Street',
address_line_2: 'Floor 2',
address_line_3: '<string>',
address_line_4: '<string>',
country: 'GB',
county: '<string>',
postcode: 'EC1A 1BB',
town: 'London'
},
valid_from: '2023-12-25',
valid_to: '2023-12-25'
})
};
fetch('https://preview.intermezzo.ai/gb/organizations/{organization_id}/address', 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://preview.intermezzo.ai/gb/organizations/{organization_id}/address",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'address' => [
'address_line_1' => '1 Main Street',
'address_line_2' => 'Floor 2',
'address_line_3' => '<string>',
'address_line_4' => '<string>',
'country' => 'GB',
'county' => '<string>',
'postcode' => 'EC1A 1BB',
'town' => 'London'
],
'correspondence_address' => [
'address_line_1' => '1 Main Street',
'address_line_2' => 'Floor 2',
'address_line_3' => '<string>',
'address_line_4' => '<string>',
'country' => 'GB',
'county' => '<string>',
'postcode' => 'EC1A 1BB',
'town' => 'London'
],
'valid_from' => '2023-12-25',
'valid_to' => '2023-12-25'
]),
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://preview.intermezzo.ai/gb/organizations/{organization_id}/address"
payload := strings.NewReader("{\n \"address\": {\n \"address_line_1\": \"1 Main Street\",\n \"address_line_2\": \"Floor 2\",\n \"address_line_3\": \"<string>\",\n \"address_line_4\": \"<string>\",\n \"country\": \"GB\",\n \"county\": \"<string>\",\n \"postcode\": \"EC1A 1BB\",\n \"town\": \"London\"\n },\n \"correspondence_address\": {\n \"address_line_1\": \"1 Main Street\",\n \"address_line_2\": \"Floor 2\",\n \"address_line_3\": \"<string>\",\n \"address_line_4\": \"<string>\",\n \"country\": \"GB\",\n \"county\": \"<string>\",\n \"postcode\": \"EC1A 1BB\",\n \"town\": \"London\"\n },\n \"valid_from\": \"2023-12-25\",\n \"valid_to\": \"2023-12-25\"\n}")
req, _ := http.NewRequest("PUT", 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.put("https://preview.intermezzo.ai/gb/organizations/{organization_id}/address")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"address\": {\n \"address_line_1\": \"1 Main Street\",\n \"address_line_2\": \"Floor 2\",\n \"address_line_3\": \"<string>\",\n \"address_line_4\": \"<string>\",\n \"country\": \"GB\",\n \"county\": \"<string>\",\n \"postcode\": \"EC1A 1BB\",\n \"town\": \"London\"\n },\n \"correspondence_address\": {\n \"address_line_1\": \"1 Main Street\",\n \"address_line_2\": \"Floor 2\",\n \"address_line_3\": \"<string>\",\n \"address_line_4\": \"<string>\",\n \"country\": \"GB\",\n \"county\": \"<string>\",\n \"postcode\": \"EC1A 1BB\",\n \"town\": \"London\"\n },\n \"valid_from\": \"2023-12-25\",\n \"valid_to\": \"2023-12-25\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://preview.intermezzo.ai/gb/organizations/{organization_id}/address")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"address\": {\n \"address_line_1\": \"1 Main Street\",\n \"address_line_2\": \"Floor 2\",\n \"address_line_3\": \"<string>\",\n \"address_line_4\": \"<string>\",\n \"country\": \"GB\",\n \"county\": \"<string>\",\n \"postcode\": \"EC1A 1BB\",\n \"town\": \"London\"\n },\n \"correspondence_address\": {\n \"address_line_1\": \"1 Main Street\",\n \"address_line_2\": \"Floor 2\",\n \"address_line_3\": \"<string>\",\n \"address_line_4\": \"<string>\",\n \"country\": \"GB\",\n \"county\": \"<string>\",\n \"postcode\": \"EC1A 1BB\",\n \"town\": \"London\"\n },\n \"valid_from\": \"2023-12-25\",\n \"valid_to\": \"2023-12-25\"\n}"
response = http.request(request)
puts response.read_body{
"created_at": "2023-11-07T05:31:56Z",
"created_by": "<string>",
"edition": 123,
"valid_from": "2023-12-25",
"valid_to": "2023-12-25",
"address": {
"address_line_1": "<string>",
"address_line_2": "<string>",
"address_line_3": "<string>",
"address_line_4": "<string>",
"country": "<string>",
"county": "<string>",
"postcode": "<string>",
"town": "<string>"
},
"correspondence_address": {
"address_line_1": "<string>",
"address_line_2": "<string>",
"address_line_3": "<string>",
"address_line_4": "<string>",
"country": "<string>",
"county": "<string>",
"postcode": "<string>",
"town": "<string>"
}
}Headers
Body
application/json
Response
Successful Response
Was this page helpful?