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.
You can only call this method when authenticated as a Wix app or Wix user identity.