Re-check the NEST employer
curl --request POST \
--url https://preview.intermezzo.ai/gb/organizations/{organization_id}/pension/nest/verify \
--header 'Authorization: Bearer <token>'import requests
url = "https://preview.intermezzo.ai/gb/organizations/{organization_id}/pension/nest/verify"
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}/pension/nest/verify', 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/verify",
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}/pension/nest/verify"
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}/pension/nest/verify")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://preview.intermezzo.ai/gb/organizations/{organization_id}/pension/nest/verify")
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{
"submission_id": "<string>",
"status": "PENDING"
}{
"errors": [
{
"code": "NEST_NOT_CONNECTED",
"message": "Raised when verify is requested for an organisation not connected to NEST."
}
]
}{
"errors": [
{
"code": "NEST_SETUP_IN_PROGRESS",
"message": "Raised when a NEST operation is requested while another is in flight for the organisation."
}
]
}{
"errors": [
{
"code": "ADDRESS_NOT_FOUND",
"message": "<string>",
"field": "<string>",
"params": {}
}
]
}{
"errors": [
{
"code": "NEST_NOT_CONFIGURED",
"message": "Raised when NEST delegate credentials are missing from settings."
}
]
}NEST
Re-check the NEST employer
Re-reads the connected employer’s setup from NEST and refreshes readiness, e.g. after the employer finished set-up in NEST. Returns 202 with a submission ID; poll /nest/status for the outcome.
POST
/
gb
/
organizations
/
{organization_id}
/
pension
/
nest
/
verify
Re-check the NEST employer
curl --request POST \
--url https://preview.intermezzo.ai/gb/organizations/{organization_id}/pension/nest/verify \
--header 'Authorization: Bearer <token>'import requests
url = "https://preview.intermezzo.ai/gb/organizations/{organization_id}/pension/nest/verify"
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}/pension/nest/verify', 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/verify",
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}/pension/nest/verify"
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}/pension/nest/verify")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://preview.intermezzo.ai/gb/organizations/{organization_id}/pension/nest/verify")
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{
"submission_id": "<string>",
"status": "PENDING"
}{
"errors": [
{
"code": "NEST_NOT_CONNECTED",
"message": "Raised when verify is requested for an organisation not connected to NEST."
}
]
}{
"errors": [
{
"code": "NEST_SETUP_IN_PROGRESS",
"message": "Raised when a NEST operation is requested while another is in flight for the organisation."
}
]
}{
"errors": [
{
"code": "ADDRESS_NOT_FOUND",
"message": "<string>",
"field": "<string>",
"params": {}
}
]
}{
"errors": [
{
"code": "NEST_NOT_CONFIGURED",
"message": "Raised when NEST delegate credentials are missing from settings."
}
]
}Was this page helpful?