API basics
Filtering and sorting
Filtering
You can filter out collection results by applying filter parameters to your API calls, eg.
You can combine multiple filters to find only records that match both criteria:
Products list endpoint covers how to filter by these attributes in more detail.
Sorting
Sorting is being performed by supplying sort
parameter in your API calls.
Ascending sort, eg.
Descending sort is performed by adding -
before the column name, eg:
You can also combine multiple attributes:
Each endpoint includes a list of attributes you can sort by. The default ones are always id
, created_at
, updated_at
and name
.
Was this page helpful?