The following are sample HTTP requests and responses.
The placeholders shown need to be replaced with actual values.
POST /jsv/reply/CalculateRLV HTTP/1.1
Host: services.prismalife.com
Content-Type: text/jsv
Content-Length: length
{
login:
{
username: String,
password: String
},
identifier:
{
productKey: 00000000000000000000000000000000,
avbKey: 00000000000000000000000000000000
},
language: String,
vp:
{
gender: String,
familyName: String,
firstName: String,
birthDay: 0001-01-01,
companyName: String,
isSmoker: False,
cigarettesAmount: 0,
underMedication: False,
weight: 0,
bodyHeight: 0,
bmiResult: 0,
familyStatusBestLifeStyle: False
},
vnType: String,
vn:
{
gender: String,
familyName: String,
firstName: String,
birthDay: 0001-01-01,
companyName: String,
isSmoker: False,
cigarettesAmount: 0,
underMedication: False,
weight: 0,
bodyHeight: 0,
bmiResult: 0,
familyStatusBestLifeStyle: False
},
duration:
{
insuranceBegin: 0001-01-01,
insuranceDurationType: String,
insuranceDuration: 0,
insuranceDurationInMonths: 0
},
pdfOption: String,
printCustomerCopyWatermark: False,
sum: 0,
coverage: String,
fixPremAge: 0,
paymentInterval: 0,
options:
{
rules:
[
{
key: String,
value: String
}
]
},
documents:
[
String
],
docFieldValues:
[
{
key: String,
value: String
}
],
isKidOption: False,
connectedContract: False
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
report:
{
pdf: AA==,
fileKey: String,
allPages: 0
},
responseStatus:
{
errorCode: String,
message: String,
stackTrace: String,
errors:
[
{
errorCode: String,
fieldName: String,
message: String
}
]
},
insuranceYears:
[
{
year: 0,
ageVP: 0,
prem: 0,
sum: 0
}
],
costs:
{
firstYear:
{
betaCost: 0,
setupFee: 0,
betaFamilyPlus: 0,
betaLadiesPlus: 0,
betaKidsPlus: 0,
premFamilyPlus: 0,
premLadiesPlus: 0,
premKidsPlus: 0,
premMailing: 0,
premBruttoAll: 0,
premBruttoAllCompare: 0
}
},
warnings:
[
String
]
}