POST
/
users
/
{user_id}
/
insurance_policies
/
preview
cURL
curl --request POST \
  --url http://localhost:8080/users/{user_id}/insurance_policies/preview \
  --header 'Content-Type: application/json' \
  --data '
{
  "benefit_id": "<string>",
  "dependant_ids": [
    "<string>"
  ],
  "questionnaire_responses": [
    {
      "answer": true,
      "question": "<string>"
    }
  ]
}
'
{
  "benefit_name": "<string>",
  "coverage_amount": {
    "value": 123
  },
  "duration": {
    "days": 123
  },
  "members": [
    {
      "age": 123,
      "dependant_id": "<string>",
      "first_name": "<string>",
      "last_name": "<string>"
    }
  ],
  "nominee_required": true,
  "plan_code": "<string>",
  "premium_amounts": {
    "annual": {
      "value": 123
    },
    "daily": {
      "value": 123
    },
    "sponsor_contribution": {
      "value": 123
    }
  },
  "grace_period_days": 123
}

Path Parameters

user_id
string
required

User ID

Body

application/json
benefit_id
string
required
dependant_ids
string[]
required
questionnaire_responses
object[] | null

Response

Premium preview

benefit_name
string
required
coverage_amount
object
required
duration
object
required

A length of time expressed in a single unit.

Wire format: externally-tagged union — single-key object whose key is the unit name (days / months / years) and whose value is the integer count. Example: {"months": 12} or {"years": 1}.

members
object[]
required
nominee_required
boolean
required
plan_code
string
required
premium_amounts
object
required
grace_period_days
integer<int32> | null