GET api/CreaSimulator?goal={goal}&goalName={goalName}&goalValue={goalValue}&goalYears={goalYears}&goalPct={goalPct}&age={age}

Método que ejecuta la fase 1 de la simulación del producto Seguro de vida con ahorro CREA

Request Information

URI Parameters

NameDescriptionTypeAdditional information
goal

Objetivo de ahorro

SavingGoals

Required

goalName

Nombre dado al objetivo

string

Required

goalValue

Valor de cuanto cuesta el objetivo hoy

decimal number

Required

goalYears

Cantidad de años en los que desea alcanzar el objetivo

integer

Required

goalPct

Tasa efectiva anual

decimal number

Required

age

Edad del cliente

integer

Required

Body Parameters

None.

Response Information

Resource Description

Costo del objetivo a futuro

SimulationInfo
NameDescriptionTypeAdditional information
GoalYears

integer

None.

MonthlyPayment

decimal number

None.

MonthlyPaymentStr

string

None.

FutureGoal

decimal number

None.

FutureGoalStr

string

None.

InitialInsuredValue

decimal number

None.

InitialInsuredValueStr

string

None.

ModerateProjectionValue

decimal number

None.

ModerateProjectionValueStr

string

None.

OptimisticProjectionValue

decimal number

None.

OptimisticProjectionValueStr

string

None.

RevocationTable

Collection of RevocationTable

None.

ErrorMsj

string

None.

Response Formats

application/json, text/json

Sample:
{
  "GoalYears": 1,
  "MonthlyPayment": 2.1,
  "MonthlyPaymentStr": "$2.10",
  "FutureGoal": 3.1,
  "FutureGoalStr": "$3.10",
  "InitialInsuredValue": 4.1,
  "InitialInsuredValueStr": "$4.10",
  "ModerateProjectionValue": 5.1,
  "ModerateProjectionValueStr": "$5.10",
  "OptimisticProjectionValue": 6.1,
  "OptimisticProjectionValueStr": "$6.10",
  "RevocationTable": [
    {
      "Year": 1,
      "Moderate": 2.1,
      "ModerateStr": "$2.10",
      "Optimistic": 3.1,
      "OptimisticStr": "$3.10",
      "SavingReserveValue": 4.1,
      "SavingReserveValueStr": "$4.10",
      "InsuredValue": 5.1,
      "InsuredValueStr": "$5.10"
    },
    {
      "Year": 1,
      "Moderate": 2.1,
      "ModerateStr": "$2.10",
      "Optimistic": 3.1,
      "OptimisticStr": "$3.10",
      "SavingReserveValue": 4.1,
      "SavingReserveValueStr": "$4.10",
      "InsuredValue": 5.1,
      "InsuredValueStr": "$5.10"
    }
  ],
  "ErrorMsj": "sample string 7"
}

application/xml, text/xml

Sample:
<SimulationInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SkCo.CreaSimulator.Public.Entities">
  <ErrorMsj>sample string 7</ErrorMsj>
  <FutureGoal>3.1</FutureGoal>
  <GoalYears>1</GoalYears>
  <InitialInsuredValue>4.1</InitialInsuredValue>
  <ModerateProjectionValue>5.1</ModerateProjectionValue>
  <MonthlyPayment>2.1</MonthlyPayment>
  <OptimisticProjectionValue>6.1</OptimisticProjectionValue>
  <RevocationTable>
    <RevocationTable>
      <InsuredValue>5.1</InsuredValue>
      <Moderate>2.1</Moderate>
      <Optimistic>3.1</Optimistic>
      <SavingReserveValue>4.1</SavingReserveValue>
      <Year>1</Year>
    </RevocationTable>
    <RevocationTable>
      <InsuredValue>5.1</InsuredValue>
      <Moderate>2.1</Moderate>
      <Optimistic>3.1</Optimistic>
      <SavingReserveValue>4.1</SavingReserveValue>
      <Year>1</Year>
    </RevocationTable>
  </RevocationTable>
</SimulationInfo>