Possible error codes that can be returned by DiscountUserError.
Values
LESS_THAN
The input value should be less than the maximum value allowed.
LESS_THAN_OR_EQUAL_TO
The input value should be less than or equal to the maximum value allowed
MINIMUM_SUBTOTAL_AND_QUANTITY_RANGE_BOTH_PRESENT
Specify a minimum subtotal or a quantity, but not both.
TAKEN
The input value is already taken.
TOO_MANY_ARGUMENTS
Too many arguments provided.
INTERNAL_ERROR
Unexpected internal error happened.
INVALID
The input value is invalid.
TOO_LONG
The input value is too long.
TOO_SHORT
The input value is too short.
VALUE_OUTSIDE_RANGE
The value is outside of the allowed range.
DUPLICATE
The input value is already present.
INCLUSION
The input value isn't included in the list.
GREATER_THAN_OR_EQUAL_TO
The input value should be greater than or equal to the minimum value allowed.
INVALID_COMBINES_WITH_FOR_DISCOUNT_CLASS
The combinesWith settings are invalid for the discount class.
MISSING_ARGUMENT
Missing a required argument.
ACTIVE_PERIOD_OVERLAP
The active period overlaps with other automatic discounts. At any given time, only one automatic discount can be active.
EQUAL_TO
The input value should be equal to the value allowed.
EXCEEDED_MAX
The value exceeded the maximum allowed value.
GREATER_THAN
The input value should be greater than the minimum allowed value.
IMPLICIT_DUPLICATE
The value is already present through another selection.
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.
PRESENT
The input value needs to be blank.
BLANK
The input value is blank.
CONFLICT
The attribute selection contains conflicting settings.
Status and error codes
For detailed information about common codes, see Status and error codes.
Map
DiscountErrorCode
Was this article helpful to you?