Skip to main content

amounts

/v2/private/salesAgent/lead/:id/amounts

Available Methods​

  • POST

POST /v2/private/salesAgent/lead/:id/amounts​

This endpoint is used by Sales Agents / Counselors to edit a lead's coverage allocation amounts.

The total sum of all amounts provided will be compared with the user's purchase.truStage.productSelected.coverageAmount to see if they are equal.

info

The user calling this endpoint must be Sales Agent / Counselor or Everdays Admin

Params​

ParamTypeDescription
amountsObjectAn object containing keys for each category.

amounts object​

KeyTypeDescription
cemeteryNumberAmount to allocate for cemetery expenses.
funeralNumberAmount to allocate for funeral expenses.
heirsNumberAmount to allocate for Heirs.
charityNumberAmount to allocate for Charity.
billsNumberAmount to allocate for Bills.
otherNumberAmount for other allocations.
info

Unlike /salesAgent/lead/:id/categories, all categores are not required to be included in amounts. Please only provide the categories that were selected and their amounts.

Example request body
body: {
"amounts": {
"cemetery": 7000,
"heirs": 1000,
"other": 2000
}
}

Returns​

The lead's user object.

Example return object of just user
user: {
...,
life: {
...,
policyCoverage: {
cemetery: {
selected: true,
amount: 7000
},
funeral: {
selected: false,
amount: 0
},
heirs: {
selected: true,
amount: 1000
},
charity: {
selected: false,
amount: 0
},
bills: {
selected: false,
amount: 0
},
other: {
selected: true,
amount: 2000
}
}
}
}