API version: unstable
API version: 2021-01 Release candidate
API version: 2020-10 Latest
API version: 2020-07
API version: 2020-04
API version: 2020-01
API version: 2019-10 Unsupported
API version: 2019-07 Unsupported

PriceRuleErrorCode enum

Version unstable

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

Values

VARIANT_ALREADY_ENTITLED_THROUGH_PRODUCT
APPLIES_ON_NOTHING

Discount must apply on either one time purchase or subscription items, or both.

BLANK

Input value is blank.

BOGO_INVALID_TARGET_SELECTION
BOGO_INVALID_TARGET_TYPE
BOGO_INVALID_VALUE_TYPE
BOTH_CUSTOMER_AND_SAVED_SEARCH_PREREQUISITES_SELECTED
CANNOT_ENTITLE_COLLECTIONS_WITH_PRODUCTS_OR_VARIANTS
CANNOT_PREREQUISITE_COLLECTION_WITH_PRODUCT_OR_VARIANTS
CUSTOMER_PREREQUISITES_EXCEEDED_MAX
CUSTOMER_PREREQUISITES_INVALID_SELECTION
CUSTOMER_PREREQUISITES_MISSING
CUSTOMER_PREREQUISITE_DUPLICATE

Duplicate customer prerequisite id present.

CUSTOMER_SAVED_SEARCH_DUPLICATE
CUSTOMER_SAVED_SEARCH_EXCEEDED_MAX
CUSTOMER_SAVED_SEARCH_INVALID
DISCOUNT_CODE_DUPLICATE
END_DATE_BEFORE_START_DATE

Discount end date must be after the start date.

EQUAL_TO

Input value should be equal to allowed value.

EXCEEDED_MAX

Exceeds maximum number allowed.

GREATER_THAN

Input value should be greater than minimum allowed value.

GREATER_THAN_OR_EQUAL_TO

Input value should be greater than or equal to minimum allowed value.

INTERNAL_ERROR

Unexpected internal error happened.

INVALID

Input value is invalid.

INVALID_TARGET_TYPE_PREREQUISITE_SHIPPING_PRICE_RANGE
ITEM_ENTITLEMENTS_DUPLICATE_COLLECTION
ITEM_ENTITLEMENTS_DUPLICATE_PRODUCT
ITEM_ENTITLEMENTS_DUPLICATE_VARIANT
ITEM_ENTITLEMENTS_EXCEEDED_MAX_COLLECTION
ITEM_ENTITLEMENTS_EXCEEDED_MAX_PRODUCT
ITEM_ENTITLEMENTS_EXCEEDED_MAX_VARIANT
ITEM_ENTITLEMENTS_INVALID_COLLECTION
ITEM_ENTITLEMENTS_INVALID_PRODUCT
ITEM_ENTITLEMENTS_INVALID_TARGET_TYPE_OR_SELECTION
ITEM_ENTITLEMENTS_INVALID_VARIANT
ITEM_ENTITLEMENTS_MISSING
ITEM_ENTITLEMENT_INVALID_TYPE
ITEM_PREREQUISITES_DUPLICATE_COLLECTION
ITEM_PREREQUISITES_DUPLICATE_PRODUCT
ITEM_PREREQUISITES_DUPLICATE_VARIANT
ITEM_PREREQUISITES_EXCEEDED_MAX
ITEM_PREREQUISITES_INVALID_COLLECTION
ITEM_PREREQUISITES_INVALID_PRODUCT
ITEM_PREREQUISITES_INVALID_TYPE
ITEM_PREREQUISITES_INVALID_VARIANT
ITEM_PREREQUISITES_MISSING
ITEM_PREREQUISITES_MUST_BE_EMPTY
LESS_THAN

Input value should be less than maximum allowed value.

LESS_THAN_OR_EQUAL_TO

Input value should be less or equal to maximum allowed value.

MISSING_ARGUMENT

Missing a required argument.

MULTIPLE_RECURRING_CYCLE_LIMIT_FOR_NON_SUBSCRIPTION_ITEMS

Recurring cycle limit must be 1 when a discount does not apply on subscription items.

PREREQUISITE_SUBTOTAL_AND_QUANTITY_RANGE_BOTH_PRESENT

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

PRICE_RULE_ALLOCATION_LIMIT_IS_ZERO

Allocation limit must be a non zero positive number.

PRICE_RULE_ALLOCATION_LIMIT_ON_NON_BOGO

Allocation limit can only be set on buy one get one type discounts.

PRICE_RULE_EXCEEDED_MAX_DISCOUNT_CODE

Number of discount codes in the shop has reached its limit.

PRICE_RULE_PERCENTAGE_VALUE_OUTSIDE_RANGE

Percentage value must be between 0 and -100.

SHIPPING_ENTITLEMENTS_DUPLICATE_COUNTRY
SHIPPING_ENTITLEMENTS_EXCEEDED_MAX
SHIPPING_ENTITLEMENTS_INVALID_COUNTRY
SHIPPING_ENTITLEMENTS_INVALID_TARGET_TYPE_OR_SELECTION
SHIPPING_ENTITLEMENTS_MISSING
SHIPPING_ENTITLEMENTS_UNSUPPORTED_DESTINATION_TYPE
SHOP_EXCEEDED_MAX_PRICE_RULES

Number of discounts in the shop has reached its limit.

TAKEN

Input value is already taken.

TOO_LONG

Input value is too long.

TOO_MANY_ARGUMENTS

Too many arguments provided.

TOO_SHORT

Input value is too short.

ALLOCATION_METHOD_MUST_BE_ACROSS_FOR_GIVEN_TARGET_SELECTION

Allocation method must be "across" for the provided target selection.

Types that return PriceRuleErrorCode

Version 2021-01 (Release candidate)

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

Values

VARIANT_ALREADY_ENTITLED_THROUGH_PRODUCT
APPLIES_ON_NOTHING

Discount must apply on either one time purchase or subscription items, or both.

BLANK

Input value is blank.

BOGO_INVALID_TARGET_SELECTION
BOGO_INVALID_TARGET_TYPE
BOGO_INVALID_VALUE_TYPE
BOTH_CUSTOMER_AND_SAVED_SEARCH_PREREQUISITES_SELECTED
CANNOT_ENTITLE_COLLECTIONS_WITH_PRODUCTS_OR_VARIANTS
CANNOT_PREREQUISITE_COLLECTION_WITH_PRODUCT_OR_VARIANTS
CUSTOMER_PREREQUISITES_EXCEEDED_MAX
CUSTOMER_PREREQUISITES_INVALID_SELECTION
CUSTOMER_PREREQUISITES_MISSING
CUSTOMER_PREREQUISITE_DUPLICATE

Duplicate customer prerequisite id present.

CUSTOMER_SAVED_SEARCH_DUPLICATE
CUSTOMER_SAVED_SEARCH_EXCEEDED_MAX
CUSTOMER_SAVED_SEARCH_INVALID
DISCOUNT_CODE_DUPLICATE
END_DATE_BEFORE_START_DATE

Discount end date must be after the start date.

EQUAL_TO

Input value should be equal to allowed value.

EXCEEDED_MAX

Exceeds maximum number allowed.

GREATER_THAN

Input value should be greater than minimum allowed value.

GREATER_THAN_OR_EQUAL_TO

Input value should be greater than or equal to minimum allowed value.

INTERNAL_ERROR

Unexpected internal error happened.

INVALID

Input value is invalid.

INVALID_TARGET_TYPE_PREREQUISITE_SHIPPING_PRICE_RANGE
ITEM_ENTITLEMENTS_DUPLICATE_COLLECTION
ITEM_ENTITLEMENTS_DUPLICATE_PRODUCT
ITEM_ENTITLEMENTS_DUPLICATE_VARIANT
ITEM_ENTITLEMENTS_EXCEEDED_MAX_COLLECTION
ITEM_ENTITLEMENTS_EXCEEDED_MAX_PRODUCT
ITEM_ENTITLEMENTS_EXCEEDED_MAX_VARIANT
ITEM_ENTITLEMENTS_INVALID_COLLECTION
ITEM_ENTITLEMENTS_INVALID_PRODUCT
ITEM_ENTITLEMENTS_INVALID_TARGET_TYPE_OR_SELECTION
ITEM_ENTITLEMENTS_INVALID_VARIANT
ITEM_ENTITLEMENTS_MISSING
ITEM_ENTITLEMENT_INVALID_TYPE
ITEM_PREREQUISITES_DUPLICATE_COLLECTION
ITEM_PREREQUISITES_DUPLICATE_PRODUCT
ITEM_PREREQUISITES_DUPLICATE_VARIANT
ITEM_PREREQUISITES_EXCEEDED_MAX
ITEM_PREREQUISITES_INVALID_COLLECTION
ITEM_PREREQUISITES_INVALID_PRODUCT
ITEM_PREREQUISITES_INVALID_TYPE
ITEM_PREREQUISITES_INVALID_VARIANT
ITEM_PREREQUISITES_MISSING
ITEM_PREREQUISITES_MUST_BE_EMPTY
LESS_THAN

Input value should be less than maximum allowed value.

LESS_THAN_OR_EQUAL_TO

Input value should be less or equal to maximum allowed value.

MISSING_ARGUMENT

Missing a required argument.

MULTIPLE_RECURRING_CYCLE_LIMIT_FOR_NON_SUBSCRIPTION_ITEMS

Recurring cycle limit must be 1 when a discount does not apply on subscription items.

PREREQUISITE_SUBTOTAL_AND_QUANTITY_RANGE_BOTH_PRESENT

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

PRICE_RULE_ALLOCATION_LIMIT_IS_ZERO

Allocation limit must be a non zero positive number.

PRICE_RULE_ALLOCATION_LIMIT_ON_NON_BOGO

Allocation limit can only be set on buy one get one type discounts.

PRICE_RULE_EXCEEDED_MAX_DISCOUNT_CODE

Number of discount codes in the shop has reached its limit.

PRICE_RULE_PERCENTAGE_VALUE_OUTSIDE_RANGE

Percentage value must be between 0 and -100.

SHIPPING_ENTITLEMENTS_DUPLICATE_COUNTRY
SHIPPING_ENTITLEMENTS_EXCEEDED_MAX
SHIPPING_ENTITLEMENTS_INVALID_COUNTRY
SHIPPING_ENTITLEMENTS_INVALID_TARGET_TYPE_OR_SELECTION
SHIPPING_ENTITLEMENTS_MISSING
SHIPPING_ENTITLEMENTS_UNSUPPORTED_DESTINATION_TYPE
SHOP_EXCEEDED_MAX_PRICE_RULES

Number of discounts in the shop has reached its limit.

TAKEN

Input value is already taken.

TOO_LONG

Input value is too long.

TOO_MANY_ARGUMENTS

Too many arguments provided.

TOO_SHORT

Input value is too short.

ALLOCATION_METHOD_MUST_BE_ACROSS_FOR_GIVEN_TARGET_SELECTION

Allocation method must be "across" for the provided target selection.

Types that return PriceRuleErrorCode

Version 2020-10 (Latest)

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

Values

VARIANT_ALREADY_ENTITLED_THROUGH_PRODUCT
BLANK

Input value is blank.

BOGO_INVALID_TARGET_SELECTION
BOGO_INVALID_TARGET_TYPE
BOGO_INVALID_VALUE_TYPE
BOTH_CUSTOMER_AND_SAVED_SEARCH_PREREQUISITES_SELECTED
CANNOT_ENTITLE_COLLECTIONS_WITH_PRODUCTS_OR_VARIANTS
CANNOT_PREREQUISITE_COLLECTION_WITH_PRODUCT_OR_VARIANTS
CUSTOMER_PREREQUISITES_EXCEEDED_MAX
CUSTOMER_PREREQUISITES_INVALID_SELECTION
CUSTOMER_PREREQUISITES_MISSING
CUSTOMER_PREREQUISITE_DUPLICATE

