The following table shows field support for filters and sorting for the Coupon object:
| Field | Supported Filters | Sortable |
|---|---|---|
id | $eq,$ne,$hasSome,$contains,$startsWith | Sortable |
dateCreated | $eq,$ne,$hasSome,$lt,$lte,$gt,$gte | Sortable |
expired | $eq,$ne | |
specification.active | $eq,$ne | |
specification.name | $eq,$ne,$hasSome,$contains,$startsWith | Sortable |
specification.code | $eq,$ne,$hasSome,$contains,$startsWith | Sortable |
specification.usageLimit | $eq,$ne,$hasSome,$contains,$startsWith | Sortable |
specification.limitedToOneItem | $eq,$ne | |
scope.namespace | $eq,$ne,$hasSome,$contains,$startsWith | Sortable |
scope.group.name | $eq,$ne,$hasSome,$contains,`$startsWith | Sortable` |
scope.group.entityId | $eq,$ne,$hasSome,$contains,$startsWith | Sortable |
Related content: API Query Language, queryCoupons( )