Search Filters
Filters
Filters are provided as a list of keys and filter specifications. The keys are names of fields that can be returned in the response. Not all fields support filtering.
Multiple filters are combined using “AND” logic. For example, to find orders that were created after 2023-01-01 and are not completed the filters could be specified like so:
{
"created_at": {"from": "2023-01-01"},
"status": {"neq": "complete"}
}
eq |
The value is equal to the given value.
|
---|---|
neq |
The value is not equal to the given value.
|
starts |
The value starts with the given value (prefix match).
|
gt |
The value is greater than the given value.
|
lt |
The value is less than the given value.
|
gteq |
The value is greater than or equal to the given value.
|
lteq |
The value is less than or equal to the given value.
|
from |
The value is greater than or equal to the given value. If the "datetime" flag is specified the value is compared
with the exact timestamp given, otherwise the value is compared with the first second on the given date. The
timezone is the merchant's configured timezone.
|
to |
The value is less than or equal to the given value. If the "datetime" flag is specified the value is compared
with the exact timestamp given, otherwise the value is compared with the last second on the given date. The
timezone is the merchant's configured timezone.
|
in |
The value is equal to one of the given values. This can be used to locate multiple records with one query.
|
nin |
The value is not equal to any of the given values.
|
null |
The field's value is null (has no value).
|
notnull |
The field has a value that is not null.
|