Skip to main content
Log inSign up
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.

•

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.

•

The input value needs to be blank.

•

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?