The following table shows field support for filters and sorting for the inventory item object:
| Field | Supported Filters | Sortable |
|---|---|---|
id | $eq, $ne, $exists, $in, $hasSome, $startsWith | |
createdDate | $eq, $ne, $exists, $in, $hasSome, $lt, $le, $gt, $ge | Sortable |
updatedDate | $eq, $ne, $exists, $in, $hasSome, $lt, $le, $gt, $ge | Sortable |
quantity | $eq, $ne, $exists, $in, $hasSome, $lt, $le, $gt, $ge | Sortable |
inStock | $eq, $ne, $exists, $in, $hasSome | Sortable |
preorderInfo.enabled | $eq, $ne, $exists, $in, $hasSome | Sortable |
variantId | $eq, $ne, $exists, $in, $hasSome, $startsWith | |
locationId | $eq, $ne, $exists, $in, $hasSome, $startsWith | |
productId | $eq, $ne, $exists, $in, $hasSome, $startsWith |
Related content: API Query Language, Query Stores Inventory Items, Search Stores Inventory Items