ResponseWrapperPaginationDtoBillPaymentFavoriteDto
Generic API response wrapper
Response status
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.
Unique identifier of the favorite.
1001Category of the favorite item.
ElectricityIdentifier of the biller associated with the favorite.
BILLER123Label of the biller associated with the favorite.
Electricity CompanyIdentifier of the debt associated with the favorite.
DEBT456Label of the debt associated with the favorite.
Electricity SubscriptionDynamic form fields associated with the favorite.
["accountNumber","customerCode"]Label assigned to the favorite by the user.
My Electric BillInput data for the form associated with the favorite.
{"accountNumber":"00162000017130","customerCode":"ABC123"}URL of the logo associated with the favorite.
https://example.com/logos/electricity.pngNumber of unpaid bills associated with the favorite.
2The 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
Details of any error that occurred
Error code
ERR-142Human-readable error message
Resource not founddetails object[]
List of error details
Specific error code
ER4001What went wrong
Invalid inputField that caused the issue
usernameSuggested fixes
["Check the resource ID","Ensure the resource exists"]metaData object
Extra metadata to help debugging
Timestamp of when the response was generated
22024-10-14T14:28:11.284+01:00{
"status": "ERROR/SUCCESS",
"message": "Request failed/Request successful",
"codeMessage": "ERR-001/SUC-001",
"data": {
"content": [
{
"id": 1001,
"category": "Electricity",
"billerId": "BILLER123",
"billerLabel": "Electricity Company",
"debtId": "DEBT456",
"debtLabel": "Electricity Subscription",
"dynamicFormFields": [
"accountNumber",
"customerCode"
],
"favoriteLabel": "My Electric Bill",
"formInput": {
"accountNumber": "00162000017130",
"customerCode": "ABC123"
},
"logoUrl": "https://example.com/logos/electricity.png",
"numberOfBills": 2
}
],
"totalElements": 100,
"totalPages": 10,
"number": 0,
"size": 10
},
"error": {
"code": "ERR-142",
"message": "Resource not found",
"details": [
{
"code": "ER4001",
"message": "Invalid input",
"target": "username"
},
{
"code": "ER4002",
"message": "Missing field",
"target": "email"
}
],
"suggestions": [
"Check the resource ID",
"Ensure the resource exists"
],
"metaData": {}
},
"timestamp": "22024-10-14T14:28:11.284+01:00"
}