Possible error codes that can be returned by DiscountUserError.


value-activeperiodoverlap
ACTIVE_PERIOD_OVERLAP

The active period overlaps with other automatic discounts. At any given time, only one automatic discount 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.

value-exceededmax
EXCEEDED_MAX

The value exceeded the maximum allowed value.

value-greaterthan
GREATER_THAN

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

value-greaterthanorequalto
GREATER_THAN_OR_EQUAL_TO

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

value-implicitduplicate
IMPLICIT_DUPLICATE

The value is already present through another selection.

The input value isn't included in the list.

value-internalerror
INTERNAL_ERROR

Unexpected internal error happened.

The input value is invalid.

value-invalidcombineswithfordiscountclass
INVALID_COMBINES_WITH_FOR_DISCOUNT_CLASS

The combinesWith settings are invalid for the discount class.

value-invaliddiscountclassforpricerule
INVALID_DISCOUNT_CLASS_FOR_PRICE_RULE

The discountClass is invalid for the price rule.

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

value-lessthanorequalto
LESS_THAN_OR_EQUAL_TO

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

value-maxappdiscounts
MAX_APP_DISCOUNTS

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.

value-minimumsubtotalandquantityrangebothpresent
MINIMUM_SUBTOTAL_AND_QUANTITY_RANGE_BOTH_PRESENT

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

value-missingargument
MISSING_ARGUMENT

Missing a required argument.

The input value needs to be blank.

The input value is already taken.

The input value is too long.

value-toomanyarguments
TOO_MANY_ARGUMENTS

Too many arguments provided.

The input value is too short.

value-valueoutsiderange
VALUE_OUTSIDE_RANGE

The value is outside of the allowed range.


Was this section helpful?

The error code.


Was this section helpful?
Map
DiscountErrorCode

Fields from