curl --request DELETE \
--url https://go.aiinsurance.io/api/v1/companies/{companyId}/quotes/{quoteId}/rating \
--header 'Authorization: <api-key>'import requests
url = "https://go.aiinsurance.io/api/v1/companies/{companyId}/quotes/{quoteId}/rating"
headers = {"Authorization": "<api-key>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: '<api-key>'}};
fetch('https://go.aiinsurance.io/api/v1/companies/{companyId}/quotes/{quoteId}/rating', 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://go.aiinsurance.io/api/v1/companies/{companyId}/quotes/{quoteId}/rating",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$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://go.aiinsurance.io/api/v1/companies/{companyId}/quotes/{quoteId}/rating"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://go.aiinsurance.io/api/v1/companies/{companyId}/quotes/{quoteId}/rating")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://go.aiinsurance.io/api/v1/companies/{companyId}/quotes/{quoteId}/rating")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": "550e8400-e29b-41d4-a716-446655440002"
}Clear Quote Rating
Quote door. Clears a saved quote’s rating: everything its rating
workflow owns, which is what the workflow clears before every run
(Rating),
pricing included when the workflow writes fullTermPricingInfo. It also
removes the quote’s rating evidence, __ratingEvidence, then saves the
quote, so its calculated fields recompute: fullTermBillingInfo
recalculates, and billing conditions that need pricing hold it at
null. The quote’s invoice settings and plan are left alone, so a plan
generated from the old billing may no longer add up to the new billing:
generate, attach or clear it again before you bind with it. Rating the
quote again and saving the results brings a rating back.
The workflow cleared is the one the quote’s rating evidence names (a
rate returns the evidence in its data, and saving the results stores
it). For a quote without evidence, it is the workflow recorded for the
quote by its last successful
Rate Saved Quote by Id,
or selected for it in the app’s Underwriter Workbench. An endorsement,
cancellation or reinstatement quote starts with the policy’s pricing and
no evidence. Pricing a client sent is not a rating: clear it with
Update Entity, sending
fullTermPricingInfo: null.
Refusals. With policy invoicing disabled, this returns
403 finv2-policy-invoicing-disabled. A bound or cancelled quote returns
409, as does a quote that names no rating workflow
(quote-has-no-rating). 422 quote-rating-not-clearable refuses a
workflow that is no longer configured, that changed since the quote was
rated, or that writes outside its clearedRoots, the outputs it clears,
and a clear that would leave invalid pricing behind. Each message names
its fix with your request’s ids. The save validates the quote as
Update Entity does, so a rule
of your company’s that refuses the cleared quote returns that update’s
400. Nothing is saved on a refusal.
Required permission: quote.edit
curl --request DELETE \
--url https://go.aiinsurance.io/api/v1/companies/{companyId}/quotes/{quoteId}/rating \
--header 'Authorization: <api-key>'import requests
url = "https://go.aiinsurance.io/api/v1/companies/{companyId}/quotes/{quoteId}/rating"
headers = {"Authorization": "<api-key>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: '<api-key>'}};
fetch('https://go.aiinsurance.io/api/v1/companies/{companyId}/quotes/{quoteId}/rating', 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://go.aiinsurance.io/api/v1/companies/{companyId}/quotes/{quoteId}/rating",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$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://go.aiinsurance.io/api/v1/companies/{companyId}/quotes/{quoteId}/rating"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://go.aiinsurance.io/api/v1/companies/{companyId}/quotes/{quoteId}/rating")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://go.aiinsurance.io/api/v1/companies/{companyId}/quotes/{quoteId}/rating")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": "550e8400-e29b-41d4-a716-446655440002"
}Authorizations
API key authentication. Send your raw API key as the Authorization header value with NO scheme prefix — Authorization: YOUR-API-KEY. Do NOT prefix it with Bearer or ApiKey, and do not use an X-API-Key header; those are not accepted.
Path Parameters
Company identifier
Quote identifier
Response
The rating is cleared and the quote saved. The response is the quote's id, as Update Entity returns it; read the quote with Get Entity to see its cleared and recalculated values.
The ID of the quote whose rating was cleared
