curl --request POST \
--url http://localhost:8080/users/{user_id}/insurance_policies/preview \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"benefit_id": "<string>",
"dependant_ids": [
"<string>"
]
}
'{
"benefit_name": "<string>",
"coverage_amount": {
"currency": "INR",
"value": 123
},
"duration_months": 123,
"members": [
{
"age": 123,
"dependant_id": "<string>",
"first_name": "<string>",
"gender": "male",
"last_name": "<string>",
"relationship": "self",
"salutation": "mr"
}
],
"total_daily_premium": {
"currency": "INR",
"value": 123
},
"total_monthly_premium": {
"currency": "INR",
"value": 123
}
}curl --request POST \
--url http://localhost:8080/users/{user_id}/insurance_policies/preview \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"benefit_id": "<string>",
"dependant_ids": [
"<string>"
]
}
'{
"benefit_name": "<string>",
"coverage_amount": {
"currency": "INR",
"value": 123
},
"duration_months": 123,
"members": [
{
"age": 123,
"dependant_id": "<string>",
"first_name": "<string>",
"gender": "male",
"last_name": "<string>",
"relationship": "self",
"salutation": "mr"
}
],
"total_daily_premium": {
"currency": "INR",
"value": 123
},
"total_monthly_premium": {
"currency": "INR",
"value": 123
}
}JWT access token. Obtain from /auth/otp/verify endpoint.
User ID