Pagination
We’re using 2 parameters for pagination:takeis the number of items the API will return, default is 50, max is 100skipis the number of items the API will skip, default is 0
take=75 and skip=350.
Here’s an example with the customer list:
datathe items you requestedmetathe contextual information (total number of items, number selected…)
Sorting
Some list endpoints support sorting results using thesort and order query parameters:
sortspecifies the field to sort by (e.g.,created_at,emitted_at)orderspecifies the sort direction:asc(ascending) ordesc(descending)
Not all list endpoints support sorting. Refer to each endpoint’s documentation to see which sort fields are available.
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=instagramwill return all customers with the name containing instagramGET /v1/customers?id__in=123,456,789will return customers with ID equals to 123, 456, or 789
List of available operators
equals(or just<field>=xxx)notltltegtgtecontainsstartsWithendWithinnotInisNullisNotNull

