PriceRuleErrorCode

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

Show definition

# Possible error codes that could be returned by a price rule mutation.
enum PriceRuleErrorCode {
  # Input value is blank.
  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_SAVED_SEARCH_DUPLICATE
  CUSTOMER_SAVED_SEARCH_EXCEEDED_MAX
  CUSTOMER_SAVED_SEARCH_INVALID
  DISCOUNT_CODE_DUPLICATE
  END_DATE_BEFORE_START_DATE

# Input value should be equal to allowed value. EQUAL_TO

# Input value should be greater than minimum allowed value. GREATER_THAN

# Input value is invalid. 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

# Input value should be less or equal to maximum allowed value. LESS_THAN_OR_EQUAL_TO PREREQUISITE_SUBTOTAL_AND_QUANTITY_RANGE_BOTH_PRESENT PRICE_RULE_ALLOCATION_LIMIT_IS_ZERO PRICE_RULE_ALLOCATION_LIMIT_ON_NON_BOGO PRICE_RULE_EXCEEDED_MAX_DISCOUNT_CODE PRICE_RULE_PERCENTAGE_VALUE_OUTSIDE_RANGE 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

# Input value is already taken. TAKEN

# Input value is too long. TOO_LONG

# Input value is too short. TOO_SHORT VARIANT_ALREADY_ENTITLED_THROUGH_PRODUCT }

Values

VARIANT_ALREADY_ENTITLED_THROUGH_PRODUCT

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_SAVED_SEARCH_DUPLICATE

CUSTOMER_SAVED_SEARCH_EXCEEDED_MAX

CUSTOMER_SAVED_SEARCH_INVALID

DISCOUNT_CODE_DUPLICATE

END_DATE_BEFORE_START_DATE

EQUAL_TO

Input value should be equal to allowed value.

GREATER_THAN

Input value should be greater than minimum allowed value.

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_OR_EQUAL_TO

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

PREREQUISITE_SUBTOTAL_AND_QUANTITY_RANGE_BOTH_PRESENT

PRICE_RULE_ALLOCATION_LIMIT_IS_ZERO

PRICE_RULE_ALLOCATION_LIMIT_ON_NON_BOGO

PRICE_RULE_EXCEEDED_MAX_DISCOUNT_CODE

PRICE_RULE_PERCENTAGE_VALUE_OUTSIDE_RANGE

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

TAKEN

Input value is already taken.

TOO_LONG

Input value is too long.

TOO_SHORT

Input value is too short.

BLANK

Input value is blank.

Sign up for a Partner account to get started.

Sign up