B.12 Sample Responses for Remove Transaction from Case API

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

Table B-12 Sample Responses for Remove Transaction from Case API

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