GET v1/surrender/getSurrenderValue?user_id={user_id}&policyNo={policyNo}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| user_id | integer |
Required |
|
| policyNo | string |
Required |
Body Parameters
None.
Response Information
Resource Description
getSurrenderValueResult| Name | Description | Type | Additional information |
|---|---|---|---|
| success | boolean |
None. |
|
| message | string |
None. |
|
| errorMsg | string |
None. |
|
| policyNo | string |
None. |
|
| productName | string |
None. |
|
| surrenderAmount | decimal number |
None. |
|
| surrenderFee | decimal number |
None. |
|
| finalSurrenderAmount | decimal number |
None. |
Response Formats
application/json, text/json
Sample:
{
"success": true,
"message": "sample string 2",
"errorMsg": "sample string 3",
"policyNo": "sample string 4",
"productName": "sample string 5",
"surrenderAmount": 6.0,
"surrenderFee": 7.0,
"finalSurrenderAmount": 8.0
}
application/xml, text/xml
Sample:
<getSurrenderValueResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/unifiedApp.Models.surrender"> <errorMsg>sample string 3</errorMsg> <finalSurrenderAmount>8</finalSurrenderAmount> <message>sample string 2</message> <policyNo>sample string 4</policyNo> <productName>sample string 5</productName> <success>true</success> <surrenderAmount>6</surrenderAmount> <surrenderFee>7</surrenderFee> </getSurrenderValueResult>
text/html
Sample:
{"success":true,"message":"sample string 2","errorMsg":"sample string 3","policyNo":"sample string 4","productName":"sample string 5","surrenderAmount":6.0,"surrenderFee":7.0,"finalSurrenderAmount":8.0}