POST

Query Discount Rules


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.

FieldSupported FiltersSort
id$eq, $ne, $exists, $in, $any, $begins, $gt, $lt, $lte, $gteSort: ASC, DESC
createdDate$eq, $ne, $exists, $in, $any, $lt, $lte, $gt, $gteSort: ASC, DESC
updatedDate$eq, $ne, $exists, $in, $any, $lt, $lte, $gt, $gteSort: ASC, DESC
active$eq, $ne, $exists, $in, $anySort: ASC, DESC
name$eq, $ne, $exists, $in, $any, $begins, $gt, $lt, $lte, $gteSort: ASC, DESC
revision$eq, $ne, $exists, $in, $any, $lt, $lte, $gt, $gteSort: ASC, DESC
activeTimeInfo.start$eq, $ne, $exists, $in, $any, $lt, $lte, $gt, $gteSort: ASC, DESC
activeTimeInfo.end$eq, $ne, $exists, $in, $any, $lt, $lte, $gt, $gteSort: ASC, DESC
Authentication

You can only call this method when authenticated as a Wix app or Wix user identity.

Permissions
Read eCommerce - all read permissions
Learn more about app permissions.
Endpoint
POST
https://www.wixapis.com/ecom/v1/discount-rules/query
Errors

This method doesn't return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?