For API requests that return a list, Stax Bill limits the maximum number of returned JSON entities. This maximum threshold varies from entity type to entity type but is never below 1,000. For reading a large list of entities, the query string parameters
pageSize can be used to paginate the results.
Read the start of the list:
This request would read the first 100 customers.
Continue reading the list
And that request would read the next page of 100 customers
To make pagination easier, there are special custom headers Stax Bill sends as part of the HTTPS response. These allow for simple programmatic reading of the list.
|Integer||Number of the next available page|
|Integer||The total number of results that match the search criteria. This can be used to deduce how many entities match the search criteria if filtering is being used|
|Integer||Total number of results|
|Integer||Number of the current page|
|Integer||Number for the previous page. -1 indicates there is no previous page|
|Integer||Maximum number on the current page|
|Integer||Total number of pages|
|String||Orientation the list is sorted by (Ascending or Descending)|
|String||The object field being sorted on|