Pagination
Requests that return a list can be paginated by providing a query, also known as URL Search Params
| Name | Description |
|---|---|
| perPage | How many records to return per page |
| page | Current page |
Example pagination query
&perPage=25&page=1
https://app.tracezilla.com/api/v1/example-company/invoices?perPage=25&page=1
Example pagination response
List responses include pagination info in "links" and "meta".
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{
...,
"links": {
"first": "<Link to the first page>",
"last": "<Link to the last page>",
"next": "<Link to the next page>",
"prev": "<Link to the previous page>"
},
"meta": {
"current_page": 1,
"from": 0,
"last_page": 10,
"path": "<The current path of the request>",
"per_page": 25,
"to": 24,
"total": 25
}
}