Api pagination information
It would be useful if the results returned from the api had some pagination information associated with it. Currently to check if there is another page you need to hard code the default result amounts from the api KB page:
Customers: 100
Invoices: 50
Leads: 20
Tickets: 100
And if the return count is equal to the correct number, then pull another page and repeat. At minimum it would be nice to have the number of items per page so that if they change no code changes would be required.
Other useful information would be current page, and total number of results.
Example of response could be:
{
"products": [
{...},
{...},
{...},
{...}
],
"pagaination": {
"page": 1,
"pagelength": 20,
"totalresults": 4
}
}