submit
- base
- localhost
- dev
- prod
/v2/private/purchase/vantis/submit
http://localhost:1350/v2/private/purchase/vantis/submit
https://dev.everdays.com/v2/private/purchase/vantis/submit
https://everdays.com/v2/private/purchase/vantis/submit
Available Methods​
- POST
POST /v2/private/purchase/vantis/submit​
This endpoint will be called on the last purchase screen that includes the form with all the user's information.
The data will then be sent to Vantis to create a URL for the user based on the user's information.
After getting the URL it will be saved under Vantis term life userUrl and be used with iframe HTML.
Params​
| Param | Type | Description |
|---|---|---|
| firstName | String | The user's first name |
| lastName | String | The user's last name |
| dateOfBirth | Date (ISO) | The user's date of birth |
| gender | String Enum - ['Male', 'Female'] | The user's gender |
| state | String | The user's city address (ex. MI) |
| phone | Number | The user's phone number |
String | The user's email address |
Example request body
body: {
"firstName": "cool",
"lastName": "person",
"dateOfBirth": "1982-01-30T23:52:45.372+00:00",
"gender": "Male",
"state": "zz",
"phone": "626-555-0014",
"email": "kotasarath@sureify.com"
}
Returns​
The entire user object. user.purchase data will be updated with appNumber, a pricing array, and a transactionId. Pricing data will be used for the Term Policy Builder.
The transaction ID is returned from the call to submit the application to the queue.
Example return object with user.purchase
user: {
...,
"purchase": {
"vantis": {
"termLife": {
"incrementValue": 25000,
"inflationPercentage": 0.008,
"minimumPrice": 25000,
"monthlyRateMultiplier": "0.00",
"monthlyRateMultiplierLastUpdated": "2022-10-12T13:31:37.805Z",
"lastUpdated": "2022-10-11T17:03:33.584Z",
"lastViewedScreen": {
"screenId": "care",
"date": "2022-10-11T17:03:33.584Z"
},
"priceChangeLog": [
{
"direction": "none",
"date": "2022-10-07T15:14:08.539Z",
"screenId": "care"
},
{
"direction": "up",
"date": "2022-10-10T13:59:01.469Z",
"screenId": "care"
},
{
"direction": "none",
"date": "2022-10-10T14:10:22.009Z",
"screenId": "care"
},
{
"direction": "none",
"date": "2022-10-11T17:03:33.579Z",
"screenId": "care"
}
],
"selectedPrice": 20000,
"selectedPricing": {
"coverage": 20000,
"years": 30,
"price": "$100.51"
},
"maximumPrice": 500000,
"defaultPricing": {
"coverage": 25000
},
"plans": [
{
"PlanID": 366,
"PlanCode": 6299,
"FaceMin": 25000,
"FaceMax": 500000,
"FaceStart": 25000
}
],
"selectedPlan": 366,
"userUrl": "https://vantislifeinsurancestgnew.sureify.com?vdtca&uid=710fffb1-099a-4171-9021-e074cf3684f9"
}
}
}
}
info
For more detailed information about each value in purchase, please refer to the user model docs.