B.11 Sample Responses for Add Transaction to Case API
This section lists sample responses for the Add Transaction to Case API.
Table B-11 Sample Responses for Add Transaction to Case API
SL No | Description | Response | Response Type and Status |
---|---|---|---|
1 | This is the response when transactions addition to an existing case is successful. | {"MESSAGE": "Transactions addition was successful.","STATUS":
"SUCCESS", "RESULTARRAY": [{"MESSAGE": "Transactions addition was
successful.","STATUS": "SUCCESS","caseId": "CA100","transactions":
[{"MESSAGE": "Transaction added successfully.","STATUS":
"SUCCESS","transactionReferenceId": "ACCIDIOSRMAC-5"},{"MESSAGE":
"Transaction added successfully.","STATUS":
"SUCCESS","transactionReferenceId": "ACCIDIOSRMAC-6"}]}]
} |
OK 200 |
2 | This is the response when transactions addition to an existing case is partially successful. | {"MESSAGE": "Transactions addition was partially
successful.","STATUS": "PARTIALSUCCESS", "RESULTARRAY": [{"MESSAGE":
"Transactions addition was successful.","STATUS":
"SUCCESS","caseId": "CA100","transactions": [{"MESSAGE":
"Transaction added successfully.","STATUS":
"SUCCESS","transactionReferenceId": "ACCIDIOSRMAC-5"},{"MESSAGE":
"Transaction added successfully.","STATUS":
"SUCCESS","transactionReferenceId": "ACCIDIOSRMAC-6"}]},{"MESSAGE":
"Transactions addition failed.","STATUS": "FAILED","caseId":
"CA101","transactions": [{"MESSAGE": "Transaction does not exist in
business.","STATUS": "FAILED","transactionReferenceId":
"ACCIDIOSRMAC-3"},{ "MESSAGE": "Transaction already
exists.", |
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 addition failed.",
"STATUS": "FAILED","RESULTARRAY": [{"MESSAGE": "Transactions
addition failed.","STATUS": "FAILED","caseId":
"CA103","transactions": [{"MESSAGE": "Transaction account does not
exists.","STATUS": "FAILED","transactionReferenceId":
"ACCIDIOSRMAC-5"},{"MESSAGE": "Transaction insertion failed as error
occurred while inserting into transaction related tables.","STATUS":
"FAILED","transactionReferenceId": "ACCIDIOSRMAC-7"}]},{"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", |
ERROR 500 |
5 | This is the response when the request fails because of server errors. | {"MESSAGE": "Internal error occurred. Please
contact system administrator.","STATUS": "FAILED","caseId": "CA100"
} |
ERROR 500 |