Pagination
Fyatu supports fetch of all top-level API resources like Customers, Vouchers, Cards, Transactions etc. These endpoints share a common structure, taking at least these two parameters: page and limit. By default page is set to 1 and limit 25. You can fetch a maximum of 100 records at once. The resulting response will always include a pagination object with the total records count, number of pages, current page, items per page and offset.
{
"status": "success",
"statusCode": 200,
"errors": false,
"message": "Cards fetched successfully",
"data": {
"pagination": {
"totalResult": 4,
"itemPerPage": "25",
"totalPages": 1,
"currentPage": 1,
"offset": 0
},
"list": [
{....},
{....},
{....},
{....}
]
}
}
Updated 4 months ago
Did this page help you?