Pagination
Zoho Commerce provides APIs to retrieve the lists of products, salesorders 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. Use the page parameter mentioning the page numbers to navigate through the pages.
- The per_page parameter can be used to set the number of records that you want to receive in response to your HTTP request.
Example
Copiedcurl -i -L -X GET
-H "Authorization:Zoho-oauthtoken ***"
-H "X-com-zoho-store-organizationid:58927961"
-H "X-ZOHO-Include-Formatted:true"
'https://commerce.zoho.com/store/api/v1/salesorders'
Copied{
"code": 0,
"message": "success",
"salesorders": [
{...},
{...}
],
"page_context": {
"page": 2,
"per_page": 25,
"has_more_page": false
}
}