DiscountErrorCode enum

Version 2020-04 (Release candidate)

Possible error codes that could be returned by a discounts mutation.

Values

VALUE_OUTSIDE_RANGE

Value is outside allowed range.

BLANK

Input value is blank.

CONFLICT

Attribute selection contains conflicting settings.

DUPLICATE

Input value is already present.

EQUAL_TO

Input value should be equal to allowed value.

EXCEEDED_MAX

Exceeded maximum allowed value.

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.

IMPLICIT_DUPLICATE

Value is already present through another selection.

INTERNAL_ERROR

Unexpected internal error happened.

INVALID

Input value is invalid.

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.

MINIMUM_SUBTOTAL_AND_QUANTITY_RANGE_BOTH_PRESENT

Cannot have both minimum subtotal and quantity present.

MISSING_ARGUMENT

Missing a required argument.

PRESENT

Input value is not present.

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.

ACTIVE_PERIOD_OVERLAP

Active period overlaps with other automatic discounts. At any given time, only one automatic discount can be active.

Types that return DiscountErrorCode

Version 2020-01 (Latest)

Possible error codes that could be returned by a discounts mutation.

Values

VALUE_OUTSIDE_RANGE

Value is outside allowed range.

BLANK

Input value is blank.

CONFLICT

Attribute selection contains conflicting settings.

DUPLICATE

Input value is already present.

EQUAL_TO

Input value should be equal to allowed value.

EXCEEDED_MAX

Exceeded maximum allowed value.

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.

IMPLICIT_DUPLICATE

Value is already present through another selection.

INTERNAL_ERROR

Unexpected internal error happened.

INVALID

Input value is invalid.

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.

MINIMUM_SUBTOTAL_AND_QUANTITY_RANGE_BOTH_PRESENT

Cannot have both minimum subtotal and quantity present.

MISSING_ARGUMENT

Missing a required argument.

PRESENT

Input value is not present.

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.

ACTIVE_PERIOD_OVERLAP

Active period overlaps with other automatic discounts. At any given time, only one automatic discount can be active.

Types that return DiscountErrorCode

Version 2019-10

Possible error codes that could be returned by a discounts mutation.

Values

VALUE_OUTSIDE_RANGE

Value is outside allowed range.

BLANK

Input value is blank.

CONFLICT

Attribute selection contains conflicting settings.

DUPLICATE

Input value is already present.

EQUAL_TO

Input value should be equal to allowed value.

EXCEEDED_MAX

Exceeded maximum allowed value.

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.

IMPLICIT_DUPLICATE

Value is already present through another selection.

INTERNAL_ERROR

Unexpected internal error happened.

INVALID

Input value is invalid.

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.

MINIMUM_SUBTOTAL_AND_QUANTITY_RANGE_BOTH_PRESENT

Cannot have both minimum subtotal and quantity present.

MISSING_ARGUMENT

Missing a required argument.

PRESENT

Input value is not present.

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.

ACTIVE_PERIOD_OVERLAP

Active period overlaps with other automatic discounts. At any given time, only one automatic discount can be active.

Types that return DiscountErrorCode

Version 2019-07

Possible error codes that could be returned by a discounts mutation.

Values

VALUE_OUTSIDE_RANGE

Value is outside allowed range.

BLANK

Input value is blank.

CONFLICT

Attribute selection contains conflicting settings.

DUPLICATE

Input value is already present.

EQUAL_TO

Input value should be equal to allowed value.

EXCEEDED_MAX

Exceeded maximum allowed value.

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.

IMPLICIT_DUPLICATE

Value is already present through another selection.

INTERNAL_ERROR

Unexpected internal error happened.

INVALID

Input value is invalid.

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.

MINIMUM_SUBTOTAL_AND_QUANTITY_RANGE_BOTH_PRESENT

Cannot have both minimum subtotal and quantity present.

MISSING_ARGUMENT

Missing a required argument.

PRESENT

Input value is not present.

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.

ACTIVE_PERIOD_OVERLAP

Active period overlaps with other automatic discounts. At any given time, only one automatic discount can be active.

Types that return DiscountErrorCode

Version 2019-04

Possible error codes that could be returned by a discounts mutation.

Values

ACTIVE_PERIOD_OVERLAP

Active period overlaps with other automatic discounts. At any given time, only one automatic discount can be active.

BLANK

Input value is blank.

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.

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.

MINIMUM_SUBTOTAL_AND_QUANTITY_RANGE_BOTH_PRESENT

Cannot have both minimum subtotal and quantity present.

MISSING_ARGUMENT

Missing a required argument.

PRESENT

Input value is not present.

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.

VALUE_OUTSIDE_RANGE

