ResponseWrapperBalanceHistoryDto
Wrapper for the response containing paginated account balance history.
Status of the response
Possible values: [SUCCESS
, ERROR
]
ERROR/SUCCESS
Message describing the response
Request failed/Request successful
Code message describing the response
ERR-001/SUC-001
data object
DTO representing the balance history, including balance amounts, credit and debit details, and related dates.
List of balance amounts for each corresponding date in the history
[1000,1200.5,1300.75]
List of dates associated with each balance record
["2024-01-01","2024-02-01","2024-03-01"]
List of credit amounts recorded for each date
[200,150.5,300.75]
List of debit amounts recorded for each date
[50,40.25,80]
Currency of the balance amounts
TND
error object
Detailed information about the error response
Error code
ERR-142
Error message
Resource not found / Internal server error
details object[]
List of error details
Error code
ER4001
Detailed error message
Invalid input
Target of the error
username
List of suggestions for resolving the error
["Check the resource ID","Ensure the resource exists"]
metaData object
Additional metadata about the error, that could help in debugging
Additional metadata about the error, that could help in debugging
{"requestId":"3c5e4cebf39cbc5b","operationId":"66fd4d2ae6b6"}
Timestamp of when the response was generated
{
"status": "ERROR/SUCCESS",
"message": "Request failed/Request successful",
"codeMessage": "ERR-001/SUC-001",
"data": {
"balances": [
1000,
1200.5,
1300.75
],
"dates": [
"2024-01-01",
"2024-02-01",
"2024-03-01"
],
"credits": [
200,
150.5,
300.75
],
"debits": [
50,
40.25,
80
],
"currency": "TND"
},
"error": {
"code": "ERR-142",
"message": "Resource not found / Internal server error",
"details": [
{
"code": "ER4001",
"message": "Invalid input",
"target": "username"
}
],
"suggestions": [
"Check the resource ID",
"Ensure the resource exists"
],
"metaData": {
"requestId": "3c5e4cebf39cbc5b",
"operationId": "66fd4d2ae6b6"
}
},
"timestamp": "2024-07-29T15:51:28.071Z"
}