Pagination

Query Params

Here is a typical Payssion pagination query params:

ParamRequirementDescription
pageoptionaldefault is 1
per_pageoptionaldefault is 10
time_field[lt]conditionalone of [lt] or [lte] should be passed
time_field[lte]conditionalone of [lt] or [lte] should be passed
time_field[gt]conditionalone of [gt] or [gte] should be passed
time_field[gte]conditionalone of [gt] or [gte] should be passed

Response Params

ParamDescription
objectFixed value as list
urlAPI endpoint route
has_moreWhether there is more results
dataArray of all records in current page

Example Response

{
    "object": "list",
    "url": "/v2/customers",
    "has_more": false,
    "data": [
      {},// customer object
      {}
    ]
}