MembershipSearchInput
MembershipSearchInput
MembershipSearchInput
Input for searching memberships with multiple optional filter criteria.
Supports cursor-based pagination. Multiple filters are combined using AND logic.
Kind: Input
Fields
| Field | Type | Description |
|---|---|---|
after |
String |
A cursor for pagination, returns items after this cursor (forward pagination) |
before |
String |
A cursor for pagination, returns items before this cursor (backward pagination) |
cardLast4 |
String |
Filter by last four digits of payment method (card or bank account) |
email |
String |
Filter by customer email address (case-insensitive prefix match) |
first |
Int |
The number of items to return from the beginning of the list (forward pagination) |
includeInactive |
Boolean! |
Include inactive memberships in results, otherwise just includes active, trialing, or past due |
includePastCars |
Boolean! |
When filtering by plate, state, or rfid, also match against cars that were previously linked but have since been removed. Has no effect without one of those car filters. |
last |
Int |
The number of items to return from the end of the list (backward pagination) |
name |
String |
Filter by customer name (case-insensitive; matches the start of any word in the name) |
phone |
String |
Filter by phone number (E.164 exact match if the input parses as a phone number, otherwise prefix match) |
plate |
String |
Filter by vehicle license plate (case-insensitive, normalized). The matched car is not surfaced in results; use membership(id:) to see which linked car matched and whether it is currently active. |
rfid |
String |
Filter by RFID tag. The matched car is not surfaced in results; use membership(id:) to see which linked car matched and whether it is currently active. |
startDate |
DateTime |
Filter to memberships starting on or after this date |
state |
String |
Filter by vehicle plate state (2-letter code). The matched car is not surfaced in results; use membership(id:) to see which linked car matched and whether it is currently active. |
Definition
"""
Input for searching memberships with multiple optional filter criteria.
Supports cursor-based pagination. Multiple filters are combined using AND logic.
"""
input MembershipSearchInput {
"""
A cursor for pagination, returns items after this cursor (forward pagination)
"""
after: String
"""
A cursor for pagination, returns items before this cursor (backward pagination)
"""
before: String
"""Filter by last four digits of payment method (card or bank account)"""
cardLast4: String
"""Filter by customer email address (case-insensitive prefix match)"""
email: String
"""
The number of items to return from the beginning of the list (forward pagination)
"""
first: Int
"""
Include inactive memberships in results, otherwise just includes active, trialing, or past due
"""
includeInactive: Boolean! = false
"""
When filtering by plate, state, or rfid, also match against cars that were previously linked but have since been removed. Has no effect without one of those car filters.
"""
includePastCars: Boolean! = false
"""
The number of items to return from the end of the list (backward pagination)
"""
last: Int
"""
Filter by customer name (case-insensitive; matches the start of any word in the name)
"""
name: String
"""
Filter by phone number (E.164 exact match if the input parses as a phone number, otherwise prefix match)
"""
phone: String
"""
Filter by vehicle license plate (case-insensitive, normalized). The matched car is not surfaced in results; use `membership(id:)` to see which linked car matched and whether it is currently active.
"""
plate: String
"""
Filter by RFID tag. The matched car is not surfaced in results; use `membership(id:)` to see which linked car matched and whether it is currently active.
"""
rfid: String
"""Filter to memberships starting on or after this date"""
startDate: DateTime
"""
Filter by vehicle plate state (2-letter code). The matched car is not surfaced in results; use `membership(id:)` to see which linked car matched and whether it is currently active.
"""
state: String
}