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:

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.

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:

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).