How filtering works
Filters are query parameters on a list request. Combine several to narrow the results further:Common filter patterns
The same families of filter recur across the API. The parameter names and accepted values are endpoint-specific, but the shapes below are what you’ll meet.By identifier
Return only the records matching one or more IDs. Some endpoints take a single value:By type or status
Enum filters restrict results to a fixed set of values, such as a transaction type (nonRoaming, roamingCpo) or a location type (PublicRoad, Residential). Match the value exactly as the reference lists it.
Flags
Boolean filters toggle a subset on or off — for exampleongoing for transactions still in progress, or isActive for active tokens:
Date and time ranges
Filter by a timestamp to return records from — or up to — a point in time, using ISO 8601:Search
Where an endpoint supports free-text search, asearch parameter matches across a few fields at once. On tokens, for example, it matches the token ID, label, or UID:
Sorting
AsortBy parameter chooses the field to order by. Some endpoints add a separate sortDirection (asc or desc); others fix the direction:
Filters vary by endpoint
The reference for each endpoint lists its exact filters — treat it as authoritative. A few differences are worth checking before you depend on a filter across several endpoints:- One value or a list. The same idea appears as a single
locationIdon one endpoint and alocationIdslist on another. - Flag values. Most flags are
true/false, but a few take0/1. - Date-range naming. The lower bound is usually named for the field (
startedAt,validFrom); the upper bound is named less consistently (endedAtMax, for instance). Read both ends off the reference rather than assuming a pattern. - Sorting. Whether you can set the direction — and the default when you don’t — depends on the endpoint.
- Deprecated filters. Where the reference marks a parameter deprecated, prefer the current one it points to (for example
customerIdsin place ofcustomerId).
If your integration filters across several endpoints, read each filter off its reference page rather than reusing a name that worked elsewhere. The families are consistent; the exact parameters are not.
Related
Pagination
Page through filtered results reliably.
API reference
The exact filters each endpoint accepts.