Skip to main content

selectProduct

/v2/private/engine/selectProduct

Available Methods​

  • POST

POST /v2/private/engine/selectProduct​

This endpoint takes the selected product and saves it to the user under insurance.selectedProduct.productData

Params​

ParamTypeDescription
productObjectThe product data the user selected from their matches
product schema
const InsuranceProductSchema = {
id: Number,
productName: String,
everdaysWrapper: String,
provider: String,
type: { type: String, enum: ["wholeLife", "termLife", "finalExpenses"] },
productIcon: String,
disqualifiers: [String],
score: Number,
highlights: [String],
objectives: [String],
negatives: [String],
};
Example request body
body: {
"product":
{
"id": 0,
"productName": "Vantis Whole Life",
"everdaysWrapper": "Whole Life",
"provider": "Vantis",
"type": "wholeLife",
"productIcon": "https://everdays.com/_next/image?url=%2Fnext-images%2Ficons%2Fshield-icon.svg&w=96&q=100",
"disqualifiers": [
"seriousIllness",
"inCare",
"obese",
"ageBetween65To69",
"ageBetween70To79",
"age80Plus"
],
"score": 7.714285714285715,
"highlights": [
"As low as $5/mo",
"Up to $35,000 in coverage",
"Copy still TBD"
],
"objectives": [
"Nursing Care rider allows you to utilize up to 95% of your benefit for your LTC needs",
"Copy still TBD"
],
"negatives": [
"Term life insurance products end after a set number of years",
"Can get expensive after you turn 75",
"Copy still TBD"
]
}
}

Returns​

The entire user object with user.insurance.selectedProduct updated.

Example return schema
{
user: {
insurance: {
selectedProduct: {
productData: InsuranceProductSchema,
dateSelected: Date,
wasRejected: Boolean
}
}
}
}

info

For more detailed information about each value in insurance, please refer to the user model docs.