ResponseWrapperCashVoucherListDto
Wrapper for the response containing the list of cash vouchers.
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
Represents paginated results.
content object[]
The list of items in the current page.
Name of the agency that issued the cash voucher.
Main Agency
Form type of the cash voucher.
Form A
Description of the cash voucher form.
Standard cash voucher form
Code representing the transaction type associated with the cash voucher.
TX123
Description of the transaction type associated with the cash voucher.
Deposit transaction
Subscriber's account number associated with the cash voucher.
987654321
Name of the subscriber who owns the cash voucher.
John Doe
Subscriber's CIN (National ID) number.
CIN12345678
Cash voucher number.
BDC123456
Effective date of the cash voucher.
01-01-2023
Duration in months of the cash voucher.
12
Amount associated with the cash voucher.
1500
Formatted amount of the cash voucher (with currency).
1,500.00
End date of the cash voucher.
01-01-2024
Type of interest associated with the cash voucher.
Fixed
Description of the interest type.
Fixed rate interest
Creditor rate associated with the cash voucher.
5.0
Amount of interest accrued on the cash voucher.
50.0
Rate of interest applied to the cash voucher.
5.0
VAT applied to the interest amount.
5.0
Current status of the cash voucher.
Active
Description of the cash voucher status.
Voucher is currently active
Reimbursement account number associated with the cash voucher.
1234567890
Reimbursement account title associated with the cash voucher.
Reimbursement Account
Reimbursement name associated with the cash voucher.
Jane Doe
CIN of the person responsible for reimbursement.
CIN98765432
Transaction type for reimbursement.
Refund
Description of the reimbursement transaction type.
Refund transaction
Radical of the cash voucher.
RA123
Account number associated with the cash voucher.
9876543210
Maximum amount for filtering cash vouchers.
2000
Minimum amount for filtering cash vouchers.
500
Start date for the cash voucher.
01-01-2023
The total number of elements across all pages.
100
The total number of pages available.
10
The current page number (zero-based).
0
The number of items per page.
10
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": {
"content": [
{
"agencyName": "Main Agency",
"cashVoucherForm": "Form A",
"formDescription": "Standard cash voucher form",
"transactionTypeCode": "TX123",
"transactionTypeDescription": "Deposit transaction",
"subscriberAccountNumber": "987654321",
"subscriberName": "John Doe",
"subscriberCIN": "CIN12345678",
"cashVoucherNumber": "BDC123456",
"effectiveDate": "01-01-2023",
"durationInMonths": "12",
"amount": 1500,
"formattedAmount": "1,500.00",
"endDate": "01-01-2024",
"interestType": "Fixed",
"interestTypeDescription": "Fixed rate interest",
"creditorRate": "5.0",
"interestAmount": "50.0",
"interestRate": "5.0",
"vatOnInterest": "5.0",
"status": "Active",
"statusDescription": "Voucher is currently active",
"reimbursementAccountNumber": "1234567890",
"reimbursementAccountTitle": "Reimbursement Account",
"reimbursementName": "Jane Doe",
"reimbursementCIN": "CIN98765432",
"reimbursementTransactionType": "Refund",
"reimbursementTransactionTypeDescription": "Refund transaction",
"radical": "RA123",
"accountNumber": "9876543210",
"maxAmount": 2000,
"minAmount": 500,
"startDate": "01-01-2023"
}
],
"totalElements": 100,
"totalPages": 10,
"number": 0,
"size": 10
},
"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"
}