Home > @infiniteobjects/shopify-data-manager > AdminTypes > DiscountErrorCode
Possible error codes that can be returned by DiscountUserError
.
Signature:
export declare enum DiscountErrorCode
Member | Value | Description |
---|---|---|
ActivePeriodOverlap | "ACTIVE_PERIOD_OVERLAP" |
The active period overlaps with other automatic discounts. At any given time, only one automatic discount can be active. |
Blank | "BLANK" |
The input value is blank. |
Conflict | "CONFLICT" |
The attribute selection contains conflicting settings. |
Duplicate | "DUPLICATE" |
The input value is already present. |
EqualTo | "EQUAL_TO" |
The input value should be equal to the value allowed. |
ExceededMax | "EXCEEDED_MAX" |
The value exceeded the maximum allowed value. |
GreaterThan | "GREATER_THAN" |
The input value should be greater than the minimum allowed value. |
GreaterThanOrEqualTo | "GREATER_THAN_OR_EQUAL_TO" |
The input value should be greater than or equal to the minimum value allowed. |
ImplicitDuplicate | "IMPLICIT_DUPLICATE" |
The value is already present through another selection. |
Inclusion | "INCLUSION" |
The input value isn’t included in the list. |
InternalError | "INTERNAL_ERROR" |
Unexpected internal error happened. |
Invalid | "INVALID" |
The input value is invalid. |
InvalidCombinesWithForDiscountClass | "INVALID_COMBINES_WITH_FOR_DISCOUNT_CLASS" |
The combinesWith settings are invalid for the discount class. |
InvalidDiscountClassForPriceRule | "INVALID_DISCOUNT_CLASS_FOR_PRICE_RULE" |
The discountClass is invalid for the price rule. |
LessThan | "LESS_THAN" |
The input value should be less than the maximum value allowed. |
LessThanOrEqualTo | "LESS_THAN_OR_EQUAL_TO" |
The input value should be less than or equal to the maximum value allowed. |
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. |
MinimumSubtotalAndQuantityRangeBothPresent | "MINIMUM_SUBTOTAL_AND_QUANTITY_RANGE_BOTH_PRESENT" |
Specify a minimum subtotal or a quantity, but not both. |
MissingArgument | "MISSING_ARGUMENT" |
Missing a required argument. |
Present | "PRESENT" |
The input value needs to be blank. |
Taken | "TAKEN" |
The input value is already taken. |
TooLong | "TOO_LONG" |
The input value is too long. |
TooManyArguments | "TOO_MANY_ARGUMENTS" |
Too many arguments provided. |
TooShort | "TOO_SHORT" |
The input value is too short. |
ValueOutsideRange | "VALUE_OUTSIDE_RANGE" |
The value is outside of the allowed range. |