Skip to main content

selectPrice

/v2/private/termLife/selectPrice

Available Methods​

  • PUT

PUT /v2/private/termLife/selectPrice​

This endpoint is used to update the selected price for the term life, used the same way that the final expenses works

Params​

ParamTypeDescription
currentScreenStringcurrent screen user is on - see enum
selectedPriceNumbercurrent user selected price
Example request body
  body: {
currentScreen: 'care',
selectedPrice: 70000
}

Returns​

The entire user object with an updated termLife object.

Example return object with user.termLife
user: {
termLife: {
lastUpdated: "2022-08-23T20:07:12.032Z",
lastViewedScreen: {
screenId: "care",
date: "2022-08-23T20:07:12.031Z"
},
selectedPrice: 70000,
monthlyRateMultiplier: 0.00887,
monthlyRateMultiplierLastUpdated: "2022-08-23T20:36:54.075Z",
priceChangeLog: [
{
direction: "none",
date: "2022-08-16T14:05:13.051Z",
screenId: "start"
},
{
direction: "up",
date: "2022-08-16T14:05:46.016Z",
screenId: "start"
},
{
direction: "up",
date: "2022-08-16T14:06:04.208Z",
screenId: "care"
},
{
direction: "none",
date: "2022-08-16T14:11:01.417Z",
screenId: "care"
},
{
direction: "none",
date: "2022-08-16T14:14:27.608Z",
screenId: "care"
},
{
direction: "none",
date: "2022-08-16T14:40:05.463Z",
screenId: "care"
},
{
direction: "none",
date: "2022-08-16T15:40:29.224Z",
screenId: "care"
},
{
direction: "none",
date: "2022-08-23T20:07:12.028Z",
screenId: "care"
}
],
incrementValue: 10000,
inflationPercentage: 0.008,
order: {
orderId: "termLife-49E84256",
submittedOn: "2022-08-17T18:10:03.408Z",
orderType: 2
},
minimumPrice: 150000
},
}
info

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