ResponseWrapperCashVoucherListDto
Wrapper for the response containing the list of cash vouchers.
Status of the response
Possible values: [SUCCESS, ERROR]
ERROR/SUCCESSMessage describing the response
Request failed/Request successfulCode message describing the response
ERR-001/SUC-001data object
Represents paginated results.
content object[]
The list of items in the current page.
Name of the agency that issued the cash voucher.
Main AgencyForm type of the cash voucher.
Form ADescription of the cash voucher form.
Standard cash voucher formCode representing the transaction type associated with the cash voucher.
TX123Description of the transaction type associated with the cash voucher.
Deposit transactionSubscriber's account number associated with the cash voucher.
987654321Name of the subscriber who owns the cash voucher.
John DoeSubscriber's CIN (National ID) number.
CIN12345678Cash voucher number.
BDC123456Effective date of the cash voucher.
01-01-2023Duration in months of the cash voucher.
12Amount associated with the cash voucher.
1500Formatted amount of the cash voucher (with currency).
1,500.00End date of the cash voucher.
01-01-2024Type of interest associated with the cash voucher.
FixedDescription of the interest type.
Fixed rate interestCreditor rate associated with the cash voucher.
5.0Amount of interest accrued on the cash voucher.
50.0Rate of interest applied to the cash voucher.
5.0VAT applied to the interest amount.
5.0Current status of the cash voucher.
ActiveDescription of the cash voucher status.
Voucher is currently activeReimbursement account number associated with the cash voucher.
1234567890Reimbursement account title associated with the cash voucher.
Reimbursement AccountReimbursement name associated with the cash voucher.
Jane DoeCIN of the person responsible for reimbursement.
CIN98765432Transaction type for reimbursement.
RefundDescription of the reimbursement transaction type.
Refund transactionRadical of the cash voucher.
RA123Account number associated with the cash voucher.
9876543210Maximum amount for filtering cash vouchers.
2000Minimum amount for filtering cash vouchers.
500Start date for the cash voucher.
01-01-2023The total number of elements across all pages.
100The total number of pages available.
10The current page number (zero-based).
0The number of items per page.
10error object
Detailed information about the error response
Error code
ERR-142Error message
Resource not found / Internal server errordetails object[]
List of error details
Error code
ER4001Detailed error message
Invalid inputTarget of the error
usernameList 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"
}