Pagination

Sudo supports fetch of all top-level API resources like Customers, Cards, Authorizations, Transactions, etc. These endpoints share a common structure, taking at least these two parameters: page and limit. By default, the page is set to 0 and a limit of 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, the number of pages, the current page, and the limit set.

{
    "statusCode": 200,
    "message": "Cards fetched successfully.",
    "data": [
    {.....},
    {.....},
    {.....}
    ],
    "pagination": {
        "total": 1,
        "pages": 1,
        "page": "0",
        "limit": "25"
    }
}