Set HMRC Credentials
curl --request PUT \
--url https://dev.intermezzo.ai/gb/organizations/{organization_id}/hmrc-credentials \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"sender_id": "ISV635",
"sender_pass": "<string>"
}
'import requests
url = "https://dev.intermezzo.ai/gb/organizations/{organization_id}/hmrc-credentials"
payload = {
"sender_id": "ISV635",
"sender_pass": "<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({sender_id: 'ISV635', sender_pass: '<string>'})
};
fetch('https://dev.intermezzo.ai/gb/organizations/{organization_id}/hmrc-credentials', 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}/hmrc-credentials",
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([
'sender_id' => 'ISV635',
'sender_pass' => '<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://dev.intermezzo.ai/gb/organizations/{organization_id}/hmrc-credentials"
payload := strings.NewReader("{\n \"sender_id\": \"ISV635\",\n \"sender_pass\": \"<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://dev.intermezzo.ai/gb/organizations/{organization_id}/hmrc-credentials")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"sender_id\": \"ISV635\",\n \"sender_pass\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://dev.intermezzo.ai/gb/organizations/{organization_id}/hmrc-credentials")
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 \"sender_id\": \"ISV635\",\n \"sender_pass\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"errors": [
{
"code": "ORG_BELONGS_TO_A_DIFFERENT_COUNTRY",
"message": "Raised when an organization belongs to a different country than the one in the path."
}
]
}{
"errors": [
{
"code": "ORG_NOT_FOUND",
"message": "Raised when an organization is not found."
}
]
}{
"errors": [
{
"code": "HUB_CLOSED",
"message": "Raised on a write to a closed hub: it stays readable, its satellites take no writes."
}
]
}{
"errors": [
{
"code": "FIELD_REQUIRED",
"message": "<string>",
"field": "<string>",
"params": {}
}
]
}Organizations
Set HMRC Credentials
Set the HMRC Government Gateway login that FPS, EPS and EXB filings are sent with, replacing the previous one. The login is write-only: no response returns it, and there is no GET. It has no editions or validity range, and no ETag, so the write takes no If-Match.
PUT
/
gb
/
organizations
/
{organization_id}
/
hmrc-credentials
Set HMRC Credentials
curl --request PUT \
--url https://dev.intermezzo.ai/gb/organizations/{organization_id}/hmrc-credentials \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"sender_id": "ISV635",
"sender_pass": "<string>"
}
'import requests
url = "https://dev.intermezzo.ai/gb/organizations/{organization_id}/hmrc-credentials"
payload = {
"sender_id": "ISV635",
"sender_pass": "<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({sender_id: 'ISV635', sender_pass: '<string>'})
};
fetch('https://dev.intermezzo.ai/gb/organizations/{organization_id}/hmrc-credentials', 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}/hmrc-credentials",
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([
'sender_id' => 'ISV635',
'sender_pass' => '<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://dev.intermezzo.ai/gb/organizations/{organization_id}/hmrc-credentials"
payload := strings.NewReader("{\n \"sender_id\": \"ISV635\",\n \"sender_pass\": \"<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://dev.intermezzo.ai/gb/organizations/{organization_id}/hmrc-credentials")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"sender_id\": \"ISV635\",\n \"sender_pass\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://dev.intermezzo.ai/gb/organizations/{organization_id}/hmrc-credentials")
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 \"sender_id\": \"ISV635\",\n \"sender_pass\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"errors": [
{
"code": "ORG_BELONGS_TO_A_DIFFERENT_COUNTRY",
"message": "Raised when an organization belongs to a different country than the one in the path."
}
]
}{
"errors": [
{
"code": "ORG_NOT_FOUND",
"message": "Raised when an organization is not found."
}
]
}{
"errors": [
{
"code": "HUB_CLOSED",
"message": "Raised on a write to a closed hub: it stays readable, its satellites take no writes."
}
]
}{
"errors": [
{
"code": "FIELD_REQUIRED",
"message": "<string>",
"field": "<string>",
"params": {}
}
]
}Authorizations
Get token from Auth0 and paste it here
Headers
The person acting through the access credential, recorded as created_by of what the request writes. Audit only: access is checked on the credential.
Required string length:
1 - 255Path Parameters
Body
application/json
Response
Successful Response