Policy Status Change API
This API is used in order to automatize the transition of a policy in the Issued and In Force statuses.
The PolicyStatusChangeAPI
endpoint uses a library hat contains functions used in the process.
Call:
var p = {
"policyIdentifiers": {
"policyId": null,
"policyNo": '8000043'
},
"updateType": "Issued", // "In Force"
"policyUpdates": {
"policyNo": null,
"policyBeginDate": null,
"policyValidityType": null,
"policyValidity": '6'
}
}
ebs.callActionByNameAsync("PolicyStatusChangeAPI", p)
.then(
function (e) {
console.log(e.UIResult.Data)
}
);
Error Codes:
-
"ERR06.01 - PolicyId or PolicyNo could not be null!"
→ could not find a policy if at least one of the params is not specified. -
"ERR06.03 - The Policy is not in Proposal status, therefore the transition to Issued is not possible!"
→ when transitioning the policy to Issued status the policy need to be in Proposal Status; -
"ERR06.04 - The Policy is not in Issued status, therefore the transition to In Force is not possible!";
→ when transitioning the policy to In Force status the policy need to be in Issued Status; -
ERR06.05 - Policy does not exists!;
→ when no policy with specified name/id is found
Response: