Possible error codes that could be returned by a price rule mutation.


value-allocationmethodmustbeacrossforgiventargetselection
ALLOCATION_METHOD_MUST_BE_ACROSS_FOR_GIVEN_TARGET_SELECTION

The allocation method must be ACROSS for the provided target selection.

value-appliesonnothing
APPLIES_ON_NOTHING

The discount must apply on either one-time purchase or subscription items, or both.

The input value is blank.

value-bogoinvalidtargetselection
BOGO_INVALID_TARGET_SELECTION

Invalid BOGO target selection.

value-bogoinvalidtargettype
BOGO_INVALID_TARGET_TYPE

Invalid BOGO target type.

value-bogoinvalidvaluetype
BOGO_INVALID_VALUE_TYPE

Invalid BOGO value type.

value-bothcustomerandsavedsearchprerequisitesselected
BOTH_CUSTOMER_AND_SAVED_SEARCH_PREREQUISITES_SELECTED

Can't use both prerequisite customers and saved search.

value-bothcustomerandsegmentprerequisitesselected
BOTH_CUSTOMER_AND_SEGMENT_PREREQUISITES_SELECTED

Can't have both prerequisite customers and prerequisite segments.

value-bothsavedsearchandsegmentprerequisitesselected
BOTH_SAVED_SEARCH_AND_SEGMENT_PREREQUISITES_SELECTED

Can't have both saved searches and segments prerequisites.

value-cannotentitlecollectionswithproductsorvariants
CANNOT_ENTITLE_COLLECTIONS_WITH_PRODUCTS_OR_VARIANTS

Can't entitle collections in combination with product variants or products.

value-cannotprerequisitecollectionwithproductorvariants
CANNOT_PREREQUISITE_COLLECTION_WITH_PRODUCT_OR_VARIANTS

Can't use collections as a prequisite in combination with product variants or products.

value-customerprerequisitesexceededmax
CUSTOMER_PREREQUISITES_EXCEEDED_MAX

The customer prerequisites exceeded the maximum number.

value-customerprerequisitesinvalidselection
CUSTOMER_PREREQUISITES_INVALID_SELECTION

Invalid customer prerequisites selection.

value-customerprerequisitesmissing
CUSTOMER_PREREQUISITES_MISSING

Customer prerequisites are missing.

value-customerprerequisiteduplicate
CUSTOMER_PREREQUISITE_DUPLICATE

A duplicate customer prerequisite ID exists.

value-customersavedsearchduplicate
CUSTOMER_SAVED_SEARCH_DUPLICATE

A duplicate customer saved search exists.

value-customersavedsearchexceededmax
CUSTOMER_SAVED_SEARCH_EXCEEDED_MAX

The customer saved search exceeded the maximum number.

value-customersavedsearchinvalid
CUSTOMER_SAVED_SEARCH_INVALID

Invalid customer saved search.

value-customersegmentexceededmax
CUSTOMER_SEGMENT_EXCEEDED_MAX

The customer segment prerequisites exceeded the maximum number.

value-customersegmentinvalid
CUSTOMER_SEGMENT_INVALID

The customer segment prerequisite ID is invalid.

value-customersegmentprerequisiteduplicate
CUSTOMER_SEGMENT_PREREQUISITE_DUPLICATE

A duplicate customer segment prerequisite ID exists.

value-discountcodeduplicate
DISCOUNT_CODE_DUPLICATE

A duplicate discount code exists.

value-enddatebeforestartdate
END_DATE_BEFORE_START_DATE

The discount end date must be after the start date.

The input value should be equal to the value allowed.

value-exceededmax
EXCEEDED_MAX

Can't exceed the maximum number.

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-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.

value-invalidtargettypeprerequisiteshippingpricerange
INVALID_TARGET_TYPE_PREREQUISITE_SHIPPING_PRICE_RANGE

The target type is invalid when defining a prerequisite shipping price range.

value-itementitlementsduplicatecollection
ITEM_ENTITLEMENTS_DUPLICATE_COLLECTION

Can't add the same collection twice.

value-itementitlementsduplicateproduct
ITEM_ENTITLEMENTS_DUPLICATE_PRODUCT

Can't add the same product twice.

value-itementitlementsduplicatevariant
ITEM_ENTITLEMENTS_DUPLICATE_VARIANT

Can't add the same collection twice.

value-itementitlementsexceededmaxcollection
ITEM_ENTITLEMENTS_EXCEEDED_MAX_COLLECTION

Can't exceed the maximum number of collection entitlements.

value-itementitlementsexceededmaxproduct
ITEM_ENTITLEMENTS_EXCEEDED_MAX_PRODUCT

Can't exceed the maximum number of product entitlements.

value-itementitlementsexceededmaxvariant
ITEM_ENTITLEMENTS_EXCEEDED_MAX_VARIANT

Can't exceed the maximum number of variant entitlements.

