B.7 Sample Responses for Add Account to Case API

This section lists sample responses for the Add Account to Case API

Table B-7 Sample Responses for Add Account to Case API

SL No Description Response Response Type and Status
1 This is the response when account addition to an existing case is successful. {"MESSAGE": "Accounts addition was successful.","STATUS": "SUCCESS", "RESULTARRAY": [{"MESSAGE": "Accounts addition wassuccessful.","STATUS": "SUCCESS","caseId": "CA120","accounts": [{"MESSAGE": "Account addedsuccessfully.","STATUS": "SUCCESS","accountId": "ACCT1"},{"MESSAGE": "Account addedsuccessfully.","STATUS": "SUCCESS","accountId": "ACCIDIOSRMAC-001"}]}]} OK 200
2 This is the response when account addition to an existing case is partially successful. {"MESSAGE": "Accounts addition was partially successful.","STATUS": "PARTIALSUCCESS", "RESULTARRAY": [{"MESSAGE": "Accounts addition was successful.","STATUS": "SUCCESS","caseId": "CA120","accounts": [{"MESSAGE": "Account added successfully.","STATUS": "SUCCESS","accountId": "ACCT1"},{"MESSAGE": "Account added successfully.","STATUS": "SUCCESS", "accountId":"ACCIDIOSRMAC-001"}]},{"MESSAGE": "Accounts addition failed.", "STATUS": "FAILED","caseId": "CA100","accounts": [{"MESSAGE": "Account does not exist in business.","STATUS": "FAILED","accountId": "ACCT3"},{"MESSAGE": "Account already exists.", "STATUS": "FAILED","accountId": "ACCT4"} ] 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 addition failed.", "STATUS": "FAILED","RESULTARRAY": [{"MESSAGE": "Accounts addition failed.", "STATUS": "FAILED","caseId": "CA103","accounts": [{"MESSAGE": "Account does not exists.", "STATUS": "FAILED","accountId": "ACCT5"},{"MESSAGE": "Account insertion failed as error occurred while inserting into account related tables.","STATUS": "FAILED","accountId": "ACCT7"}]},{"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": "CA200","accounts": [ { ERROR 500
5 This is the response when the request fails because of server errors. {"MESSAGE": "Accounts addition failed.", "STATUS": "FAILED","RESULTARRAY": [{"MESSAGE": "Internal error occurred. Please contact system administrator.","STATUS": "FAILED","caseId": "CA103"}] } ERROR 500