stack

Home > @infiniteobjects/shopify-data-manager > AdminTypes > PriceRuleErrorCode

AdminTypes.PriceRuleErrorCode enum

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

Signature:

export declare enum PriceRuleErrorCode 

Enumeration Members

Member Value Description
AllocationMethodMustBeAcrossForGivenTargetSelection "ALLOCATION_METHOD_MUST_BE_ACROSS_FOR_GIVEN_TARGET_SELECTION" The allocation method must be ACROSS for the provided target selection.
AppliesOnNothing "APPLIES_ON_NOTHING" The discount must apply on either one-time purchase or subscription items, or both.
Blank "BLANK" The input value is blank.
BogoInvalidTargetSelection "BOGO_INVALID_TARGET_SELECTION" Invalid BOGO target selection.
BogoInvalidTargetType "BOGO_INVALID_TARGET_TYPE" Invalid BOGO target type.
BogoInvalidValueType "BOGO_INVALID_VALUE_TYPE" Invalid BOGO value type.
BothCustomerAndSavedSearchPrerequisitesSelected "BOTH_CUSTOMER_AND_SAVED_SEARCH_PREREQUISITES_SELECTED" Can’t use both prerequisite customers and saved search.
BothCustomerAndSegmentPrerequisitesSelected "BOTH_CUSTOMER_AND_SEGMENT_PREREQUISITES_SELECTED" Can’t have both prerequisite customers and prerequisite segments.
BothSavedSearchAndSegmentPrerequisitesSelected "BOTH_SAVED_SEARCH_AND_SEGMENT_PREREQUISITES_SELECTED" Can’t have both saved searches and segments prerequisites.
CannotEntitleCollectionsWithProductsOrVariants "CANNOT_ENTITLE_COLLECTIONS_WITH_PRODUCTS_OR_VARIANTS" Can’t entitle collections in combination with product variants or products.
CannotPrerequisiteCollectionWithProductOrVariants "CANNOT_PREREQUISITE_COLLECTION_WITH_PRODUCT_OR_VARIANTS" Can’t use collections as a prequisite in combination with product variants or products.
CustomerPrerequisiteDuplicate "CUSTOMER_PREREQUISITE_DUPLICATE" A duplicate customer prerequisite ID exists.
CustomerPrerequisitesExceededMax "CUSTOMER_PREREQUISITES_EXCEEDED_MAX" The customer prerequisites exceeded the maximum number.
CustomerPrerequisitesInvalidSelection "CUSTOMER_PREREQUISITES_INVALID_SELECTION" Invalid customer prerequisites selection.
CustomerPrerequisitesMissing "CUSTOMER_PREREQUISITES_MISSING" Customer prerequisites are missing.
CustomerSavedSearchDuplicate "CUSTOMER_SAVED_SEARCH_DUPLICATE" A duplicate customer saved search exists.
CustomerSavedSearchExceededMax "CUSTOMER_SAVED_SEARCH_EXCEEDED_MAX" The customer saved search exceeded the maximum number.
CustomerSavedSearchInvalid "CUSTOMER_SAVED_SEARCH_INVALID" Invalid customer saved search.
CustomerSegmentExceededMax "CUSTOMER_SEGMENT_EXCEEDED_MAX" The customer segment prerequisites exceeded the maximum number.
CustomerSegmentInvalid "CUSTOMER_SEGMENT_INVALID" The customer segment prerequisite ID is invalid.
CustomerSegmentPrerequisiteDuplicate "CUSTOMER_SEGMENT_PREREQUISITE_DUPLICATE" A duplicate customer segment prerequisite ID exists.
DiscountCodeDuplicate "DISCOUNT_CODE_DUPLICATE" A duplicate discount code exists.
EndDateBeforeStartDate "END_DATE_BEFORE_START_DATE" The discount end date must be after the start date.
EqualTo "EQUAL_TO" The input value should be equal to the value allowed.
ExceededMax "EXCEEDED_MAX" Can’t exceed the maximum number.
GreaterThan "GREATER_THAN" The input value should be greater than the minimum allowed value.
GreaterThanOrEqualTo "GREATER_THAN_OR_EQUAL_TO" The input value should be greater than or equal to the minimum value allowed.
InternalError "INTERNAL_ERROR" Unexpected internal error happened.
Invalid "INVALID" The input value is invalid.
InvalidCombinesWithForDiscountClass "INVALID_COMBINES_WITH_FOR_DISCOUNT_CLASS" The combinesWith settings are invalid for the discount class.
InvalidDiscountClassForPriceRule "INVALID_DISCOUNT_CLASS_FOR_PRICE_RULE" The discountClass is invalid for the price rule.
InvalidTargetTypePrerequisiteShippingPriceRange "INVALID_TARGET_TYPE_PREREQUISITE_SHIPPING_PRICE_RANGE" The target type is invalid when defining a prerequisite shipping price range.
ItemEntitlementInvalidType "ITEM_ENTITLEMENT_INVALID_TYPE" Invalid entitlement type.
ItemEntitlementsDuplicateCollection "ITEM_ENTITLEMENTS_DUPLICATE_COLLECTION" Can’t add the same collection twice.
ItemEntitlementsDuplicateProduct "ITEM_ENTITLEMENTS_DUPLICATE_PRODUCT" Can’t add the same product twice.
ItemEntitlementsDuplicateVariant "ITEM_ENTITLEMENTS_DUPLICATE_VARIANT" Can’t add the same collection twice.
ItemEntitlementsExceededMaxCollection "ITEM_ENTITLEMENTS_EXCEEDED_MAX_COLLECTION" Can’t exceed the maximum number of collection entitlements.
ItemEntitlementsExceededMaxProduct "ITEM_ENTITLEMENTS_EXCEEDED_MAX_PRODUCT" Can’t exceed the maximum number of product entitlements.
ItemEntitlementsExceededMaxVariant "ITEM_ENTITLEMENTS_EXCEEDED_MAX_VARIANT" Can’t exceed the maximum number of variant entitlements.
ItemEntitlementsInvalidCollection "ITEM_ENTITLEMENTS_INVALID_COLLECTION" Invalid collection.
ItemEntitlementsInvalidProduct "ITEM_ENTITLEMENTS_INVALID_PRODUCT" Invalid product.
ItemEntitlementsInvalidTargetTypeOrSelection "ITEM_ENTITLEMENTS_INVALID_TARGET_TYPE_OR_SELECTION" Invalid combination of target type and selection.
ItemEntitlementsInvalidVariant "ITEM_ENTITLEMENTS_INVALID_VARIANT" Invalid variant.
ItemEntitlementsMissing "ITEM_ENTITLEMENTS_MISSING" Entitlements are missing.
ItemPrerequisitesDuplicateCollection "ITEM_PREREQUISITES_DUPLICATE_COLLECTION" Can’t add the same collection twice.
ItemPrerequisitesDuplicateProduct "ITEM_PREREQUISITES_DUPLICATE_PRODUCT" Can’t add the same product twice.
ItemPrerequisitesDuplicateVariant "ITEM_PREREQUISITES_DUPLICATE_VARIANT" Can’t add the same variant twice.
ItemPrerequisitesExceededMax "ITEM_PREREQUISITES_EXCEEDED_MAX" Can’t exceed the maximum number of item prerequisites.
ItemPrerequisitesInvalidCollection "ITEM_PREREQUISITES_INVALID_COLLECTION" Invalid collection.
ItemPrerequisitesInvalidProduct "ITEM_PREREQUISITES_INVALID_PRODUCT" Invalid product.
ItemPrerequisitesInvalidType "ITEM_PREREQUISITES_INVALID_TYPE" Invalid type.
ItemPrerequisitesInvalidVariant "ITEM_PREREQUISITES_INVALID_VARIANT" Invalid variant.
ItemPrerequisitesMissing "ITEM_PREREQUISITES_MISSING" Item prerequisites must have at least one item prerequisite if the prerequisite quantity ratio is defined.
ItemPrerequisitesMustBeEmpty "ITEM_PREREQUISITES_MUST_BE_EMPTY" Item prerequisites must be empty if the prerequisite quantity ratio isn’t defined.
LessThan "LESS_THAN" The input value should be less than the maximum value allowed.
LessThanOrEqualTo "LESS_THAN_OR_EQUAL_TO" The input value should be less than or equal to the maximum value allowed.
MissingArgument "MISSING_ARGUMENT" Missing a required argument.
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.
PrerequisiteSubtotalAndQuantityRangeBothPresent "PREREQUISITE_SUBTOTAL_AND_QUANTITY_RANGE_BOTH_PRESENT" Only one of the minimum subtotal or minimum quantity condition can be defined.
PriceRuleAllocationLimitIsZero "PRICE_RULE_ALLOCATION_LIMIT_IS_ZERO" The allocation limit must be a non-zero positive number.
PriceRuleAllocationLimitOnNonBogo "PRICE_RULE_ALLOCATION_LIMIT_ON_NON_BOGO" The allocation limit can only be set on Buy x, get y (BXGY) discounts.
PriceRuleExceededMaxDiscountCode "PRICE_RULE_EXCEEDED_MAX_DISCOUNT_CODE" The number of discount codes in the shop has reached its limit.
PriceRulePercentageValueOutsideRange "PRICE_RULE_PERCENTAGE_VALUE_OUTSIDE_RANGE" The percentage value must be between 0 and -100.
ShippingEntitlementsDuplicateCountry "SHIPPING_ENTITLEMENTS_DUPLICATE_COUNTRY" A duplicate country code exists.
ShippingEntitlementsExceededMax "SHIPPING_ENTITLEMENTS_EXCEEDED_MAX" Can’t exceed the maximum number of entitlements.
ShippingEntitlementsInvalidCountry "SHIPPING_ENTITLEMENTS_INVALID_COUNTRY" The country is unknown.
ShippingEntitlementsInvalidTargetTypeOrSelection "SHIPPING_ENTITLEMENTS_INVALID_TARGET_TYPE_OR_SELECTION" Invalid target type or selection.
ShippingEntitlementsMissing "SHIPPING_ENTITLEMENTS_MISSING" Missing entitlements.
ShippingEntitlementsUnsupportedDestinationType "SHIPPING_ENTITLEMENTS_UNSUPPORTED_DESTINATION_TYPE" Unsupported destination type.
ShopExceededMaxPriceRules "SHOP_EXCEEDED_MAX_PRICE_RULES" The number of discounts in the shop has reached its limit.
Taken "TAKEN" The input value is already taken.
TooLong "TOO_LONG" The input value is too long.
TooManyArguments "TOO_MANY_ARGUMENTS" Too many arguments provided.
TooShort "TOO_SHORT" The input value is too short.
VariantAlreadyEntitledThroughProduct "VARIANT_ALREADY_ENTITLED_THROUGH_PRODUCT" The variant is already entitled through a product.