Duplicate customer prerequisite id present.

CUSTOMER_SAVED_SEARCH_DUPLICATE
CUSTOMER_SAVED_SEARCH_EXCEEDED_MAX
CUSTOMER_SAVED_SEARCH_INVALID
DISCOUNT_CODE_DUPLICATE
END_DATE_BEFORE_START_DATE

Discount end date must be after the start date.

EQUAL_TO

Input value should be equal to allowed value.

EXCEEDED_MAX

Exceeds maximum number allowed.

GREATER_THAN

Input value should be greater than minimum allowed value.

GREATER_THAN_OR_EQUAL_TO

Input value should be greater than or equal to minimum allowed value.

INTERNAL_ERROR

Unexpected internal error happened.

INVALID

Input value is invalid.

INVALID_TARGET_TYPE_PREREQUISITE_SHIPPING_PRICE_RANGE
ITEM_ENTITLEMENTS_DUPLICATE_COLLECTION
ITEM_ENTITLEMENTS_DUPLICATE_PRODUCT
ITEM_ENTITLEMENTS_DUPLICATE_VARIANT
ITEM_ENTITLEMENTS_EXCEEDED_MAX_COLLECTION
ITEM_ENTITLEMENTS_EXCEEDED_MAX_PRODUCT
ITEM_ENTITLEMENTS_EXCEEDED_MAX_VARIANT
ITEM_ENTITLEMENTS_INVALID_COLLECTION
ITEM_ENTITLEMENTS_INVALID_PRODUCT
ITEM_ENTITLEMENTS_INVALID_TARGET_TYPE_OR_SELECTION
ITEM_ENTITLEMENTS_INVALID_VARIANT
ITEM_ENTITLEMENTS_MISSING
ITEM_ENTITLEMENT_INVALID_TYPE
ITEM_PREREQUISITES_DUPLICATE_COLLECTION
ITEM_PREREQUISITES_DUPLICATE_PRODUCT
ITEM_PREREQUISITES_DUPLICATE_VARIANT
ITEM_PREREQUISITES_EXCEEDED_MAX
ITEM_PREREQUISITES_INVALID_COLLECTION
ITEM_PREREQUISITES_INVALID_PRODUCT
ITEM_PREREQUISITES_INVALID_TYPE
ITEM_PREREQUISITES_INVALID_VARIANT
ITEM_PREREQUISITES_MISSING
ITEM_PREREQUISITES_MUST_BE_EMPTY
LESS_THAN

Input value should be less than maximum allowed value.

LESS_THAN_OR_EQUAL_TO

Input value should be less or equal to maximum allowed value.

MISSING_ARGUMENT

Missing a required argument.

PREREQUISITE_SUBTOTAL_AND_QUANTITY_RANGE_BOTH_PRESENT

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

PRICE_RULE_ALLOCATION_LIMIT_IS_ZERO

Allocation limit must be a non zero positive number.

PRICE_RULE_ALLOCATION_LIMIT_ON_NON_BOGO

Allocation limit can only be set on buy one get one type discounts.

PRICE_RULE_EXCEEDED_MAX_DISCOUNT_CODE

Number of discount codes in the shop has reached its limit.

PRICE_RULE_PERCENTAGE_VALUE_OUTSIDE_RANGE

Percentage value must be between 0 and -100.

SHIPPING_ENTITLEMENTS_DUPLICATE_COUNTRY
SHIPPING_ENTITLEMENTS_EXCEEDED_MAX
SHIPPING_ENTITLEMENTS_INVALID_COUNTRY
SHIPPING_ENTITLEMENTS_INVALID_TARGET_TYPE_OR_SELECTION
SHIPPING_ENTITLEMENTS_MISSING
SHIPPING_ENTITLEMENTS_UNSUPPORTED_DESTINATION_TYPE
SHOP_EXCEEDED_MAX_PRICE_RULES

Number of discounts in the shop has reached its limit.

TAKEN

Input value is already taken.

TOO_LONG

Input value is too long.

TOO_MANY_ARGUMENTS

Too many arguments provided.

TOO_SHORT

Input value is too short.

ALLOCATION_METHOD_MUST_BE_ACROSS_FOR_GIVEN_TARGET_SELECTION

Allocation method must be "across" for the provided target selection.

Types that return PriceRuleErrorCode

Version 2020-07

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

Values

VARIANT_ALREADY_ENTITLED_THROUGH_PRODUCT
BLANK

Input value is blank.

BOGO_INVALID_TARGET_SELECTION
BOGO_INVALID_TARGET_TYPE
BOGO_INVALID_VALUE_TYPE
BOTH_CUSTOMER_AND_SAVED_SEARCH_PREREQUISITES_SELECTED
CANNOT_ENTITLE_COLLECTIONS_WITH_PRODUCTS_OR_VARIANTS
CANNOT_PREREQUISITE_COLLECTION_WITH_PRODUCT_OR_VARIANTS
CUSTOMER_PREREQUISITES_EXCEEDED_MAX
CUSTOMER_PREREQUISITES_INVALID_SELECTION
CUSTOMER_PREREQUISITES_MISSING
CUSTOMER_PREREQUISITE_DUPLICATE

Duplicate customer prerequisite id present.

CUSTOMER_SAVED_SEARCH_DUPLICATE
CUSTOMER_SAVED_SEARCH_EXCEEDED_MAX
CUSTOMER_SAVED_SEARCH_INVALID
DISCOUNT_CODE_DUPLICATE
END_DATE_BEFORE_START_DATE

Discount end date must be after the start date.

EQUAL_TO

Input value should be equal to allowed value.

EXCEEDED_MAX

Exceeds maximum number allowed.

GREATER_THAN