Value is outside allowed range.

EQUAL_TO

Input value should be equal to allowed value.

EXCEEDED_MAX

Exceeded maximum allowed value.

INVALID_PRODUCT deprecated

Invalid product id present.

Deprecation warning

This error code has been deprecated to a generic one. See https://docs.google.com/spreadsheets/d/1avBWJUj-2kB19aVQuEbAqcy2BmgyVPudZv9aqss9nDM/edit#gid=0

DUPLICATE_COLLECTION deprecated

Duplicate collection id present.

Deprecation warning

This error code has been deprecated to a generic one. See https://docs.google.com/spreadsheets/d/1avBWJUj-2kB19aVQuEbAqcy2BmgyVPudZv9aqss9nDM/edit#gid=0

DUPLICATE_PRODUCT deprecated

Duplicate product id present.

Deprecation warning

This error code has been deprecated to a generic one. See https://docs.google.com/spreadsheets/d/1avBWJUj-2kB19aVQuEbAqcy2BmgyVPudZv9aqss9nDM/edit#gid=0

DUPLICATE_VARIANT deprecated

Duplicate variant id present.

Deprecation warning

This error code has been deprecated to a generic one. See https://docs.google.com/spreadsheets/d/1avBWJUj-2kB19aVQuEbAqcy2BmgyVPudZv9aqss9nDM/edit#gid=0

EACH_MUST_BE_FALSE deprecated

Cannot target each item when all items selected.

Deprecation warning

This error code has been deprecated to a generic one. See https://docs.google.com/spreadsheets/d/1avBWJUj-2kB19aVQuEbAqcy2BmgyVPudZv9aqss9nDM/edit#gid=0

END_DATE_BEFORE_START_DATE deprecated

End date should be after start date.

Deprecation warning

This error code has been deprecated to a generic one. See https://docs.google.com/spreadsheets/d/1avBWJUj-2kB19aVQuEbAqcy2BmgyVPudZv9aqss9nDM/edit#gid=0

INVALID_VARIANT deprecated

Invalid variant id present.

Deprecation warning

This error code has been deprecated to a generic one. See https://docs.google.com/spreadsheets/d/1avBWJUj-2kB19aVQuEbAqcy2BmgyVPudZv9aqss9nDM/edit#gid=0

VARIANT_ALREADY_SELECTED_THROUGH_PRODUCT deprecated

Variant is already selected through product.

Deprecation warning

This error code has been deprecated to a generic one. See https://docs.google.com/spreadsheets/d/1avBWJUj-2kB19aVQuEbAqcy2BmgyVPudZv9aqss9nDM/edit#gid=0

EXCEEDED_MAX_COLLECTION deprecated

Exceeded maximum number of collections for this discount.

Deprecation warning

This error code has been deprecated to a generic one. See https://docs.google.com/spreadsheets/d/1avBWJUj-2kB19aVQuEbAqcy2BmgyVPudZv9aqss9nDM/edit#gid=0

EXCEEDED_MAX_NUMBER_OF_DISCOUNT deprecated

Exceeded maximum number of discounts for this shop.

Deprecation warning

This error code has been deprecated to a generic one. See https://docs.google.com/spreadsheets/d/1avBWJUj-2kB19aVQuEbAqcy2BmgyVPudZv9aqss9nDM/edit#gid=0

EXCEEDED_MAX_PRODUCT deprecated

Exceeded maximum number of products for this discount.

Deprecation warning

This error code has been deprecated to a generic one. See https://docs.google.com/spreadsheets/d/1avBWJUj-2kB19aVQuEbAqcy2BmgyVPudZv9aqss9nDM/edit#gid=0

EXCEEDED_MAX_VARIANT deprecated

Exceeded maximum number of variants for this discount.

Deprecation warning

This error code has been deprecated to a generic one. See https://docs.google.com/spreadsheets/d/1avBWJUj-2kB19aVQuEbAqcy2BmgyVPudZv9aqss9nDM/edit#gid=0

INVALID_COLLECTION deprecated

Invalid collection id present.

Deprecation warning

This error code has been deprecated to a generic one. See https://docs.google.com/spreadsheets/d/1avBWJUj-2kB19aVQuEbAqcy2BmgyVPudZv9aqss9nDM/edit#gid=0

CANNOT_COMBINE_COLLECTIONS_WITH_PRODUCTS_OR_VARIANTS deprecated

Cannot select collections if product or variants are selected.

Deprecation warning

This error code has been deprecated to a generic one. See https://docs.google.com/spreadsheets/d/1avBWJUj-2kB19aVQuEbAqcy2BmgyVPudZv9aqss9nDM/edit#gid=0

Types that return DiscountErrorCode