The following are sample HTTP requests and responses.
The placeholders shown need to be replaced with actual values.
POST /jsv/reply/CalculateDD 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
},
tsPercent: 0,
connectedContract: False,
pdfOption: String,
printCustomerCopyWatermark: False,
insuranceSum: 0,
paymentInterval: 0,
options:
{
rules:
[
{
key: String,
value: String
}
]
},
documents:
[
String
],
docFieldValues:
[
{
key: String,
value: String
}
],
isKidOption: False,
ppDynamic: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
report:
{
pdf: AA==,
fileKey: String,
allPages: 0
},
documents:
[
{
pdf: AA==,
fileKey: String,
allPages: 0
}
],
responseStatus:
{
errorCode: String,
message: String,
stackTrace: String,
errors:
[
{
errorCode: String,
fieldName: String,
message: String
}
]
},
id: String,
premDD: 0,
premTS: 0,
premSum: 0,
insuranceSumDD: 0,
insuranceSumTS: 0,
tsPercent: 0,
insuranceDuration: 0,
insuranceDurationLifeTime: False,
insuranceBegin: 0001-01-01,
insuranceEnd: 0001-01-01,
costsDD:
{
alphaFeeToPayTotalYear1: 0,
alphaFeeToPayTotal: 0,
betaPlusGamma: 0,
beta2PlusGamma: 0
},
warnings:
[
String
]
}