Input value should be greater than minimum allowed value.

GREATER_THAN_OR_EQUAL_TO

Input value should be greater than or equal to minimum allowed value.

INTERNAL_ERROR

Unexpected internal error happened.

INVALID

Input value is invalid.

INVALID_TARGET_TYPE_PREREQUISITE_SHIPPING_PRICE_RANGE
ITEM_ENTITLEMENTS_DUPLICATE_COLLECTION
ITEM_ENTITLEMENTS_DUPLICATE_PRODUCT
ITEM_ENTITLEMENTS_DUPLICATE_VARIANT
ITEM_ENTITLEMENTS_EXCEEDED_MAX_COLLECTION
ITEM_ENTITLEMENTS_EXCEEDED_MAX_PRODUCT
ITEM_ENTITLEMENTS_EXCEEDED_MAX_VARIANT
ITEM_ENTITLEMENTS_INVALID_COLLECTION
ITEM_ENTITLEMENTS_INVALID_PRODUCT
ITEM_ENTITLEMENTS_INVALID_TARGET_TYPE_OR_SELECTION
ITEM_ENTITLEMENTS_INVALID_VARIANT
ITEM_ENTITLEMENTS_MISSING
ITEM_ENTITLEMENT_INVALID_TYPE
ITEM_PREREQUISITES_DUPLICATE_COLLECTION
ITEM_PREREQUISITES_DUPLICATE_PRODUCT
ITEM_PREREQUISITES_DUPLICATE_VARIANT
ITEM_PREREQUISITES_EXCEEDED_MAX
ITEM_PREREQUISITES_INVALID_COLLECTION
ITEM_PREREQUISITES_INVALID_PRODUCT
ITEM_PREREQUISITES_INVALID_TYPE
ITEM_PREREQUISITES_INVALID_VARIANT
ITEM_PREREQUISITES_MISSING
ITEM_PREREQUISITES_MUST_BE_EMPTY
LESS_THAN

Input value should be less than maximum allowed value.

LESS_THAN_OR_EQUAL_TO

Input value should be less or equal to maximum allowed value.

MISSING_ARGUMENT

Missing a required argument.

PREREQUISITE_SUBTOTAL_AND_QUANTITY_RANGE_BOTH_PRESENT

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

PRICE_RULE_ALLOCATION_LIMIT_IS_ZERO

Allocation limit must be a non zero positive number.

PRICE_RULE_ALLOCATION_LIMIT_ON_NON_BOGO

Allocation limit can only be set on buy one get one type discounts.

PRICE_RULE_EXCEEDED_MAX_DISCOUNT_CODE

Number of discount codes in the shop has reached its limit.

PRICE_RULE_PERCENTAGE_VALUE_OUTSIDE_RANGE

Percentage value must be between 0 and -100.

SHIPPING_ENTITLEMENTS_DUPLICATE_COUNTRY
SHIPPING_ENTITLEMENTS_EXCEEDED_MAX
SHIPPING_ENTITLEMENTS_INVALID_COUNTRY
SHIPPING_ENTITLEMENTS_INVALID_TARGET_TYPE_OR_SELECTION
SHIPPING_ENTITLEMENTS_MISSING
SHIPPING_ENTITLEMENTS_UNSUPPORTED_DESTINATION_TYPE
SHOP_EXCEEDED_MAX_PRICE_RULES

Number of discounts in the shop has reached its limit.

TAKEN

Input value is already taken.

TOO_LONG

Input value is too long.

TOO_MANY_ARGUMENTS

Too many arguments provided.

TOO_SHORT

Input value is too short.

ALLOCATION_METHOD_MUST_BE_ACROSS_FOR_GIVEN_TARGET_SELECTION

Allocation method must be "across" for the provided target selection.

Types that return PriceRuleErrorCode

Version 2020-04

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

Values

VARIANT_ALREADY_ENTITLED_THROUGH_PRODUCT
BLANK

Input value is blank.

BOGO_INVALID_TARGET_SELECTION
BOGO_INVALID_TARGET_TYPE
BOGO_INVALID_VALUE_TYPE
BOTH_CUSTOMER_AND_SAVED_SEARCH_PREREQUISITES_SELECTED
CANNOT_ENTITLE_COLLECTIONS_WITH_PRODUCTS_OR_VARIANTS
CANNOT_PREREQUISITE_COLLECTION_WITH_PRODUCT_OR_VARIANTS
CUSTOMER_PREREQUISITES_EXCEEDED_MAX
CUSTOMER_PREREQUISITES_INVALID_SELECTION
CUSTOMER_PREREQUISITES_MISSING
CUSTOMER_PREREQUISITE_DUPLICATE

Duplicate customer prerequisite id present.

CUSTOMER_SAVED_SEARCH_DUPLICATE
CUSTOMER_SAVED_SEARCH_EXCEEDED_MAX
CUSTOMER_SAVED_SEARCH_INVALID
DISCOUNT_CODE_DUPLICATE
END_DATE_BEFORE_START_DATE

Discount end date must be after the start date.

EQUAL_TO

Input value should be equal to allowed value.

EXCEEDED_MAX

Exceeds maximum number allowed.

GREATER_THAN

Input value should be greater than minimum allowed value.

GREATER_THAN_OR_EQUAL_TO

Input value should be greater than or equal to minimum allowed value.

INTERNAL_ERROR

Unexpected internal error happened.

INVALID

Input value is invalid.

INVALID_TARGET_TYPE_PREREQUISITE_SHIPPING_PRICE_RANGE
ITEM_ENTITLEMENTS_DUPLICATE_COLLECTION
ITEM_ENTITLEMENTS_DUPLICATE_PRODUCT
ITEM_ENTITLEMENTS_DUPLICATE_VARIANT
ITEM_ENTITLEMENTS_EXCEEDED_MAX_COLLECTION
ITEM_ENTITLEMENTS_EXCEEDED_MAX_PRODUCT
ITEM_ENTITLEMENTS_EXCEEDED_MAX_VARIANT
ITEM_ENTITLEMENTS_INVALID_COLLECTION
ITEM_ENTITLEMENTS_INVALID_PRODUCT
ITEM_ENTITLEMENTS_INVALID_TARGET_TYPE_OR_SELECTION
ITEM_ENTITLEMENTS_INVALID_VARIANT
ITEM_ENTITLEMENTS_MISSING
ITEM_ENTITLEMENT_INVALID_TYPE
ITEM_PREREQUISITES_DUPLICATE_COLLECTION
ITEM_PREREQUISITES_DUPLICATE_PRODUCT
ITEM_PREREQUISITES_DUPLICATE_VARIANT
ITEM_PREREQUISITES_EXCEEDED_MAX
ITEM_PREREQUISITES_INVALID_COLLECTION
ITEM_PREREQUISITES_INVALID_PRODUCT
ITEM_PREREQUISITES_INVALID_TYPE
ITEM_PREREQUISITES_INVALID_VARIANT
ITEM_PREREQUISITES_MISSING
ITEM_PREREQUISITES_MUST_BE_EMPTY
LESS_THAN

Input value should be less than maximum allowed value.

LESS_THAN_OR_EQUAL_TO

Input value should be less or equal to maximum allowed value.

MISSING_ARGUMENT

Missing a required argument.

PREREQUISITE_SUBTOTAL_AND_QUANTITY_RANGE_BOTH_PRESENT

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

PRICE_RULE_ALLOCATION_LIMIT_IS_ZERO

Allocation limit must be a non zero positive number.

PRICE_RULE_ALLOCATION_LIMIT_ON_NON_BOGO

Allocation limit can only be set on buy one get one type discounts.

PRICE_RULE_EXCEEDED_MAX_DISCOUNT_CODE

Number of discount codes in the shop has reached its limit.

PRICE_RULE_PERCENTAGE_VALUE_OUTSIDE_RANGE

Percentage value must be between 0 and -100.

SHIPPING_ENTITLEMENTS_DUPLICATE_COUNTRY
SHIPPING_ENTITLEMENTS_EXCEEDED_MAX
SHIPPING_ENTITLEMENTS_INVALID_COUNTRY
SHIPPING_ENTITLEMENTS_INVALID_TARGET_TYPE_OR_SELECTION
SHIPPING_ENTITLEMENTS_MISSING
SHIPPING_ENTITLEMENTS_UNSUPPORTED_DESTINATION_TYPE
SHOP_EXCEEDED_MAX_PRICE_RULES

Number of discounts in the shop has reached its limit.

TAKEN

Input value is already taken.

TOO_LONG

Input value is too long.

TOO_MANY_ARGUMENTS

Too many arguments provided.

TOO_SHORT

Input value is too short.

ALLOCATION_METHOD_MUST_BE_ACROSS_FOR_GIVEN_TARGET_SELECTION

Allocation method must be "across" for the provided target selection.

Types that return PriceRuleErrorCode

Version 2020-01

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

Values

VARIANT_ALREADY_ENTITLED_THROUGH_PRODUCT
BLANK

Input value is blank.

BOGO_INVALID_TARGET_SELECTION
BOGO_INVALID_TARGET_TYPE
BOGO_INVALID_VALUE_TYPE
BOTH_CUSTOMER_AND_SAVED_SEARCH_PREREQUISITES_SELECTED
CANNOT_ENTITLE_COLLECTIONS_WITH_PRODUCTS_OR_VARIANTS
CANNOT_PREREQUISITE_COLLECTION_WITH_PRODUCT_OR_VARIANTS
CUSTOMER_PREREQUISITES_EXCEEDED_MAX
CUSTOMER_PREREQUISITES_INVALID_SELECTION
CUSTOMER_PREREQUISITES_MISSING
CUSTOMER_PREREQUISITE_DUPLICATE

Duplicate customer prerequisite id present.

CUSTOMER_SAVED_SEARCH_DUPLICATE
CUSTOMER_SAVED_SEARCH_EXCEEDED_MAX
CUSTOMER_SAVED_SEARCH_INVALID
DISCOUNT_CODE_DUPLICATE
END_DATE_BEFORE_START_DATE

Discount end date must be after the start date.

EQUAL_TO

Input value should be equal to allowed value.

EXCEEDED_MAX

Exceeds maximum number allowed.

GREATER_THAN

Input value should be greater than minimum allowed value.

GREATER_THAN_OR_EQUAL_TO

Input value should be greater than or equal to minimum allowed value.

INTERNAL_ERROR

Unexpected internal error happened.

INVALID

Input value is invalid.

INVALID_TARGET_TYPE_PREREQUISITE_SHIPPING_PRICE_RANGE
ITEM_ENTITLEMENTS_DUPLICATE_COLLECTION
ITEM_ENTITLEMENTS_DUPLICATE_PRODUCT
ITEM_ENTITLEMENTS_DUPLICATE_VARIANT
ITEM_ENTITLEMENTS_EXCEEDED_MAX_COLLECTION
ITEM_ENTITLEMENTS_EXCEEDED_MAX_PRODUCT
ITEM_ENTITLEMENTS_EXCEEDED_MAX_VARIANT
ITEM_ENTITLEMENTS_INVALID_COLLECTION
ITEM_ENTITLEMENTS_INVALID_PRODUCT
ITEM_ENTITLEMENTS_INVALID_TARGET_TYPE_OR_SELECTION
ITEM_ENTITLEMENTS_INVALID_VARIANT
ITEM_ENTITLEMENTS_MISSING
ITEM_ENTITLEMENT_INVALID_TYPE
ITEM_PREREQUISITES_DUPLICATE_COLLECTION
ITEM_PREREQUISITES_DUPLICATE_PRODUCT
ITEM_PREREQUISITES_DUPLICATE_VARIANT
ITEM_PREREQUISITES_EXCEEDED_MAX
ITEM_PREREQUISITES_INVALID_COLLECTION
ITEM_PREREQUISITES_INVALID_PRODUCT
ITEM_PREREQUISITES_INVALID_TYPE
ITEM_PREREQUISITES_INVALID_VARIANT
ITEM_PREREQUISITES_MISSING
ITEM_PREREQUISITES_MUST_BE_EMPTY
LESS_THAN

