B.5 Sample Responses for Adding Customer to Case

This section lists sample responses for the Adding Customer to Case API

Table B-5 Sample Responses for Adding Customer to Case

SL No Description Response Response Type and Status
1 This is the response when customer addition to an existing case is successful. {"MESSAGE": "Customers addition was successful.", "STATUS": "SUCCESS","RESULTARRAY": [{"MESSAGE": "Customers addition was successful.", "STATUS": "SUCCESS","caseId": "CA100","customers": [{"MESSAGE": "Customer addedsuccessfully.", "STATUS": "SUCCESS","customerId":"CUST5"},{"MESSAGE": "Customer addedsuccessfully.", "STATUS": "SUCCESS","customerId":"CUST6"}]}] } OK 200
2 This is the response when customer addition to an existing case is partially successful. {"MESSAGE": "Customers addition was partially successful.", "STATUS": "PARTIALSUCCESS","RESULTARRAY": [{"MESSAGE": "Customers addition was successful.", "STATUS": "SUCCESS","caseId": "CA100","customers": [{"MESSAGE": "Customer addedsuccessfully.", "STATUS": "SUCCESS","customerId":"CUST5"},{"MESSAGE": "Customer addedsuccessfully.", "STATUS": "SUCCESS","customerId":"CUST6"}]},{"MESSAGE": "Customers addition failed.", "STATUS": "FAILED","caseId": "CA101","customers": [{"MESSAGE": "Customer does not exist in business.", "STATUS": "FAILED","customerId": "CUST3"},{"MESSAGE": "Customer already exists.", "STATUS": "FAILED", "customerId":"CUST4" } ] } ] } 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 of multiple errors. {"MESSAGE": "Customers addition failed.", "STATUS": "FAILED","RESULTARRAY": [{"MESSAGE": "Customers addition failed.", "STATUS": "FAILED","caseId": "CA103","customers": [{"MESSAGE": "Customer account does not exists.", "STATUS": "FAILED","customerId": "CUST5"},{"MESSAGE": "Customer online account does not exists.", "STATUS": "FAILED","customerId": "CUST6"},{"MESSAGE": "Customer insertion failed as error occurred while inserting into 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": ERROR 500
5 This is the response when the request fails because of server errors. {"MESSAGE": "Customers addition failed.", "STATUS": "FAILED","RESULTARRAY": [{"MESSAGE": "Internal error occurred. Please contact system administrator.", "STATUS": "FAILED","caseId": "CA103"}] } ERROR 500