Update Submission
curl --request PUT \
--url https://api.coverwhale.dev/v1/submission/{displayId}/{transactionId} \
--header 'AccessToken: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"dba_name": "<string>",
"legal_name": "<string>",
"years_business": 123,
"phy_street": "<string>",
"phy_city": "<string>",
"phy_state": "<string>",
"phy_zip": "<string>",
"radius_0_50": 123,
"radius_51_200": 123,
"radius_201_500": 123,
"radius_501": 123,
"limit_al": 123,
"mtc_limit_option": 123,
"loss_count_al_year1": 123,
"loss_paid_al_year1": 123
}
'import requests
url = "https://api.coverwhale.dev/v1/submission/{displayId}/{transactionId}"
payload = {
"dba_name": "<string>",
"legal_name": "<string>",
"years_business": 123,
"phy_street": "<string>",
"phy_city": "<string>",
"phy_state": "<string>",
"phy_zip": "<string>",
"radius_0_50": 123,
"radius_51_200": 123,
"radius_201_500": 123,
"radius_501": 123,
"limit_al": 123,
"mtc_limit_option": 123,
"loss_count_al_year1": 123,
"loss_paid_al_year1": 123
}
headers = {
"AccessToken": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {AccessToken: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
dba_name: '<string>',
legal_name: '<string>',
years_business: 123,
phy_street: '<string>',
phy_city: '<string>',
phy_state: '<string>',
phy_zip: '<string>',
radius_0_50: 123,
radius_51_200: 123,
radius_201_500: 123,
radius_501: 123,
limit_al: 123,
mtc_limit_option: 123,
loss_count_al_year1: 123,
loss_paid_al_year1: 123
})
};
fetch('https://api.coverwhale.dev/v1/submission/{displayId}/{transactionId}', 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.coverwhale.dev/v1/submission/{displayId}/{transactionId}",
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([
'dba_name' => '<string>',
'legal_name' => '<string>',
'years_business' => 123,
'phy_street' => '<string>',
'phy_city' => '<string>',
'phy_state' => '<string>',
'phy_zip' => '<string>',
'radius_0_50' => 123,
'radius_51_200' => 123,
'radius_201_500' => 123,
'radius_501' => 123,
'limit_al' => 123,
'mtc_limit_option' => 123,
'loss_count_al_year1' => 123,
'loss_paid_al_year1' => 123
]),
CURLOPT_HTTPHEADER => [
"AccessToken: <api-key>",
"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.coverwhale.dev/v1/submission/{displayId}/{transactionId}"
payload := strings.NewReader("{\n \"dba_name\": \"<string>\",\n \"legal_name\": \"<string>\",\n \"years_business\": 123,\n \"phy_street\": \"<string>\",\n \"phy_city\": \"<string>\",\n \"phy_state\": \"<string>\",\n \"phy_zip\": \"<string>\",\n \"radius_0_50\": 123,\n \"radius_51_200\": 123,\n \"radius_201_500\": 123,\n \"radius_501\": 123,\n \"limit_al\": 123,\n \"mtc_limit_option\": 123,\n \"loss_count_al_year1\": 123,\n \"loss_paid_al_year1\": 123\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("AccessToken", "<api-key>")
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://api.coverwhale.dev/v1/submission/{displayId}/{transactionId}")
.header("AccessToken", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"dba_name\": \"<string>\",\n \"legal_name\": \"<string>\",\n \"years_business\": 123,\n \"phy_street\": \"<string>\",\n \"phy_city\": \"<string>\",\n \"phy_state\": \"<string>\",\n \"phy_zip\": \"<string>\",\n \"radius_0_50\": 123,\n \"radius_51_200\": 123,\n \"radius_201_500\": 123,\n \"radius_501\": 123,\n \"limit_al\": 123,\n \"mtc_limit_option\": 123,\n \"loss_count_al_year1\": 123,\n \"loss_paid_al_year1\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.coverwhale.dev/v1/submission/{displayId}/{transactionId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["AccessToken"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"dba_name\": \"<string>\",\n \"legal_name\": \"<string>\",\n \"years_business\": 123,\n \"phy_street\": \"<string>\",\n \"phy_city\": \"<string>\",\n \"phy_state\": \"<string>\",\n \"phy_zip\": \"<string>\",\n \"radius_0_50\": 123,\n \"radius_51_200\": 123,\n \"radius_201_500\": 123,\n \"radius_501\": 123,\n \"limit_al\": 123,\n \"mtc_limit_option\": 123,\n \"loss_count_al_year1\": 123,\n \"loss_paid_al_year1\": 123\n}"
response = http.request(request)
puts response.read_body{
"status": "success",
"submission_number": "<string>",
"transaction_id": 123,
"submission_status": "<string>"
}Submission Data
Update Submission
Updates a submission’s fields (address, radius, limits, loss history, etc.). Only sends fields that need to change.
PUT
/
submission
/
{displayId}
/
{transactionId}
Update Submission
curl --request PUT \
--url https://api.coverwhale.dev/v1/submission/{displayId}/{transactionId} \
--header 'AccessToken: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"dba_name": "<string>",
"legal_name": "<string>",
"years_business": 123,
"phy_street": "<string>",
"phy_city": "<string>",
"phy_state": "<string>",
"phy_zip": "<string>",
"radius_0_50": 123,
"radius_51_200": 123,
"radius_201_500": 123,
"radius_501": 123,
"limit_al": 123,
"mtc_limit_option": 123,
"loss_count_al_year1": 123,
"loss_paid_al_year1": 123
}
'import requests
url = "https://api.coverwhale.dev/v1/submission/{displayId}/{transactionId}"
payload = {
"dba_name": "<string>",
"legal_name": "<string>",
"years_business": 123,
"phy_street": "<string>",
"phy_city": "<string>",
"phy_state": "<string>",
"phy_zip": "<string>",
"radius_0_50": 123,
"radius_51_200": 123,
"radius_201_500": 123,
"radius_501": 123,
"limit_al": 123,
"mtc_limit_option": 123,
"loss_count_al_year1": 123,
"loss_paid_al_year1": 123
}
headers = {
"AccessToken": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {AccessToken: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
dba_name: '<string>',
legal_name: '<string>',
years_business: 123,
phy_street: '<string>',
phy_city: '<string>',
phy_state: '<string>',
phy_zip: '<string>',
radius_0_50: 123,
radius_51_200: 123,
radius_201_500: 123,
radius_501: 123,
limit_al: 123,
mtc_limit_option: 123,
loss_count_al_year1: 123,
loss_paid_al_year1: 123
})
};
fetch('https://api.coverwhale.dev/v1/submission/{displayId}/{transactionId}', 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.coverwhale.dev/v1/submission/{displayId}/{transactionId}",
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([
'dba_name' => '<string>',
'legal_name' => '<string>',
'years_business' => 123,
'phy_street' => '<string>',
'phy_city' => '<string>',
'phy_state' => '<string>',
'phy_zip' => '<string>',
'radius_0_50' => 123,
'radius_51_200' => 123,
'radius_201_500' => 123,
'radius_501' => 123,
'limit_al' => 123,
'mtc_limit_option' => 123,
'loss_count_al_year1' => 123,
'loss_paid_al_year1' => 123
]),
CURLOPT_HTTPHEADER => [
"AccessToken: <api-key>",
"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.coverwhale.dev/v1/submission/{displayId}/{transactionId}"
payload := strings.NewReader("{\n \"dba_name\": \"<string>\",\n \"legal_name\": \"<string>\",\n \"years_business\": 123,\n \"phy_street\": \"<string>\",\n \"phy_city\": \"<string>\",\n \"phy_state\": \"<string>\",\n \"phy_zip\": \"<string>\",\n \"radius_0_50\": 123,\n \"radius_51_200\": 123,\n \"radius_201_500\": 123,\n \"radius_501\": 123,\n \"limit_al\": 123,\n \"mtc_limit_option\": 123,\n \"loss_count_al_year1\": 123,\n \"loss_paid_al_year1\": 123\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("AccessToken", "<api-key>")
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://api.coverwhale.dev/v1/submission/{displayId}/{transactionId}")
.header("AccessToken", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"dba_name\": \"<string>\",\n \"legal_name\": \"<string>\",\n \"years_business\": 123,\n \"phy_street\": \"<string>\",\n \"phy_city\": \"<string>\",\n \"phy_state\": \"<string>\",\n \"phy_zip\": \"<string>\",\n \"radius_0_50\": 123,\n \"radius_51_200\": 123,\n \"radius_201_500\": 123,\n \"radius_501\": 123,\n \"limit_al\": 123,\n \"mtc_limit_option\": 123,\n \"loss_count_al_year1\": 123,\n \"loss_paid_al_year1\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.coverwhale.dev/v1/submission/{displayId}/{transactionId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["AccessToken"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"dba_name\": \"<string>\",\n \"legal_name\": \"<string>\",\n \"years_business\": 123,\n \"phy_street\": \"<string>\",\n \"phy_city\": \"<string>\",\n \"phy_state\": \"<string>\",\n \"phy_zip\": \"<string>\",\n \"radius_0_50\": 123,\n \"radius_51_200\": 123,\n \"radius_201_500\": 123,\n \"radius_501\": 123,\n \"limit_al\": 123,\n \"mtc_limit_option\": 123,\n \"loss_count_al_year1\": 123,\n \"loss_paid_al_year1\": 123\n}"
response = http.request(request)
puts response.read_body{
"status": "success",
"submission_number": "<string>",
"transaction_id": 123,
"submission_status": "<string>"
}Authorizations
AWS Cognito access token obtained from the /authentication endpoint. Token expires after 3600 seconds.
Headers
Body
application/json
DBA name
Legal name
Years in business
Physical street address
Radius 0-50 miles %
Radius 51-200 miles %
Radius 201-500 miles %
Radius 501+ miles %
AL limit (750000, 1000000, 1500000)
MTC limit option
AL loss count year 1
AL loss paid year 1