Input value should be less than maximum allowed value.

LESS_THAN_OR_EQUAL_TO

Input value should be less or equal to maximum allowed value.

MISSING_ARGUMENT

Missing a required argument.

PREREQUISITE_SUBTOTAL_AND_QUANTITY_RANGE_BOTH_PRESENT

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

PRICE_RULE_ALLOCATION_LIMIT_IS_ZERO

Allocation limit must be a non zero positive number.

PRICE_RULE_ALLOCATION_LIMIT_ON_NON_BOGO

Allocation limit can only be set on buy one get one type discounts.

PRICE_RULE_EXCEEDED_MAX_DISCOUNT_CODE

Number of discount codes in the shop has reached its limit.

PRICE_RULE_PERCENTAGE_VALUE_OUTSIDE_RANGE

Percentage value must be between 0 and -100.

SHIPPING_ENTITLEMENTS_DUPLICATE_COUNTRY
SHIPPING_ENTITLEMENTS_EXCEEDED_MAX
SHIPPING_ENTITLEMENTS_INVALID_COUNTRY
SHIPPING_ENTITLEMENTS_INVALID_TARGET_TYPE_OR_SELECTION
SHIPPING_ENTITLEMENTS_MISSING
SHIPPING_ENTITLEMENTS_UNSUPPORTED_DESTINATION_TYPE
SHOP_EXCEEDED_MAX_PRICE_RULES

Number of discounts in the shop has reached its limit.

TAKEN

Input value is already taken.

TOO_LONG

Input value is too long.

TOO_MANY_ARGUMENTS

Too many arguments provided.

TOO_SHORT

Input value is too short.

ALLOCATION_METHOD_MUST_BE_ACROSS_FOR_GIVEN_TARGET_SELECTION

Allocation method must be "across" for the provided target selection.

Types that return PriceRuleErrorCode

Version 2019-10 (Unsupported)

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

Values

VARIANT_ALREADY_ENTITLED_THROUGH_PRODUCT
BLANK

Input value is blank.

BOGO_INVALID_TARGET_SELECTION
BOGO_INVALID_TARGET_TYPE
BOGO_INVALID_VALUE_TYPE
BOTH_CUSTOMER_AND_SAVED_SEARCH_PREREQUISITES_SELECTED
CANNOT_ENTITLE_COLLECTIONS_WITH_PRODUCTS_OR_VARIANTS
CANNOT_PREREQUISITE_COLLECTION_WITH_PRODUCT_OR_VARIANTS
CUSTOMER_PREREQUISITES_EXCEEDED_MAX
CUSTOMER_PREREQUISITES_INVALID_SELECTION
CUSTOMER_PREREQUISITES_MISSING
CUSTOMER_PREREQUISITE_DUPLICATE

Duplicate customer prerequisite id present.

CUSTOMER_SAVED_SEARCH_DUPLICATE
CUSTOMER_SAVED_SEARCH_EXCEEDED_MAX
CUSTOMER_SAVED_SEARCH_INVALID
DISCOUNT_CODE_DUPLICATE
END_DATE_BEFORE_START_DATE

Discount end date must be after the start date.

EQUAL_TO

Input value should be equal to allowed value.

EXCEEDED_MAX

Exceeds maximum number allowed.

GREATER_THAN

Input value should be greater than minimum allowed value.

GREATER_THAN_OR_EQUAL_TO

Input value should be greater than or equal to minimum allowed value.

INTERNAL_ERROR

Unexpected internal error happened.

INVALID

Input value is invalid.

INVALID_TARGET_TYPE_PREREQUISITE_SHIPPING_PRICE_RANGE
ITEM_ENTITLEMENTS_DUPLICATE_COLLECTION
ITEM_ENTITLEMENTS_DUPLICATE_PRODUCT
ITEM_ENTITLEMENTS_DUPLICATE_VARIANT
ITEM_ENTITLEMENTS_EXCEEDED_MAX_COLLECTION
ITEM_ENTITLEMENTS_EXCEEDED_MAX_PRODUCT
ITEM_ENTITLEMENTS_EXCEEDED_MAX_VARIANT
ITEM_ENTITLEMENTS_INVALID_COLLECTION
ITEM_ENTITLEMENTS_INVALID_PRODUCT
ITEM_ENTITLEMENTS_INVALID_TARGET_TYPE_OR_SELECTION
ITEM_ENTITLEMENTS_INVALID_VARIANT
ITEM_ENTITLEMENTS_MISSING
ITEM_ENTITLEMENT_INVALID_TYPE
ITEM_PREREQUISITES_DUPLICATE_COLLECTION
ITEM_PREREQUISITES_DUPLICATE_PRODUCT
ITEM_PREREQUISITES_DUPLICATE_VARIANT
ITEM_PREREQUISITES_EXCEEDED_MAX
ITEM_PREREQUISITES_INVALID_COLLECTION
ITEM_PREREQUISITES_INVALID_PRODUCT
ITEM_PREREQUISITES_INVALID_TYPE
ITEM_PREREQUISITES_INVALID_VARIANT
ITEM_PREREQUISITES_MISSING
ITEM_PREREQUISITES_MUST_BE_EMPTY
LESS_THAN

Input value should be less than maximum allowed value.

LESS_THAN_OR_EQUAL_TO

Input value should be less or equal to maximum allowed value.

MISSING_ARGUMENT

Missing a required argument.

PREREQUISITE_SUBTOTAL_AND_QUANTITY_RANGE_BOTH_PRESENT

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

