Skip to main content
Log inSign up

Shopify uses cookies to provide necessary site functionality and improve your experience. By using our website, you agree to our privacy policy and our cookie policy.

enum

Possible error codes that can be returned by DiscountUserError.

Anchor to ACTIVE_PERIOD_OVERLAPACTIVE_PERIOD_OVERLAP
•

The active period overlaps with other automatic discounts. At any given time, only 25 automatic discounts can be active.

•

A discount cannot have both appliesOnOneTimePurchase and appliesOnSubscription set to false.

•

The input value is blank.

•

The attribute selection contains conflicting settings.

•

The input value is already present.

•

The input value should be equal to the value allowed.

•

The value exceeded the maximum allowed value.

•

The input value should be greater than the minimum allowed value.

Anchor to GREATER_THAN_OR_EQUAL_TOGREATER_THAN_OR_EQUAL_TO
•

The input value should be greater than or equal to the minimum value allowed.

•

The value is already present through another selection.

•

The input value isn't included in the list.

•

Unexpected internal error happened.

•

The input value is invalid.

Anchor to INVALID_COMBINES_WITH_FOR_DISCOUNT_CLASSINVALID_COMBINES_WITH_FOR_DISCOUNT_CLASS
•

The combinesWith settings are invalid for the discount class.

Anchor to INVALID_DISCOUNT_CLASS_FOR_PRICE_RULEINVALID_DISCOUNT_CLASS_FOR_PRICE_RULE
•

The discountClass is invalid for the price rule.

•

The input value should be less than the maximum value allowed.

Anchor to LESS_THAN_OR_EQUAL_TOLESS_THAN_OR_EQUAL_TO
•

The input value should be less than or equal to the maximum value allowed.

•

The active period overlaps with too many other app-provided discounts. There's a limit on the number of app discounts that can be active at any given time.

Anchor to MINIMUM_SUBTOTAL_AND_QUANTITY_RANGE_BOTH_PRESENTMINIMUM_SUBTOTAL_AND_QUANTITY_RANGE_BOTH_PRESENT
•

Specify a minimum subtotal or a quantity, but not both.

•

Missing a required argument.

Anchor to MULTIPLE_RECURRING_CYCLE_LIMIT_FOR_NON_SUBSCRIPTION_ITEMSMULTIPLE_RECURRING_CYCLE_LIMIT_FOR_NON_SUBSCRIPTION_ITEMS
•

Recurring cycle limit must be 1 when discount does not apply to subscription items.

•

The input value needs to be blank.

Anchor to RECURRING_CYCLE_LIMIT_NOT_A_VALID_INTEGERRECURRING_CYCLE_LIMIT_NOT_A_VALID_INTEGER
•

Recurring cycle limit must be a valid integer greater than or equal to 0.

•

The input value is already taken.

•

The input value is too long.

•

Too many arguments provided.

•

The input value is too short.

•

The value is outside of the allowed range.


Was this section helpful?


Was this section helpful?