We are not sure how/why this is happening but for certain stores when we try to create/update discounts keeping orderDiscounts, productDiscounts and shippingDiscounts as true using GraphQL we are receiving INVALID_COMBINES_WITH_FOR_DISCOUNT_CLASS error. This error can be replicated on test store ksm-test-collections-3.
Also we have observed that when we are trying to create discount from the Discounts section in this store the combine option Order Discounts is not available to selected. But in another test store all 3 options are visible. Any idea why this could be happening?
This issue could be related to the specific configuration of the problematic store. The INVALID_COMBINES_WITH_FOR_DISCOUNT_CLASS error typically arises when the discount combination parameters are set in a way that the system does not support.
The differences you’re observing between stores could be due to varying settings, installed apps, or the applied theme, among other factors.
Firstly, review the store settings and compare them with the settings of the store where you are not encountering this issue.
One more thing to note, Shopify discount codes have certain limitations, such as:
A discount code cannot be applied to an order after it’s been paid.
A discount code can only be used once per customer.
Some discount codes (like percentage discounts) can’t be combined with other discount codes.
If you are trying to apply a discount that falls into any of these categories, it may be causing the error.