Filter and query operators
Filter and paginate The Wallet Crew passes list API with field conditions, string and set operators, and offset-based pagination, with examples.
Several pass-related endpoints accept a filter array that narrows results by pass field. Use filters together with pagination to retrieve exactly the set of passes you need.
Filtering is supported on these endpoints:
GET /api/{tenantId}/passes— list passesPOST /api/{tenantId}/passes/pushUpdate— trigger a push update on a filtered setPOST /api/{tenantId}/passes/export/token— export a filtered set
Filter request shape
Each filter condition is a FilterModel object with three fields:
field
string
The pass field to filter on (see the list below)
operator
string
The comparison operator (see below). Required: a filter without an operator returns 400. Only automation filters stored in configuration treat an omitted operator as equals.
value
string[]
One or more values to compare against, sent as repeated value parameters (several only for in and notIn). Omit for isEmpty and isNotEmpty.
Fields
A filter accepts only these fields. Any other field returns 400.
id,passTypeandthemeIdcreationDateandlastUpdateDate(UTC)installationStatus: the installed wallets, concatenated as"",apple,googleorapplegoogle. Test it withcontains.identifiers.{key}: an external identifier, for exampleidentifiers.shopify.customerIdmetadata.{key}: a metadata field computed from the pass template's metadata definition. It is compared as the type the tenant's metadata configuration gives it.
Numbers use . as decimal separator, booleans are true or false, and dates are ISO 8601 with a time zone. A value that contains {{, {% or {# is rendered as a Liquid template first, for example {{ 'now' | date: '%Y-%m-%d' }}.
Filters are passed as indexed query parameters:
Multiple conditions are combined with logical AND:
Operators
String operators
These operators compare the field value against a single string.
equals
Exact match
notEquals
Does not match
contains
Field contains the value as a substring
startsWith
Field starts with the value
endsWith
Field ends with the value
Example — passes with a loyalty tier that contains "gold":
Presence operators
These operators check whether a field has a value. No value parameter is required.
isEmpty
Field is absent or null
isNotEmpty
Field has a non-null value
Example — passes where the externalId identifier is not set:
Comparison operators
greaterThan, lessThan, greaterThanOrEqual and lessThanOrEqual compare numbers or dates. Use them on typed metadata.{key} fields.
Set operators
These operators match against a list of values. Repeat the value parameter to supply multiple entries.
in
Field matches any value in the list
notIn
Field matches none of the values in the list
Example — passes of type boarding or loyalty:
Pagination
The passes list endpoint uses offset-based pagination.
pageIndex
integer
0
Zero-based page index
pageSize
integer
20
Number of results per page. 0 returns an empty page with the total still set.
The response includes an x-pagination-total header with the total number of matching passes across all pages.
To retrieve all passes in batches, increment pageIndex until the full count is consumed.
Last updated

