Pagination
We’re using 2 parameters for pagination:take
is the number of items the API will return, default is 50, max is 100skip
is the number of items the API will skip, default is 0
take=75
and skip=350
.
Here’s an example with the customer list:
data
the items you requestedmeta
the contextual information (total number of items, number selected…)
Filtering
Our API is offering many filtering capabilities so you can always find what you’re looking for. Filters are passed as query parameters using a common pattern.fieldName__operator=value
For instance:
GET /v1/customers?name__contains=instagram
will return all customers with the name containing instagramGET /v1/customers?id__in=123,456,789
will return customers with ID equals to 123, 456, or 789
List of available operators
equals
(or just<field>=xxx
)not
lt
lte
gt
gte
contains
startsWith
endWith
in
notIn
isNull
isNotNull
Not all fields can be filtered, please refer to each model in the API Reference to see which ones are available.