Employee_Beneficiary.deleteBeneficiary(String empId, int beneficiaryId)
The method allows you to delete a Beneficiary from the system.
- empId : String type mandatory argument that stores the employee id of the associated beneficiary.
- beneficiaryId: Integer type mandatory argument that stores the beneficiary id.
Success output if the operation succeeded. An exception if an error is encountered
- Unauthorized Access: If access is not allowed to the employee whose apiKey is passedIn
- InvalidEmp: If employee id is invalid or update access is not allowed to employee / beneficiary record for the current user
- InvalidBeneficiary: If the beneficiaryId is invalid or does not map to the employee.
Click on each of these links to know more about them: