Possible error codes that could be returned by a price rule mutation.
Valid values
The allocation method must be
for the provided target selection.
The discount must apply on either one-time purchase or subscription items, or both.
The input value is blank.
Invalid BOGO target selection.
Invalid BOGO target type.
Invalid BOGO value type.
Can't use both prerequisite customers and saved search.
Can't have both prerequisite customers and prerequisite segments.
Can't have both saved searches and segments prerequisites.
Can't entitle collections in combination with product variants or products.
Can't use collections as a prequisite in combination with product variants or products.
The customer prerequisites exceeded the maximum number.
Invalid customer prerequisites selection.
Customer prerequisites are missing.
A duplicate customer prerequisite ID exists.
A duplicate customer saved search exists.
The customer saved search exceeded the maximum number.
Invalid customer saved search.
The customer segment prerequisites exceeded the maximum number.
The customer segment prerequisite ID is invalid.
A duplicate customer segment prerequisite ID exists.
A duplicate discount code exists.
The discount end date must be after the start date.
The input value should be equal to the value allowed.
Can't exceed the maximum number.
The input value should be greater than the minimum allowed value.
The input value should be greater than or equal to the minimum value allowed.
Unexpected internal error happened.
The input value is invalid.
The
settings are invalid for the discount class.
The discountClass is invalid for the price rule.
The target type is invalid when defining a prerequisite shipping price range.
Can't add the same collection twice.
Can't add the same product twice.
Can't add the same collection twice.
Can't exceed the maximum number of collection entitlements.
Can't exceed the maximum number of product entitlements.
Can't exceed the maximum number of variant entitlements.
Invalid collection.
Invalid product.
Invalid combination of target type and selection.
Invalid variant.
Entitlements are missing.
Invalid entitlement type.
Can't add the same collection twice.
Can't add the same product twice.
Can't add the same variant twice.
Can't exceed the maximum number of item prerequisites.
Invalid collection.
Invalid product.
Invalid type.
Invalid variant.
Item prerequisites must have at least one item prerequisite if the prerequisite quantity ratio is defined.
Item prerequisites must be empty if the prerequisite quantity ratio isn't defined.
The input value should be less than the maximum value allowed.
The input value should be less than or equal to the maximum value allowed.
Missing a required argument.
The recurring cycle limit must be 1 when a discount doesn't apply on subscription items.
Only one of the minimum subtotal or minimum quantity condition can be defined.
The allocation limit must be a non-zero positive number.
The allocation limit can only be set on Buy x, get y (BXGY) discounts.
The number of discount codes in the shop has reached its limit.
The percentage value must be between 0 and -100.
A duplicate country code exists.
Can't exceed the maximum number of entitlements.
The country is unknown.
Invalid target type or selection.
Missing entitlements.
Unsupported destination type.
The number of discounts in the shop has reached its limit.
The input value is already taken.
The input value is too long.
Too many arguments provided.
The input value is too short.
The variant is already entitled through a product.
Fields with this enum
Error code to uniquely identify the error.