Description
Steps to reproduce
Have a batch API request that encapsulates multiple requests, and one of them gives a business-exception. E.g.:
- Have a savings account, with balance 1000
- Have a batch request with at least 2 requests included. Have 2 withdraws:
- Withdraw 1000,
- Withdraw 1000
- Send it in to Fineract.
Expected result
- The batchAPI request has "200" as http status code
- in the response body the request-related details contain:
- "statusCode": 403
- "statusCode": 403
-
- "body": "{\n \"developerMessage\": \"Request was understood but caused a domain rule violation.\",\n \"httpStatusCode\": \"403\", ....
- "body": "{\n \"developerMessage\": \"Request was understood but caused a domain rule violation.\",\n \"httpStatusCode\": \"403\", ....
Actual result
- The batchAPI request has "200" as http status code
- in the response body the request-related details contain:
- "statusCode": 500
- "statusCode": 500
-
- "body": "{\n \"developerMessage\": \"Request was understood but caused a domain rule violation.\",\n \"httpStatusCode\": \"403\", ....
- "body": "{\n \"developerMessage\": \"Request was understood but caused a domain rule violation.\",\n \"httpStatusCode\": \"403\", ....
Attachments
Issue Links
- is a child of
-
FINERACT-1874 Release Apache Fineract 1.9.0
- In Progress
- links to