PRICE_RULE_ALLOCATION_LIMIT_IS_ZERO

Allocation limit must be a non zero positive number.

PRICE_RULE_ALLOCATION_LIMIT_ON_NON_BOGO

Allocation limit can only be set on buy one get one type discounts.

PRICE_RULE_EXCEEDED_MAX_DISCOUNT_CODE

Number of discount codes in the shop has reached its limit.

PRICE_RULE_PERCENTAGE_VALUE_OUTSIDE_RANGE

Percentage value must be between 0 and -100.

SHIPPING_ENTITLEMENTS_DUPLICATE_COUNTRY
SHIPPING_ENTITLEMENTS_EXCEEDED_MAX
SHIPPING_ENTITLEMENTS_INVALID_COUNTRY
SHIPPING_ENTITLEMENTS_INVALID_TARGET_TYPE_OR_SELECTION
SHIPPING_ENTITLEMENTS_MISSING
SHIPPING_ENTITLEMENTS_UNSUPPORTED_DESTINATION_TYPE
SHOP_EXCEEDED_MAX_PRICE_RULES

Number of discounts in the shop has reached its limit.

TAKEN

Input value is already taken.

TOO_LONG

Input value is too long.

TOO_MANY_ARGUMENTS

Too many arguments provided.

TOO_SHORT

Input value is too short.

ALLOCATION_METHOD_MUST_BE_ACROSS_FOR_GIVEN_TARGET_SELECTION

Allocation method must be "across" for the provided target selection.

Types that return PriceRuleErrorCode

Version 2019-07 (Unsupported)

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

Values

VARIANT_ALREADY_ENTITLED_THROUGH_PRODUCT
BLANK

Input value is blank.

BOGO_INVALID_TARGET_SELECTION
BOGO_INVALID_TARGET_TYPE
BOGO_INVALID_VALUE_TYPE
BOTH_CUSTOMER_AND_SAVED_SEARCH_PREREQUISITES_SELECTED
CANNOT_ENTITLE_COLLECTIONS_WITH_PRODUCTS_OR_VARIANTS
CANNOT_PREREQUISITE_COLLECTION_WITH_PRODUCT_OR_VARIANTS
CUSTOMER_PREREQUISITES_EXCEEDED_MAX
CUSTOMER_PREREQUISITES_INVALID_SELECTION
CUSTOMER_PREREQUISITES_MISSING
CUSTOMER_PREREQUISITE_DUPLICATE

Duplicate customer prerequisite id present.

CUSTOMER_SAVED_SEARCH_DUPLICATE
CUSTOMER_SAVED_SEARCH_EXCEEDED_MAX
CUSTOMER_SAVED_SEARCH_INVALID
DISCOUNT_CODE_DUPLICATE
END_DATE_BEFORE_START_DATE

Discount end date must be after the start date.

EQUAL_TO

Input value should be equal to allowed value.

EXCEEDED_MAX

Exceeds maximum number allowed.

GREATER_THAN

Input value should be greater than minimum allowed value.

GREATER_THAN_OR_EQUAL_TO

Input value should be greater than or equal to minimum allowed value.

INTERNAL_ERROR

Unexpected internal error happened.

INVALID

Input value is invalid.

INVALID_TARGET_TYPE_PREREQUISITE_SHIPPING_PRICE_RANGE
ITEM_ENTITLEMENTS_DUPLICATE_COLLECTION
ITEM_ENTITLEMENTS_DUPLICATE_PRODUCT
ITEM_ENTITLEMENTS_DUPLICATE_VARIANT
ITEM_ENTITLEMENTS_EXCEEDED_MAX_COLLECTION
ITEM_ENTITLEMENTS_EXCEEDED_MAX_PRODUCT
ITEM_ENTITLEMENTS_EXCEEDED_MAX_VARIANT
ITEM_ENTITLEMENTS_INVALID_COLLECTION
ITEM_ENTITLEMENTS_INVALID_PRODUCT
ITEM_ENTITLEMENTS_INVALID_TARGET_TYPE_OR_SELECTION
ITEM_ENTITLEMENTS_INVALID_VARIANT
ITEM_ENTITLEMENTS_MISSING
ITEM_ENTITLEMENT_INVALID_TYPE
ITEM_PREREQUISITES_DUPLICATE_COLLECTION
ITEM_PREREQUISITES_DUPLICATE_PRODUCT
ITEM_PREREQUISITES_DUPLICATE_VARIANT
ITEM_PREREQUISITES_EXCEEDED_MAX
ITEM_PREREQUISITES_INVALID_COLLECTION
ITEM_PREREQUISITES_INVALID_PRODUCT
ITEM_PREREQUISITES_INVALID_TYPE
ITEM_PREREQUISITES_INVALID_VARIANT
ITEM_PREREQUISITES_MISSING
ITEM_PREREQUISITES_MUST_BE_EMPTY
LESS_THAN

Input value should be less than maximum allowed value.

LESS_THAN_OR_EQUAL_TO

Input value should be less or equal to maximum allowed value.

MISSING_ARGUMENT

Missing a required argument.

PREREQUISITE_SUBTOTAL_AND_QUANTITY_RANGE_BOTH_PRESENT

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

PRICE_RULE_ALLOCATION_LIMIT_IS_ZERO

Allocation limit must be a non zero positive number.

PRICE_RULE_ALLOCATION_LIMIT_ON_NON_BOGO

Allocation limit can only be set on buy one get one type discounts.

PRICE_RULE_EXCEEDED_MAX_DISCOUNT_CODE

Number of discount codes in the shop has reached its limit.

PRICE_RULE_PERCENTAGE_VALUE_OUTSIDE_RANGE

Percentage value must be between 0 and -100.

