Test a stored Sovos account slot
Sends one synthetic non-audit calcTax request to Sovos with the stored credentials for the environment and reports whether Sovos accepted them. Only the stored slot is probed; nothing is saved, no tax document is filed and no ledger row is written. The host comes from the slot’s environment alone. Every verdict, including rejected credentials and an unreachable Sovos, is a 200 with the outcome in the body. Records a sovos.connection_test audit event with the environment and outcome only. Behind the tax-sovos-account feature flag; 404 while it is off. Requires the companies.update permission.
curl --request POST \
--url https://api.fluid.app/api/settings/sovos_account/test_connection \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"sovos_account": {
"environment": "sandbox",
"expected_revision": [
7,
1
],
"hmac_key": "new-hmac-key"
}
}
'import requests
url = "https://api.fluid.app/api/settings/sovos_account/test_connection"
payload = { "sovos_account": {
"environment": "sandbox",
"expected_revision": [7, 1],
"hmac_key": "new-hmac-key"
} }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
sovos_account: {environment: 'sandbox', expected_revision: [7, 1], hmac_key: 'new-hmac-key'}
})
};
fetch('https://api.fluid.app/api/settings/sovos_account/test_connection', 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://api.fluid.app/api/settings/sovos_account/test_connection",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'sovos_account' => [
'environment' => 'sandbox',
'expected_revision' => [
7,
1
],
'hmac_key' => 'new-hmac-key'
]
]),
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://api.fluid.app/api/settings/sovos_account/test_connection"
payload := strings.NewReader("{\n \"sovos_account\": {\n \"environment\": \"sandbox\",\n \"expected_revision\": [\n 7,\n 1\n ],\n \"hmac_key\": \"new-hmac-key\"\n }\n}")
req, _ := http.NewRequest("POST", 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.post("https://api.fluid.app/api/settings/sovos_account/test_connection")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"sovos_account\": {\n \"environment\": \"sandbox\",\n \"expected_revision\": [\n 7,\n 1\n ],\n \"hmac_key\": \"new-hmac-key\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fluid.app/api/settings/sovos_account/test_connection")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"sovos_account\": {\n \"environment\": \"sandbox\",\n \"expected_revision\": [\n 7,\n 1\n ],\n \"hmac_key\": \"new-hmac-key\"\n }\n}"
response = http.request(request)
puts response.read_body{
"verified": true,
"environment": "sandbox",
"outcome": "verified",
"status": 200,
"meta": {
"request_id": "c4f1b9e2-7a3d-4e8b-9f21-5d6a0b3e8c47",
"timestamp": "2026-10-20T15:32:08Z"
}
}{
"message": "<string>",
"error": "<string>",
"error_message": "<string>",
"errors": "<string>",
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}
}{
"message": "<string>",
"error": "<string>",
"error_message": "<string>",
"errors": "<string>",
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}
}{
"message": "<string>",
"error": "<string>",
"error_message": "<string>",
"errors": "<string>",
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}
}{
"message": "<string>",
"error": "<string>",
"error_message": "<string>",
"errors": "<string>",
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}
}{
"message": "<string>",
"error": "<string>",
"error_message": "<string>",
"errors": "<string>",
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}
}Query Parameters
Body
Optional while the tax-settings-credentials flag is on for the company; ignored while it is off. Probes the submitted credentials over the stored slot and records one attempt event with save not_requested. Nothing is saved.
Response
Success
verified; rejected (HTTP 401 or 403); rate_limited (HTTP 429); unavailable (timeout, network failure, redirect or HTTP 5xx); unexpected_response (any other status, invalid JSON, an error in the body or a result that does not match the request). A probe of submitted credentials reports credential_authenticated instead of verified.
verified, rejected, rate_limited, unavailable, unexpected_response, credential_authenticated curl --request POST \
--url https://api.fluid.app/api/settings/sovos_account/test_connection \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"sovos_account": {
"environment": "sandbox",
"expected_revision": [
7,
1
],
"hmac_key": "new-hmac-key"
}
}
'import requests
url = "https://api.fluid.app/api/settings/sovos_account/test_connection"
payload = { "sovos_account": {
"environment": "sandbox",
"expected_revision": [7, 1],
"hmac_key": "new-hmac-key"
} }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
sovos_account: {environment: 'sandbox', expected_revision: [7, 1], hmac_key: 'new-hmac-key'}
})
};
fetch('https://api.fluid.app/api/settings/sovos_account/test_connection', 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://api.fluid.app/api/settings/sovos_account/test_connection",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'sovos_account' => [
'environment' => 'sandbox',
'expected_revision' => [
7,
1
],
'hmac_key' => 'new-hmac-key'
]
]),
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://api.fluid.app/api/settings/sovos_account/test_connection"
payload := strings.NewReader("{\n \"sovos_account\": {\n \"environment\": \"sandbox\",\n \"expected_revision\": [\n 7,\n 1\n ],\n \"hmac_key\": \"new-hmac-key\"\n }\n}")
req, _ := http.NewRequest("POST", 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.post("https://api.fluid.app/api/settings/sovos_account/test_connection")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"sovos_account\": {\n \"environment\": \"sandbox\",\n \"expected_revision\": [\n 7,\n 1\n ],\n \"hmac_key\": \"new-hmac-key\"\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.fluid.app/api/settings/sovos_account/test_connection")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"sovos_account\": {\n \"environment\": \"sandbox\",\n \"expected_revision\": [\n 7,\n 1\n ],\n \"hmac_key\": \"new-hmac-key\"\n }\n}"
response = http.request(request)
puts response.read_body{
"verified": true,
"environment": "sandbox",
"outcome": "verified",
"status": 200,
"meta": {
"request_id": "c4f1b9e2-7a3d-4e8b-9f21-5d6a0b3e8c47",
"timestamp": "2026-10-20T15:32:08Z"
}
}{
"message": "<string>",
"error": "<string>",
"error_message": "<string>",
"errors": "<string>",
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}
}{
"message": "<string>",
"error": "<string>",
"error_message": "<string>",
"errors": "<string>",
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}
}{
"message": "<string>",
"error": "<string>",
"error_message": "<string>",
"errors": "<string>",
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}
}{
"message": "<string>",
"error": "<string>",
"error_message": "<string>",
"errors": "<string>",
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}
}{
"message": "<string>",
"error": "<string>",
"error_message": "<string>",
"errors": "<string>",
"meta": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}
}