Filtering and Sorting Results
The Fleetio API supports query parameters for both filtering and sorting results from
We use the
q parameter to differentiate filters from regular parameters.
For example, to only return Vehicles with model year 2018 or later:
You can provide more than one filter to a request. The server will combine the filters using a logical AND operator. It does not support the
OR operation. The best solution for this is to send several requests.
We treat sorting as just another
q wrapped predicate,
For example, to sort Vehicles by year in descending order:
|Equals. Case sensitive.|
|Field should match the given value. Similar to SQL's |
|Less than or equal to.|
|Greater than or equal to.|
|Contains. Used for matching partial strings.|
|Equal to an item in a list. Similar to SQL's |
|Boolean operator for true. Accepts |
|Boolean operator for false. Accepts |
|Not null and not a blank string. Accepts |
|Is null. Accepts |
|Used for sorting.|
Please see our Filtering and Sorting guides to learn more.