Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.
GuideAPIWallet

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:

Filter request shape

Each filter condition is a FilterModel object with three fields:

Field
Type
Description

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, passType and themeId

  • creationDate and lastUpdateDate (UTC)

  • installationStatus: the installed wallets, concatenated as "", apple, google or applegoogle. Test it with contains.

  • identifiers.{key}: an external identifier, for example identifiers.shopify.customerId

  • metadata.{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.

Operator
Behavior

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.

Operator
Behavior

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.

Operator
Behavior

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:

in and notIn are available via the API only. The admin console passes table does not expose these operators in its filter controls.

Pagination

The passes list endpoint uses offset-based pagination.

Parameter
Type
Default
Description

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