Close Wage Type
curl --request POST \
--url https://preview.intermezzo.ai/gb/organizations/{organization_id}/wage-types/{wage_type_id}/close \
--header 'Authorization: Bearer <token>'import requests
url = "https://preview.intermezzo.ai/gb/organizations/{organization_id}/wage-types/{wage_type_id}/close"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://preview.intermezzo.ai/gb/organizations/{organization_id}/wage-types/{wage_type_id}/close', 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}/wage-types/{wage_type_id}/close",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
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}/wage-types/{wage_type_id}/close"
req, _ := http.NewRequest("POST", 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.post("https://preview.intermezzo.ai/gb/organizations/{organization_id}/wage-types/{wage_type_id}/close")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://preview.intermezzo.ai/gb/organizations/{organization_id}/wage-types/{wage_type_id}/close")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"country_code": "IE",
"created_at": "2023-11-07T05:31:56Z",
"created_by": "<string>",
"deleted_at": "2023-11-07T05:31:56Z",
"external_ref": "<string>",
"id": "<string>",
"organization_id": "<string>",
"system_usage": "DERIVABLE",
"wage_type_code": "<string>",
"computation": {
"computation": {
"amount": "<string>",
"type": "fixed"
},
"created_at": "2023-11-07T05:31:56Z",
"created_by": "<string>",
"edition": 123,
"valid_from": "2023-12-25",
"valid_to": "2023-12-25",
"depends_on": [
"<string>"
],
"locked_fields": [
"<string>"
],
"precision": 2,
"rounding": "HALF_UP"
},
"core": {
"category": "EARNINGS",
"created_at": "2023-11-07T05:31:56Z",
"created_by": "<string>",
"description": "<string>",
"edition": 123,
"name": "<string>",
"valid_from": "2023-12-25",
"valid_to": "2023-12-25"
},
"lifecycle": {
"created_at": "2023-11-07T05:31:56Z",
"created_by": "<string>",
"edition": 123,
"state": "DRAFT",
"valid_from": "2023-12-25",
"valid_to": "2023-12-25"
},
"treatment": {
"created_at": "2023-11-07T05:31:56Z",
"created_by": "<string>",
"edition": 123,
"ni_class": "CLASS_1",
"p11d_reportable_status": "YES",
"payrolling_eligible_status": "YES",
"pension_status": "SCHEME_DEFINED",
"tax_timing": "ON_PAYMENT",
"taxable_status": "YES",
"valid_from": "2023-12-25",
"valid_to": "2023-12-25",
"calculation_variants": [
"<string>"
],
"deduction_tax_treatment": "POST_TAX",
"is_ae_qualifying": false,
"is_class_1a_applicable": false,
"is_gross_up": false,
"is_holiday_pay_included": false,
"is_notional": false,
"is_proratable": false,
"is_salary_sacrifice_allowed": false,
"last_reviewed_at": "2023-12-25",
"legislative_source": "<string>",
"ni_employee_applies": true,
"ni_employer_treatment": "SECONDARY",
"nmw_treatment": "EXCLUDED",
"opra_rule": "NOT_APPLICABLE",
"owner": "<string>",
"regularity_threshold_periods": 123,
"regularity_window_weeks": 123,
"reviewer": "<string>",
"rti_payment_type": "<string>",
"thresholds": {},
"uses_ae_bands": false,
"uses_official_interest_rate": false
}
}Wage Types
Close Wage Type
POST
/
gb
/
organizations
/
{organization_id}
/
wage-types
/
{wage_type_id}
/
close
Close Wage Type
curl --request POST \
--url https://preview.intermezzo.ai/gb/organizations/{organization_id}/wage-types/{wage_type_id}/close \
--header 'Authorization: Bearer <token>'import requests
url = "https://preview.intermezzo.ai/gb/organizations/{organization_id}/wage-types/{wage_type_id}/close"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://preview.intermezzo.ai/gb/organizations/{organization_id}/wage-types/{wage_type_id}/close', 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}/wage-types/{wage_type_id}/close",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
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}/wage-types/{wage_type_id}/close"
req, _ := http.NewRequest("POST", 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.post("https://preview.intermezzo.ai/gb/organizations/{organization_id}/wage-types/{wage_type_id}/close")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://preview.intermezzo.ai/gb/organizations/{organization_id}/wage-types/{wage_type_id}/close")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"country_code": "IE",
"created_at": "2023-11-07T05:31:56Z",
"created_by": "<string>",
"deleted_at": "2023-11-07T05:31:56Z",
"external_ref": "<string>",
"id": "<string>",
"organization_id": "<string>",
"system_usage": "DERIVABLE",
"wage_type_code": "<string>",
"computation": {
"computation": {
"amount": "<string>",
"type": "fixed"
},
"created_at": "2023-11-07T05:31:56Z",
"created_by": "<string>",
"edition": 123,
"valid_from": "2023-12-25",
"valid_to": "2023-12-25",
"depends_on": [
"<string>"
],
"locked_fields": [
"<string>"
],
"precision": 2,
"rounding": "HALF_UP"
},
"core": {
"category": "EARNINGS",
"created_at": "2023-11-07T05:31:56Z",
"created_by": "<string>",
"description": "<string>",
"edition": 123,
"name": "<string>",
"valid_from": "2023-12-25",
"valid_to": "2023-12-25"
},
"lifecycle": {
"created_at": "2023-11-07T05:31:56Z",
"created_by": "<string>",
"edition": 123,
"state": "DRAFT",
"valid_from": "2023-12-25",
"valid_to": "2023-12-25"
},
"treatment": {
"created_at": "2023-11-07T05:31:56Z",
"created_by": "<string>",
"edition": 123,
"ni_class": "CLASS_1",
"p11d_reportable_status": "YES",
"payrolling_eligible_status": "YES",
"pension_status": "SCHEME_DEFINED",
"tax_timing": "ON_PAYMENT",
"taxable_status": "YES",
"valid_from": "2023-12-25",
"valid_to": "2023-12-25",
"calculation_variants": [
"<string>"
],
"deduction_tax_treatment": "POST_TAX",
"is_ae_qualifying": false,
"is_class_1a_applicable": false,
"is_gross_up": false,
"is_holiday_pay_included": false,
"is_notional": false,
"is_proratable": false,
"is_salary_sacrifice_allowed": false,
"last_reviewed_at": "2023-12-25",
"legislative_source": "<string>",
"ni_employee_applies": true,
"ni_employer_treatment": "SECONDARY",
"nmw_treatment": "EXCLUDED",
"opra_rule": "NOT_APPLICABLE",
"owner": "<string>",
"regularity_threshold_periods": 123,
"regularity_window_weeks": 123,
"reviewer": "<string>",
"rti_payment_type": "<string>",
"thresholds": {},
"uses_ae_bands": false,
"uses_official_interest_rate": false
}
}Response
Successful Response
The wage type with every satellite as it reads on one date. A satellite with no slice on an explicit date is null.
Was this page helpful?