Query discount rules using WQL (Wix Query Language).
Total entries (pagingMetadata.total) will be returned only for the first page.
Note: discountRule.status can't be used for querying.
| Property | Filters | Sort |
|---|---|---|
id | $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | Sort: ASC, DESC |
createdDate | $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte | Sort: ASC, DESC |
updatedDate | $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte | Sort: ASC, DESC |
active | $eq, $ne, $in, $exists | Sort: ASC, DESC |
name | $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte, $startsWith | Sort: ASC, DESC |
revision | $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte | Sort: ASC, DESC |
activeTimeInfo.start | $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte | Sort: ASC, DESC |
activeTimeInfo.end | $eq, $ne, $in, $exists, $gt, $gte, $lt, $lte | Sort: ASC, DESC |
tags.privateTags.tagIds | $hasSome, $hasAll, $exists, $isEmpty | Sort: ASC, DESC |
You can only call this method when authenticated as a Wix app or Wix user identity.
This method doesn't return any custom errors, but may return standard errors. Learn more about standard Wix errors.