DiscountErrorCode
Possible error codes that can be returned by .
Anchor to Valid valuesValid values
- 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.
- Anchor to BLANKBLANK•
The input value is blank.
- Anchor to CONFLICTCONFLICT•
The attribute selection contains conflicting settings.
- Anchor to DUPLICATEDUPLICATE•
The input value is already present.
- Anchor to EQUAL_TOEQUAL_TO•
The input value should be equal to the value allowed.
- Anchor to EXCEEDED_MAXEXCEEDED_MAX•
The value exceeded the maximum allowed value.
- Anchor to GREATER_THANGREATER_THAN•
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.
- Anchor to IMPLICIT_DUPLICATEIMPLICIT_DUPLICATE•
The value is already present through another selection.
- Anchor to INCLUSIONINCLUSION•
The input value isn't included in the list.
- Anchor to INTERNAL_ERRORINTERNAL_ERROR•
Unexpected internal error happened.
- Anchor to INVALIDINVALID•
The input value is invalid.
- Anchor to INVALID_COMBINES_WITH_FOR_DISCOUNT_CLASSINVALID_COMBINES_WITH_FOR_DISCOUNT_CLASS•
The
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.
- Anchor to LESS_THANLESS_THAN•
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.
- Anchor to MAX_APP_DISCOUNTSMAX_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.
- 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.
- Anchor to MISSING_ARGUMENTMISSING_ARGUMENT•
Missing a required argument.
- Anchor to PRESENTPRESENT•
The input value needs to be blank.
- Anchor to TAKENTAKEN•
The input value is already taken.
- Anchor to TOO_LONGTOO_LONG•
The input value is too long.
- Anchor to TOO_MANY_ARGUMENTSTOO_MANY_ARGUMENTS•
Too many arguments provided.
- Anchor to TOO_SHORTTOO_SHORT•
The input value is too short.
- Anchor to VALUE_OUTSIDE_RANGEVALUE_OUTSIDE_RANGE•
The value is outside of the allowed range.