B.8 Sample Responses for Remove Account from Case API

This section lists sample responses for the Remove Account from Case API.

Table B-8 Sample Responses for Remove Account from Case API

SL No Description Response Response Type and Status
1 This is the response when account removal from an existing case is successful. {"MESSAGE": "Accounts removal was successful.","STATUS": "SUCCESS", "RESULTARRAY": [{"MESSAGE": "Accounts removal was successful.","STATUS": "SUCCESS","caseId": "CA100","accounts": [{"MESSAGE": "Account removed successfully.","STATUS": "SUCCESS","accountId":"ACCT-5"},{"MESSAGE": "Account removed successfully.","STATUS": "SUCCESS","accountId":"ACCT-6"}]}] } OK 200
2 This is the response when account removal from an existing case is partially successful. {"MESSAGE": "Accounts removal was partially successful.","STATUS": "PARTIALSUCCESS", "RESULTARRAY": [{"MESSAGE": "Accounts removal was successful.","STATUS": "SUCCESS","caseId": "CA100","accounts": [{"MESSAGE": "Account removed successfully.","STATUS": "SUCCESS","accountId":"ACCT-5"},{"MESSAGE": "Account removed successfully.","STATUS": "SUCCESS","accountId":"ACCT-6"}]},{"MESSAGE": "Accounts removal failed.", "STATUS": "FAILED","caseId": "CA101","accounts": [{"MESSAGE": "Account does not exist in case.","STATUS": "FAILED","accountId": "ACCT-3"}]}] } 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": "Accounts removal failed.", "STATUS": "FAILED","RESULTARRAY": [{"MESSAGE": "Accounts removal failed.", "STATUS": "FAILED","caseId": "CA103","accounts": [{"MESSAGE": "Account removal failed as error occurred while deleting from account related tables.","STATUS": "FAILED","accountId": "ACCT-7"}]},{"MESSAGE": "Case does not exist.", "STATUS": "FAILED","caseId": "CA3600","accounts": [{"MESSAGE": null, "STATUS": null,"accountId": null}]},{"MESSAGE": "Case is locked by another user CASEANA1.","STATUS": "FAILED","caseId": "CA360","accounts": [{"MESSAGE": null, "STATUS": null,"accountId": null} ] ERROR 500
5 This is the response when the request fails because of server errors. {"MESSAGE": "Accounts removal failed.", "STATUS": "FAILED","RESULTARRAY": [{"MESSAGE": "Internal error occurred. Please contact system administrator.","STATUS": "FAILED","caseId": "CA103"}] } ERROR 500