Discount Error Code
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 APPLIES_ON_NOTHINGAPPLIES_
ON_ NOTHING A discount cannot have both appliesOnOneTimePurchase and appliesOnSubscription set to false.
- 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 END_DATE_BEFORE_START_DATEEND_
DATE_ BEFORE_ START_ DATE The end date should be after the start date.
- 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 MULTIPLE_RECURRING_CYCLE_LIMIT_FOR_NON_SUBSCRIPTION_ITEMSMULTIPLE_
RECURRING_ CYCLE_ LIMIT_ FOR_ NON_ SUBSCRIPTION_ ITEMS Recurring cycle limit must be 1 when discount does not apply to subscription items.
- Anchor to PRESENTPRESENT
The input value needs to be blank.
- Anchor to RECURRING_CYCLE_LIMIT_NOT_A_VALID_INTEGERRECURRING_
CYCLE_ LIMIT_ NOT_ A_ VALID_ INTEGER Recurring cycle limit must be a valid integer greater than or equal to 0.
- 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.
Anchor to FieldsFields
- •OBJECT
An error that occurs during the execution of a discount mutation.