Pagination:
For methods that return a list of records, the records are returned in pages. These methods will indicate that they support Pagination.
When fetching a list of records, by default the first 100 records will be returned - ordered by created dated.
To return a different number of records the “page_size” parameter must be passed in the url.
eg:https://api.billagain.com/v1/customers?page_size=150
The maximum number allowed for “page_size” is 200. This means no more than 200 records can be returned at a time.
When there are more records to fetch – the page number needs to be increased to fetch the next lot of records. To do this we pass the “page” parameter in the url.
eg:https://api.billagain.com/v1/customers?page=2&page_size=150