HTTP + JSV
The following are sample HTTP requests and responses.
The placeholders shown need to be replaced with actual values.
POST /jsv/reply/BeneficiaryEcardPDFRequest HTTP/1.1
Host: mb-mobile-api.medibuddy.in
Content-Type: text/jsv
Content-Length: length
{
maid: 0,
beneficiaryName: String,
mobileNumber: 0,
email: String,
otpRequest:
{
encryptedText: String,
mobileNumber: String,
email: String,
otp: String,
passwordEncryption: String,
initialVector: String,
otpExpiryDateTime: 0001-01-01
},
mbToken: String,
ipAddress: String,
userAgent: String,
userPlatform: String,
platformVer: String,
mobileDeviceModel: String
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
isSuccess: False,
errorMessage: String,
mobileNumber: String,
emailId: String,
fileName: String,
fileBytes: AA==,
otpResponse:
{
encryptedText: String,
isSendOTPSuccess: False,
errorMsg: String,
initialVector: String,
passwordEncryption: String
}
}