Set the NEST employer for file upload
curl --request PUT \
--url https://preview.intermezzo.ai/gb/organizations/{organization_id}/pension/nest/file-employer \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"duty_staging_date": "2023-12-25",
"employer_reference_number": "<string>"
}
'import requests
url = "https://preview.intermezzo.ai/gb/organizations/{organization_id}/pension/nest/file-employer"
payload = {
"duty_staging_date": "2023-12-25",
"employer_reference_number": "<string>"
}
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({duty_staging_date: '2023-12-25', employer_reference_number: '<string>'})
};
fetch('https://preview.intermezzo.ai/gb/organizations/{organization_id}/pension/nest/file-employer', 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}/pension/nest/file-employer",
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([
'duty_staging_date' => '2023-12-25',
'employer_reference_number' => '<string>'
]),
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}/pension/nest/file-employer"
payload := strings.NewReader("{\n \"duty_staging_date\": \"2023-12-25\",\n \"employer_reference_number\": \"<string>\"\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}/pension/nest/file-employer")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"duty_staging_date\": \"2023-12-25\",\n \"employer_reference_number\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://preview.intermezzo.ai/gb/organizations/{organization_id}/pension/nest/file-employer")
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 \"duty_staging_date\": \"2023-12-25\",\n \"employer_reference_number\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"connection": {
"employer_reference_number": "<string>",
"readiness": "AWAITING_EMPLOYER",
"duty_staging_date": "2023-12-25",
"employer_status": "A",
"groups": [
{
"name": "<string>",
"due_date_basis": "<string>",
"eped": "2023-12-25",
"frequency": "<string>",
"relative_days_after_eped": 123,
"specific_day": "<string>",
"specific_day_eped_or_after": "<string>"
}
],
"payment_sources": [
{
"name": "<string>",
"contribution_payment_type": "<string>"
}
],
"source": "NEST_API",
"verified_at": "2023-11-07T05:31:56Z"
},
"last_operation": {
"mode": "SETUP",
"status": "PENDING",
"submission_id": "<string>",
"error_code": "<string>",
"error_detail": "<string>"
}
}NEST
Set the NEST employer for file upload
Records the NEST employer reference and duty staging date used in NEST files. Without a connection the reference is stored as entered (source MANUAL) and can be corrected later. When the organisation is connected through NEST’s web services, the reference must be the connected one and only the duty staging date is stored.
PUT
/
gb
/
organizations
/
{organization_id}
/
pension
/
nest
/
file-employer
Set the NEST employer for file upload
curl --request PUT \
--url https://preview.intermezzo.ai/gb/organizations/{organization_id}/pension/nest/file-employer \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"duty_staging_date": "2023-12-25",
"employer_reference_number": "<string>"
}
'import requests
url = "https://preview.intermezzo.ai/gb/organizations/{organization_id}/pension/nest/file-employer"
payload = {
"duty_staging_date": "2023-12-25",
"employer_reference_number": "<string>"
}
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({duty_staging_date: '2023-12-25', employer_reference_number: '<string>'})
};
fetch('https://preview.intermezzo.ai/gb/organizations/{organization_id}/pension/nest/file-employer', 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}/pension/nest/file-employer",
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([
'duty_staging_date' => '2023-12-25',
'employer_reference_number' => '<string>'
]),
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}/pension/nest/file-employer"
payload := strings.NewReader("{\n \"duty_staging_date\": \"2023-12-25\",\n \"employer_reference_number\": \"<string>\"\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}/pension/nest/file-employer")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"duty_staging_date\": \"2023-12-25\",\n \"employer_reference_number\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://preview.intermezzo.ai/gb/organizations/{organization_id}/pension/nest/file-employer")
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 \"duty_staging_date\": \"2023-12-25\",\n \"employer_reference_number\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"connection": {
"employer_reference_number": "<string>",
"readiness": "AWAITING_EMPLOYER",
"duty_staging_date": "2023-12-25",
"employer_status": "A",
"groups": [
{
"name": "<string>",
"due_date_basis": "<string>",
"eped": "2023-12-25",
"frequency": "<string>",
"relative_days_after_eped": 123,
"specific_day": "<string>",
"specific_day_eped_or_after": "<string>"
}
],
"payment_sources": [
{
"name": "<string>",
"contribution_payment_type": "<string>"
}
],
"source": "NEST_API",
"verified_at": "2023-11-07T05:31:56Z"
},
"last_operation": {
"mode": "SETUP",
"status": "PENDING",
"submission_id": "<string>",
"error_code": "<string>",
"error_detail": "<string>"
}
}Body
application/json
A NEST employer the client uploads files for, entered without contacting NEST.
Was this page helpful?