SHIPPING_ENTITLEMENTS_DUPLICATE_COUNTRY
SHIPPING_ENTITLEMENTS_EXCEEDED_MAX
SHIPPING_ENTITLEMENTS_INVALID_COUNTRY
SHIPPING_ENTITLEMENTS_INVALID_TARGET_TYPE_OR_SELECTION
SHIPPING_ENTITLEMENTS_MISSING
SHIPPING_ENTITLEMENTS_UNSUPPORTED_DESTINATION_TYPE
SHOP_EXCEEDED_MAX_PRICE_RULES

Number of discounts in the shop has reached its limit.

TAKEN

Input value is already taken.

TOO_LONG

Input value is too long.

TOO_MANY_ARGUMENTS

Too many arguments provided.

TOO_SHORT

Input value is too short.

ALLOCATION_METHOD_MUST_BE_ACROSS_FOR_GIVEN_TARGET_SELECTION

Allocation method must be "across" for the provided target selection.

Types that return PriceRuleErrorCode

Version 2019-04 (Unsupported)

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

Values

VARIANT_ALREADY_ENTITLED_THROUGH_PRODUCT
BLANK

Input value is blank.

BOGO_INVALID_TARGET_SELECTION
BOGO_INVALID_TARGET_TYPE
BOGO_INVALID_VALUE_TYPE
BOTH_CUSTOMER_AND_SAVED_SEARCH_PREREQUISITES_SELECTED
CANNOT_ENTITLE_COLLECTIONS_WITH_PRODUCTS_OR_VARIANTS
CANNOT_PREREQUISITE_COLLECTION_WITH_PRODUCT_OR_VARIANTS
CUSTOMER_PREREQUISITES_EXCEEDED_MAX
CUSTOMER_PREREQUISITES_INVALID_SELECTION
CUSTOMER_PREREQUISITES_MISSING
CUSTOMER_PREREQUISITE_DUPLICATE

Duplicate customer prerequisite id present.

CUSTOMER_SAVED_SEARCH_DUPLICATE
CUSTOMER_SAVED_SEARCH_EXCEEDED_MAX
CUSTOMER_SAVED_SEARCH_INVALID
DISCOUNT_CODE_DUPLICATE
END_DATE_BEFORE_START_DATE

Discount end date must be after the start date.

EQUAL_TO

Input value should be equal to allowed value.

EXCEEDED_MAX

Exceeds maximum number allowed.

GREATER_THAN

Input value should be greater than minimum allowed value.

GREATER_THAN_OR_EQUAL_TO

Input value should be greater than or equal to minimum allowed value.

INTERNAL_ERROR

Unexpected internal error happened.

INVALID

Input value is invalid.

INVALID_TARGET_TYPE_PREREQUISITE_SHIPPING_PRICE_RANGE
ITEM_ENTITLEMENTS_DUPLICATE_COLLECTION
ITEM_ENTITLEMENTS_DUPLICATE_PRODUCT
ITEM_ENTITLEMENTS_DUPLICATE_VARIANT
ITEM_ENTITLEMENTS_EXCEEDED_MAX_COLLECTION
ITEM_ENTITLEMENTS_EXCEEDED_MAX_PRODUCT
ITEM_ENTITLEMENTS_EXCEEDED_MAX_VARIANT
ITEM_ENTITLEMENTS_INVALID_COLLECTION
ITEM_ENTITLEMENTS_INVALID_PRODUCT
ITEM_ENTITLEMENTS_INVALID_TARGET_TYPE_OR_SELECTION
ITEM_ENTITLEMENTS_INVALID_VARIANT
ITEM_ENTITLEMENTS_MISSING
ITEM_ENTITLEMENT_INVALID_TYPE
ITEM_PREREQUISITES_DUPLICATE_COLLECTION
ITEM_PREREQUISITES_DUPLICATE_PRODUCT
ITEM_PREREQUISITES_DUPLICATE_VARIANT
ITEM_PREREQUISITES_EXCEEDED_MAX
ITEM_PREREQUISITES_INVALID_COLLECTION
ITEM_PREREQUISITES_INVALID_PRODUCT
ITEM_PREREQUISITES_INVALID_TYPE
ITEM_PREREQUISITES_INVALID_VARIANT
ITEM_PREREQUISITES_MISSING
ITEM_PREREQUISITES_MUST_BE_EMPTY
LESS_THAN

Input value should be less than maximum allowed value.

LESS_THAN_OR_EQUAL_TO

Input value should be less or equal to maximum allowed value.

MISSING_ARGUMENT

Missing a required argument.

PREREQUISITE_SUBTOTAL_AND_QUANTITY_RANGE_BOTH_PRESENT

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

PRICE_RULE_ALLOCATION_LIMIT_IS_ZERO

Allocation limit must be a non zero positive number.

PRICE_RULE_ALLOCATION_LIMIT_ON_NON_BOGO

Allocation limit can only be set on buy one get one type discounts.

PRICE_RULE_EXCEEDED_MAX_DISCOUNT_CODE

Number of discount codes in the shop has reached its limit.

PRICE_RULE_PERCENTAGE_VALUE_OUTSIDE_RANGE

Percentage value must be between 0 and -100.

SHIPPING_ENTITLEMENTS_DUPLICATE_COUNTRY
SHIPPING_ENTITLEMENTS_EXCEEDED_MAX
SHIPPING_ENTITLEMENTS_INVALID_COUNTRY
SHIPPING_ENTITLEMENTS_INVALID_TARGET_TYPE_OR_SELECTION
SHIPPING_ENTITLEMENTS_MISSING
SHIPPING_ENTITLEMENTS_UNSUPPORTED_DESTINATION_TYPE
SHOP_EXCEEDED_MAX_PRICE_RULES

Number of discounts in the shop has reached its limit.

TAKEN

Input value is already taken.

TOO_LONG

Input value is too long.

TOO_MANY_ARGUMENTS

Too many arguments provided.

TOO_SHORT

Input value is too short.

ALLOCATION_METHOD_MUST_BE_ACROSS_FOR_GIVEN_TARGET_SELECTION

Allocation method must be "across" for the provided target selection.

Types that return PriceRuleErrorCode