PolicyStatusChange 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:

Copy
var p = {
    "policyIdentifiers": {
        "policyId": null,
        "policyNo": '8000043'
    },
    "updateType": "Issued",
    "policyUpdates": {
        "policyNo": null,
        "policyBeginDate": null,
        "policyValidityType": null,
        "policyValidity": '6'
    }
}

ebs.callActionByNameAsync("PolicyStatusChangeAPI", p)
    .then(
        function (e) {
            console.log(e.UIResult.Data)
        }
    );

 

Validations:

  • "ERR06.01 - PolicyId or PolicyNo could not be null!: could not find a policy if at least one of the parameters 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 the Issued status, the policy need to be in the 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 the In Force status, the policy need to be in the Issued status.

 

Response: