Product schemas and industry codes
Before you request a quote you need two things from SecondSight: which products you may quote,
and what each one asks. Both come from the products:read scope.
List the products you can quote
GET /v1/products?carrier_id=6f1c1a52-3a0e-4e0b-9a7a-2a3b4c5d6e7f
Authorization: Bearer <token>
The list holds the products the carrier enabled on your connection, in their currently
published version. Leave out carrier_id to list every carrier you have an active connection
with. A carrier you are not connected to returns an empty list, not an error.
Each product carries:
schema_version: changes whenever the product's questions change. Cache the schema and re-fetch it when this value moves.limitandretention: the carrier's bounds, as decimal strings in the product'scurrency. Whentiersis set, those are the only values the carrier offers.checks_mode: how the carrier treats its firm checks (see Statuses).quotableandnot_quotable_reason. A product that cannot be quoted through the API yet is still listed, so you can see it is coming:
not_quotable_reason |
Meaning |
|---|---|
product_not_published |
The carrier has not published the product. |
no_published_form |
The product has no published application form. |
no_rater |
No rater is attached to the product. |
stp_rules_not_v2 |
The product's straight-through rules are not yet on the engine API quoting uses. |
Read a product's question schema
GET /v1/products/{product_id}/schema
Authorization: Bearer <token>
If-None-Match: "3f9c0d6a1b2e4c5d8e7f9a0b1c2d3e4f"
risk_schema is a JSON Schema (2020-12) for the risk object of POST /v1/quotes. It holds
the carrier's published application questions and any rating input no question covers.
- Property names are the question's name on the carrier's form.
x-data-elementnames the SecondSight data element a question answers; it is the same across carriers, so you can map once and reuse the mapping for every carrier that asks for that element. - Numbers and amounts are decimal strings, never JSON numbers. Amounts are in the product's currency.
- A question asked only after a particular answer to another is required only then. When the
condition is a single answer, the schema states it as
if/then. Any other condition on your answers is in the question'sx-required-when, and is checked against yourriskwhen you request the quote. - A question asked only for some revenue bands or only when a coverage is elected is not in
required, because the schema cannot see yourinsuredoroptions. Itsx-required-whennames therevenue_bandorelected_coverage; answer it when that applies. - A number with a range carries it as
x-minimum/x-maximum(numbers travel as decimal strings, which JSON Schema's ownminimumdoes not apply to). The range is enforced. - The insured's name, address, domain, revenue, employee count, year established and industry
go in the
insuredblock, and limits and retentions inoptions. The schema does not ask for them again. - Questions answered with a signature, a document or an attestation are not part of a quote.
They are listed in
bind_requirementsand collected at bind.
The response's ETag equals schema_version. Send it back in If-None-Match, and an
unchanged schema answers 304 with no body.
A product that is not enabled on your connection answers 404, whether or not it exists, so
product ids cannot be probed.
Industry
Send the insured's industry in exactly one of two ways:
insured.naics_code: a 6-digit NAICS code. Always accepted.insured.carrier_class_code: a code from the carrier's own class list, when you already know it. It must be in the carrier's active list;industry.carrier_class_codes_loadedon the schema tells you whether the carrier has one.
Sending both, or neither, fails validation.
SecondSight translates a NAICS code into the carrier's class code through the carrier's own
list, the same way it does for a submission that arrives by email. When the list does not
cover the NAICS code, the quote is not rejected and SecondSight does not guess a class: it is
referred to an underwriter with the reason "Industry not in the carrier's class list"
(industry.unmapped_naics_outcome is referred).