Set the NEST employer for file upload
curl --request PUT \
--url https://dev.intermezzo.ai/gb/organizations/{organization_id}/pension/nest/file-employer \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"employer_reference_number": "<string>",
"duty_staging_date": "2023-12-25"
}
'import requests
url = "https://dev.intermezzo.ai/gb/organizations/{organization_id}/pension/nest/file-employer"
payload = {
"employer_reference_number": "<string>",
"duty_staging_date": "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({employer_reference_number: '<string>', duty_staging_date: '2023-12-25'})
};
fetch('https://dev.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://dev.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([
'employer_reference_number' => '<string>',
'duty_staging_date' => '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://dev.intermezzo.ai/gb/organizations/{organization_id}/pension/nest/file-employer"
payload := strings.NewReader("{\n \"employer_reference_number\": \"<string>\",\n \"duty_staging_date\": \"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://dev.intermezzo.ai/gb/organizations/{organization_id}/pension/nest/file-employer")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"employer_reference_number\": \"<string>\",\n \"duty_staging_date\": \"2023-12-25\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://dev.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 \"employer_reference_number\": \"<string>\",\n \"duty_staging_date\": \"2023-12-25\"\n}"
response = http.request(request)
puts response.read_body{
"connection": {
"employer_reference_number": "<string>",
"readiness": "AWAITING_EMPLOYER",
"source": "NEST_API",
"duty_staging_date": "2023-12-25",
"employer_status": "A",
"verified_at": "2023-11-07T05:31:56Z",
"groups": [
{
"name": "<string>",
"frequency": "<string>",
"eped": "2023-12-25",
"due_date_basis": "<string>",
"relative_days_after_eped": 123,
"specific_day": "<string>",
"specific_day_eped_or_after": "<string>"
}
],
"payment_sources": [
{
"name": "<string>",
"contribution_payment_type": "<string>"
}
]
},
"last_operation": {
"submission_id": "<string>",
"mode": "SETUP",
"status": "PENDING",
"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://dev.intermezzo.ai/gb/organizations/{organization_id}/pension/nest/file-employer \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"employer_reference_number": "<string>",
"duty_staging_date": "2023-12-25"
}
'import requests
url = "https://dev.intermezzo.ai/gb/organizations/{organization_id}/pension/nest/file-employer"
payload = {
"employer_reference_number": "<string>",
"duty_staging_date": "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({employer_reference_number: '<string>', duty_staging_date: '2023-12-25'})
};
fetch('https://dev.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://dev.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([
'employer_reference_number' => '<string>',
'duty_staging_date' => '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://dev.intermezzo.ai/gb/organizations/{organization_id}/pension/nest/file-employer"
payload := strings.NewReader("{\n \"employer_reference_number\": \"<string>\",\n \"duty_staging_date\": \"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://dev.intermezzo.ai/gb/organizations/{organization_id}/pension/nest/file-employer")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"employer_reference_number\": \"<string>\",\n \"duty_staging_date\": \"2023-12-25\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://dev.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 \"employer_reference_number\": \"<string>\",\n \"duty_staging_date\": \"2023-12-25\"\n}"
response = http.request(request)
puts response.read_body{
"connection": {
"employer_reference_number": "<string>",
"readiness": "AWAITING_EMPLOYER",
"source": "NEST_API",
"duty_staging_date": "2023-12-25",
"employer_status": "A",
"verified_at": "2023-11-07T05:31:56Z",
"groups": [
{
"name": "<string>",
"frequency": "<string>",
"eped": "2023-12-25",
"due_date_basis": "<string>",
"relative_days_after_eped": 123,
"specific_day": "<string>",
"specific_day_eped_or_after": "<string>"
}
],
"payment_sources": [
{
"name": "<string>",
"contribution_payment_type": "<string>"
}
]
},
"last_operation": {
"submission_id": "<string>",
"mode": "SETUP",
"status": "PENDING",
"error_code": "<string>",
"error_detail": "<string>"
}
}Authorizations
Get token from Auth0 and paste it here
Path Parameters
Body
application/json
A NEST employer the client uploads files for, entered without contacting NEST.