Related skills (read with ReadFullDocsArticle if needed):
Run these checks before creating or updating any discount — whether automatic discount rule or coupon. Discount conflicts are one of the most common merchant mistakes — overlapping discounts silently stack and give customers a much deeper discount than intended. This is especially dangerous when automatic discounts and coupons interact, since merchants often forget that both mechanisms apply simultaneously.
Why: Wix eCommerce stacks automatic discount rules. If a 20% catalog-wide discount and a 15% collection discount both apply to the same product, the customer may get both applied.
How to check:
Endpoint: POST https://www.wixapis.com/ecom/v1/discount-rules/query
Request:
For each existing active rule, compare its scope against the new rule:
CATALOG scope: conflict — both apply to all productsCATALOG and existing targets COLLECTION: conflict — catalog-wide includes that collectionCOLLECTION ID: conflict — same products affectedSPECIFIC_PRODUCTS ID: conflict — same productIf a conflict is found, warn the merchant:
"There's already an active discount '{existingRuleName}' ({existingDiscount}%) that applies to the same products. Adding this new {newDiscount}% discount may stack, giving customers a combined discount. Would you like to deactivate the existing rule first, or proceed with both?"
Why: A discount above 50% is unusual and may indicate a typo (the merchant meant 15% not 50%). A discount of 100% makes the product free.
Rules:
Why: Two promotions running simultaneously on overlapping products cause stacking during the overlap period.
How to check:
activeTimeInfo (start/end), check if any existing active rule has an overlapping time window on the same scope.existingStart < newEnd AND existingEnd > newStartWhy: Automatic discounts and coupons stack with each other at checkout. A customer with a 20% coupon buying during a 20% automatic sale gets both applied — the effective discount is much deeper than either one alone. This is the most commonly overlooked stacking issue.
How to check:
"You have an active {automatic discount / coupon} '{name}' ({X}% off) that applies to the same products. If you create this {coupon / automatic discount}, customers will get BOTH discounts — a combined effective discount of approximately {combined}%. Is this intentional?"
Key rule: Only one coupon can be used per checkout, but automatic discounts have no such limit. The worst case is: multiple automatic discounts + one coupon all stacking on the same product.
Why: Deep discounts on low-margin products can result in selling at a loss.
Rules:
| Scenario | Action |
|---|---|
| No conflicts found | Proceed with creating the discount |
| Scope overlap with existing active automatic discount | Warn merchant, ask to deactivate existing or confirm stacking |
| Cross-mechanism stacking (automatic + coupon on same scope) | Warn merchant with combined effective discount percentage |
| Discount > 50% | Warn merchant, ask for confirmation |
| Discount = 100% | Block unless explicitly confirmed |
| Time overlap on same scope | Warn about overlap period |