value-itementitlementsinvalidcollection
ITEM_ENTITLEMENTS_INVALID_COLLECTION

Invalid collection.

value-itementitlementsinvalidproduct
ITEM_ENTITLEMENTS_INVALID_PRODUCT

Invalid product.

value-itementitlementsinvalidtargettypeorselection
ITEM_ENTITLEMENTS_INVALID_TARGET_TYPE_OR_SELECTION

Invalid combination of target type and selection.

value-itementitlementsinvalidvariant
ITEM_ENTITLEMENTS_INVALID_VARIANT

Invalid variant.

value-itementitlementsmissing
ITEM_ENTITLEMENTS_MISSING

Entitlements are missing.

value-itementitlementinvalidtype
ITEM_ENTITLEMENT_INVALID_TYPE

Invalid entitlement type.

value-itemprerequisitesduplicatecollection
ITEM_PREREQUISITES_DUPLICATE_COLLECTION

Can't add the same collection twice.

value-itemprerequisitesduplicateproduct
ITEM_PREREQUISITES_DUPLICATE_PRODUCT

Can't add the same product twice.

value-itemprerequisitesduplicatevariant
ITEM_PREREQUISITES_DUPLICATE_VARIANT

Can't add the same variant twice.

value-itemprerequisitesexceededmax
ITEM_PREREQUISITES_EXCEEDED_MAX

Can't exceed the maximum number of item prerequisites.

value-itemprerequisitesinvalidcollection
ITEM_PREREQUISITES_INVALID_COLLECTION

Invalid collection.

value-itemprerequisitesinvalidproduct
ITEM_PREREQUISITES_INVALID_PRODUCT

Invalid product.

value-itemprerequisitesinvalidtype
ITEM_PREREQUISITES_INVALID_TYPE

Invalid type.

value-itemprerequisitesinvalidvariant
ITEM_PREREQUISITES_INVALID_VARIANT

Invalid variant.

value-itemprerequisitesmissing
ITEM_PREREQUISITES_MISSING

Item prerequisites must have at least one item prerequisite if the prerequisite quantity ratio is defined.

value-itemprerequisitesmustbeempty
ITEM_PREREQUISITES_MUST_BE_EMPTY

Item prerequisites must be empty if the prerequisite quantity ratio isn't defined.

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-missingargument
MISSING_ARGUMENT

Missing a required argument.

value-multiplerecurringcyclelimitfornonsubscriptionitems
MULTIPLE_RECURRING_CYCLE_LIMIT_FOR_NON_SUBSCRIPTION_ITEMS

The recurring cycle limit must be 1 when a discount doesn't apply on subscription items.

value-prerequisitesubtotalandquantityrangebothpresent
PREREQUISITE_SUBTOTAL_AND_QUANTITY_RANGE_BOTH_PRESENT

Only one of the minimum subtotal or minimum quantity condition can be defined.

value-priceruleallocationlimitiszero
PRICE_RULE_ALLOCATION_LIMIT_IS_ZERO

The allocation limit must be a non-zero positive number.

value-priceruleallocationlimitonnonbogo
PRICE_RULE_ALLOCATION_LIMIT_ON_NON_BOGO

The allocation limit can only be set on Buy x, get y (BXGY) discounts.

value-priceruleexceededmaxdiscountcode
PRICE_RULE_EXCEEDED_MAX_DISCOUNT_CODE

The number of discount codes in the shop has reached its limit.

value-pricerulepercentagevalueoutsiderange
PRICE_RULE_PERCENTAGE_VALUE_OUTSIDE_RANGE

The percentage value must be between 0 and -100.

value-shippingentitlementsduplicatecountry
SHIPPING_ENTITLEMENTS_DUPLICATE_COUNTRY

A duplicate country code exists.

value-shippingentitlementsexceededmax
SHIPPING_ENTITLEMENTS_EXCEEDED_MAX

Can't exceed the maximum number of entitlements.

value-shippingentitlementsinvalidcountry
SHIPPING_ENTITLEMENTS_INVALID_COUNTRY

The country is unknown.

value-shippingentitlementsinvalidtargettypeorselection
SHIPPING_ENTITLEMENTS_INVALID_TARGET_TYPE_OR_SELECTION

Invalid target type or selection.

value-shippingentitlementsmissing
SHIPPING_ENTITLEMENTS_MISSING

Missing entitlements.

value-shippingentitlementsunsupporteddestinationtype
SHIPPING_ENTITLEMENTS_UNSUPPORTED_DESTINATION_TYPE

Unsupported destination type.

value-shopexceededmaxpricerules
SHOP_EXCEEDED_MAX_PRICE_RULES

The number of discounts in the shop has reached its limit.

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-variantalreadyentitledthroughproduct
VARIANT_ALREADY_ENTITLED_THROUGH_PRODUCT

The variant is already entitled through a product.


Was this section helpful?

Error code to uniquely identify the error.


Was this section helpful?
Map
PriceRuleErrorCode

Fields from