Get Treatment Editions
curl --request GET \
--url https://dev.intermezzo.ai/gb/organizations/{organization_id}/wage-types/{wage_type_id}/treatment/editions \
--header 'Authorization: Bearer <token>'import requests
url = "https://dev.intermezzo.ai/gb/organizations/{organization_id}/wage-types/{wage_type_id}/treatment/editions"
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/gb/organizations/{organization_id}/wage-types/{wage_type_id}/treatment/editions', 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/gb/organizations/{organization_id}/wage-types/{wage_type_id}/treatment/editions",
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/gb/organizations/{organization_id}/wage-types/{wage_type_id}/treatment/editions"
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/gb/organizations/{organization_id}/wage-types/{wage_type_id}/treatment/editions")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://dev.intermezzo.ai/gb/organizations/{organization_id}/wage-types/{wage_type_id}/treatment/editions")
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": [
{
"taxable_status": "YES",
"tax_timing": "ON_PAYMENT",
"ni_class": "CLASS_1",
"p11d_reportable_status": "YES",
"pension_status": "SCHEME_DEFINED",
"payrolling_eligible_status": "YES",
"edition": 123,
"valid_from": "2023-12-25",
"valid_to": "2023-12-25",
"created_at": "2023-11-07T05:31:56Z",
"created_by": "<string>",
"deduction_tax_treatment": "POST_TAX",
"rti_payment_type": "<string>",
"ni_employee_applies": true,
"ni_employer_treatment": "SECONDARY",
"is_class_1a_applicable": false,
"is_ae_qualifying": false,
"uses_ae_bands": false,
"is_holiday_pay_included": false,
"is_salary_sacrifice_allowed": false,
"is_proratable": false,
"nmw_treatment": "EXCLUDED",
"opra_rule": "NOT_APPLICABLE",
"uses_official_interest_rate": false,
"calculation_variants": [
"<string>"
],
"thresholds": {},
"regularity_window_weeks": 123,
"regularity_threshold_periods": 123,
"is_gross_up": false,
"is_notional": false,
"legislative_source": "<string>",
"owner": "<string>",
"reviewer": "<string>",
"last_reviewed_at": "2023-12-25"
}
],
"pagination": {
"limit": 123,
"has_next": false,
"has_prev": false,
"next_cursor": "<string>",
"prev_cursor": "<string>",
"total": 0
}
}{
"errors": [
{
"code": "HUB_NOT_FOUND",
"message": "Raised when a hub does not exist under the parent named in the path."
}
]
}{
"errors": [
{
"code": "FIELD_REQUIRED",
"message": "<string>",
"field": "<string>",
"params": {}
}
]
}Treatment
Get Treatment Editions
The resolved timeline, ordered by valid_from: oldest slice first, or latest first with order=desc.
GET
/
gb
/
organizations
/
{organization_id}
/
wage-types
/
{wage_type_id}
/
treatment
/
editions
Get Treatment Editions
curl --request GET \
--url https://dev.intermezzo.ai/gb/organizations/{organization_id}/wage-types/{wage_type_id}/treatment/editions \
--header 'Authorization: Bearer <token>'import requests
url = "https://dev.intermezzo.ai/gb/organizations/{organization_id}/wage-types/{wage_type_id}/treatment/editions"
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/gb/organizations/{organization_id}/wage-types/{wage_type_id}/treatment/editions', 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/gb/organizations/{organization_id}/wage-types/{wage_type_id}/treatment/editions",
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/gb/organizations/{organization_id}/wage-types/{wage_type_id}/treatment/editions"
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/gb/organizations/{organization_id}/wage-types/{wage_type_id}/treatment/editions")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://dev.intermezzo.ai/gb/organizations/{organization_id}/wage-types/{wage_type_id}/treatment/editions")
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": [
{
"taxable_status": "YES",
"tax_timing": "ON_PAYMENT",
"ni_class": "CLASS_1",
"p11d_reportable_status": "YES",
"pension_status": "SCHEME_DEFINED",
"payrolling_eligible_status": "YES",
"edition": 123,
"valid_from": "2023-12-25",
"valid_to": "2023-12-25",
"created_at": "2023-11-07T05:31:56Z",
"created_by": "<string>",
"deduction_tax_treatment": "POST_TAX",
"rti_payment_type": "<string>",
"ni_employee_applies": true,
"ni_employer_treatment": "SECONDARY",
"is_class_1a_applicable": false,
"is_ae_qualifying": false,
"uses_ae_bands": false,
"is_holiday_pay_included": false,
"is_salary_sacrifice_allowed": false,
"is_proratable": false,
"nmw_treatment": "EXCLUDED",
"opra_rule": "NOT_APPLICABLE",
"uses_official_interest_rate": false,
"calculation_variants": [
"<string>"
],
"thresholds": {},
"regularity_window_weeks": 123,
"regularity_threshold_periods": 123,
"is_gross_up": false,
"is_notional": false,
"legislative_source": "<string>",
"owner": "<string>",
"reviewer": "<string>",
"last_reviewed_at": "2023-12-25"
}
],
"pagination": {
"limit": 123,
"has_next": false,
"has_prev": false,
"next_cursor": "<string>",
"prev_cursor": "<string>",
"total": 0
}
}{
"errors": [
{
"code": "HUB_NOT_FOUND",
"message": "Raised when a hub does not exist under the parent named in the path."
}
]
}{
"errors": [
{
"code": "FIELD_REQUIRED",
"message": "<string>",
"field": "<string>",
"params": {}
}
]
}Authorizations
Get token from Auth0 and paste it here
Query Parameters
Number of items per page
Required range:
1 <= x <= 100pagination.next_cursor of the previous page; omit for the first
asc for oldest first, desc for newest first. Keep it the same while following a cursor.
Available options:
ASC, DESC