Skip to main content

health-questions

/v2/private/salesAgent/aa/fe/health-questions/{leadId}

Available Methods​

  • [POST]

POST /v2/private/salesAgent/aa/fe/health-questions/{leadId}​

This endpoint is used by a Sales Agent to submit the static health questions and reflexive questions if present. See /v2/private/salesAgent/aa/fe/reflexive-questions to retrieve reflexive questions. This endpoint will also get the final decision from AmAm. The code will update the user and order with final decision.

Params​

FieldTypeDescriptionStructure
questionAnswersObjectMedical screening responsesObject containing multiple boolean fields organized in sections: (q1a-q3c)
reflexiveAnswersArrayMedication questionnaire, not required only send if the lead had reflexive questions to answerArray of objects with format: { questionId: number, medicationName: string, questionAnswer: "yes" or "no" }
info

If the lead does not have reflexives to answer, please do not include reflexiveAnswers in the body. Only pass questionAnswers

Request Example​

Example request body
{
"questionAnswers": {
"q1a": false,
"q1b": false,
"q1c": false,
"q1d": false,
"q1e": false,
"q2a": false,
"q2b": false,
"q2c": false,
"q2d": false,
"q2e1": false,
"q2e2": false,
"q2e3": false,
"q2e4": false,
"q2e5": false,
"q2e6": false,
"q2f": false,
"q3a": false,
"q3b1": false,
"q3b2": false,
"q3b3": false,
"q3c": false
},
"reflexiveAnswers": [
{
"questionId": 1,
"medicationName": "Divalproex",
"questionAnswer": "no"
},
{
"questionId": 2,
"medicationName": "Carvedilol",
"questionAnswer": "no"
},
{
"questionId": 3,
"medicationName": "Isosorbide",
"questionAnswer": "no"
}
]
}

Returns​

The user and the updated purchase.aa.planType from AmAm.

Example return of am am object
user: {
...userData,
purchase: {
aa: {
fe: {
...restOfFields,
"planType": "Immediate",
}
}
}
}