Get Absence Scheme
curl --request GET \
--url https://preview.intermezzo.ai/gb/organizations/{organization_id}/absence-schemes/{scheme_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://preview.intermezzo.ai/gb/organizations/{organization_id}/absence-schemes/{scheme_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://preview.intermezzo.ai/gb/organizations/{organization_id}/absence-schemes/{scheme_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://preview.intermezzo.ai/gb/organizations/{organization_id}/absence-schemes/{scheme_id}",
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://preview.intermezzo.ai/gb/organizations/{organization_id}/absence-schemes/{scheme_id}"
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://preview.intermezzo.ai/gb/organizations/{organization_id}/absence-schemes/{scheme_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://preview.intermezzo.ai/gb/organizations/{organization_id}/absence-schemes/{scheme_id}")
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{
"scheme_id": "<string>",
"edition_id": 123,
"name": "<string>",
"valid_from": "2023-12-25",
"terms": {
"regime": "SMP",
"offset_mode": "INCLUSIVE",
"top_up_wage_type_code": "<string>",
"content_schema_version": 1,
"baseline": "CONTRACTUAL_WEEKLY",
"bands": [
{
"from_week": 26,
"to_week": 26,
"pay_level": {
"percent": "<string>",
"kind": "percent_of_baseline",
"statutory_floor": false
}
}
],
"service_bands": [
{
"min_service_months": 1,
"bands": [
{
"from_week": 26,
"to_week": 26,
"pay_level": {
"percent": "<string>",
"kind": "percent_of_baseline",
"statutory_floor": false
}
}
]
}
]
},
"created_at": "2023-11-07T05:31:56Z",
"effective_offset_mode": "INCLUSIVE",
"valid_to": "2023-12-25"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Absence Schemes
Get Absence Scheme
Latest terms edition of one scheme.
GET
/
gb
/
organizations
/
{organization_id}
/
absence-schemes
/
{scheme_id}
Get Absence Scheme
curl --request GET \
--url https://preview.intermezzo.ai/gb/organizations/{organization_id}/absence-schemes/{scheme_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://preview.intermezzo.ai/gb/organizations/{organization_id}/absence-schemes/{scheme_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://preview.intermezzo.ai/gb/organizations/{organization_id}/absence-schemes/{scheme_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://preview.intermezzo.ai/gb/organizations/{organization_id}/absence-schemes/{scheme_id}",
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://preview.intermezzo.ai/gb/organizations/{organization_id}/absence-schemes/{scheme_id}"
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://preview.intermezzo.ai/gb/organizations/{organization_id}/absence-schemes/{scheme_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://preview.intermezzo.ai/gb/organizations/{organization_id}/absence-schemes/{scheme_id}")
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{
"scheme_id": "<string>",
"edition_id": 123,
"name": "<string>",
"valid_from": "2023-12-25",
"terms": {
"regime": "SMP",
"offset_mode": "INCLUSIVE",
"top_up_wage_type_code": "<string>",
"content_schema_version": 1,
"baseline": "CONTRACTUAL_WEEKLY",
"bands": [
{
"from_week": 26,
"to_week": 26,
"pay_level": {
"percent": "<string>",
"kind": "percent_of_baseline",
"statutory_floor": false
}
}
],
"service_bands": [
{
"min_service_months": 1,
"bands": [
{
"from_week": 26,
"to_week": 26,
"pay_level": {
"percent": "<string>",
"kind": "percent_of_baseline",
"statutory_floor": false
}
}
]
}
]
},
"created_at": "2023-11-07T05:31:56Z",
"effective_offset_mode": "INCLUSIVE",
"valid_to": "2023-12-25"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Get token from Auth0 and paste it here
Response
Successful Response
One edition of a scheme's terms. valid_to is null while the edition
is open-ended.
The occupational scheme terms: which statutory regime the scheme tops up, how the top-up composes with statutory pay, what it is measured against, and the week bands that set the occupational pay level.
Show child attributes
Show child attributes
How the occupational top-up actually composes with the statutory line for these terms
Available options:
INCLUSIVE, ADDITIVE, SUBSTITUTIVE Was this page helpful?