Pagination
Zoho Expense provides APIs to retrieve lists of contacts, plans and other resources - paginated to 200 items by default. The pagination information will be included in the list API response under the node name page_context
.
- By default first page will be listed. For navigating through pages, use the
page
parameter. - The
per_page
parameter can be used to set the number of records that you want to receive in response.
$ curl -X GET 'https://www.zohoapis.com/expense/v1/contacts?page=2&per_page=25' \
-H 'X-com-zoho-expense-organizationid: 11352208' \
-H 'Authorization: Zoho-oauthtoken 6e80xxxxxxxxxxxxxxxxxxxxxxxx8a80'
{
"code": 0,
"message": "success",
"customers": [
{...},
{...}
],
"page_context": {
"page": 2,
"per_page": 25,
"has_more_page": false
}
}