B.6 Sample Responses for Removing Customer from Case

This section lists sample responses for the Removing Customer from Case API

Table B-6 Sample Responses for Removing Customer from Case

SL No Description Response Response Type and Status
1 This is the response when customers removal from an existing case is successful. {"MESSAGE": "Customers removal was successful.","STATUS": "SUCCESS", "RESULTARRAY": [{"MESSAGE": "Customers removal was successful.","STATUS": "SUCCESS","caseId": "CA100","customers": [{"MESSAGE": "Customer removed successfully.","STATUS": "SUCCESS","customerId":"CUST5"},{"MESSAGE": "Customer removed successfully.","STATUS": "SUCCESS","customerId":"CUST6"}]}] } OK 200
2 This is the response when customers removal from an existing case is partially successful. {"MESSAGE": "Customers removal was partially successful.","STATUS": "PARTIALSUCCESS", "RESULTARRAY": [{"MESSAGE": "Customers removal was successful.","STATUS": "SUCCESS","caseId": "CA100","customers": [{"MESSAGE": "Customer removed successfully.","STATUS": "SUCCESS","customerId":"CUST5"},{"MESSAGE": "Customer removed successfully.","STATUS": "SUCCESS","customerId":"CUST6"}]},{"MESSAGE": "Customers removal failed.", "STATUS": "FAILED","caseId": "CA101","customers": [{"MESSAGE": "Customer does not exist in case.","STATUS": "FAILED","customerId": "CUST3"}]}] } OK 200
3 This is the response when there is a problem with the input data. {"MESSAGE": "Invalid JSON Input format. Please correct the data.","STATUS": "FAILED" } ERROR 400
4 This is the response when the request fails because multiple errors. {"MESSAGE": "Customers removal failed.", "STATUS": "FAILED","RESULTARRAY": [{"MESSAGE": "Customers removal failed.", "STATUS": "FAILED","caseId": "CA103","customers": [{"MESSAGE": "Customer removalfailed as error occurred while deleting from customer related tables.","STATUS": "FAILED","customerId": "CUST7"}]},{"MESSAGE": "Case does not exist.", "STATUS": "FAILED","caseId": "CA3600","customers": [{"MESSAGE": null, "STATUS": null,"customerId": null}]},{"MESSAGE": "Case is locked by another user CASEANA1.","STATUS": "FAILED","caseId": "CA360","customers": [{"MESSAGE": null, "STATUS": null,"customerId": null} ] ERROR 500
5 This is the response when the request fails because of server errors. {"MESSAGE": "Customers removal failed.", "STATUS": "FAILED","RESULTARRAY": [{"MESSAGE": "Internal error occurred. Please contact system administrator.","STATUS": "FAILED","caseId": "CA103"}] } ERROR 500