The following are sample HTTP requests and responses.
The placeholders shown need to be replaced with actual values.
POST /jsv/reply/CalculateMR 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
},
insuranceBegin: 0001-01-01,
endAge: 0,
jobId: 0,
rent: 0,
dynamicPlus: False,
pensionPlus: False,
riskPlusSum: 0,
riskPlusDuration: 0,
dreadDiseasePlusSum: 0,
buPlusRent: 0,
buPlusVersion: String,
buPlusEndAge: 0,
jobStateKey: String,
selfEmployedSince: 0001-01-01,
partTimePersonnel: 0,
fullTimePersonnel: 0,
masterCraftsmanCertificate: False,
activityPhysicallyPercent: 0,
activityOutdoorPercent: 0,
activityAtBackOfficePercent: 0,
activityExternalPercent: 0,
activityAsSupervisorPercent: 0,
pdfOption: String,
printCustomerCopyWatermark: False,
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
},
documents:
[
{
pdf: AA==,
fileKey: String,
allPages: 0
}
],
responseStatus:
{
errorCode: String,
message: String,
stackTrace: String,
errors:
[
{
errorCode: String,
fieldName: String,
message: String
}
]
},
warnings:
[
String
],
id: String,
prem: 0,
premDynamicPlus: 0,
premPensionPlus: 0,
premDreadDiseasePlus: 0,
premRiskPlus: 0,
premBuPlus: 0,
premBuPlusDynamicPlus: 0,
premTotal: 0,
premDynamicPlusTotal: 0,
alphaFee: 0,
betaYear: 0
}