DiscountErrorCode

Version 2019-04

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

Show definition
"""
Possible error codes that could be returned by a discounts mutation.
"""
enum DiscountErrorCode {
  """
  Active period overlaps with other automatic discounts. At any given time, only one automatic discount can be active.
  """
  ACTIVE_PERIOD_OVERLAP
  """
  Input value is blank.
  """
  BLANK
  """
  Cannot select collections if product or variants are selected.
  """
  CANNOT_COMBINE_COLLECTIONS_WITH_PRODUCTS_OR_VARIANTS @deprecated(reason: "This error code has been deprecated to a generic one. See https://docs.google.com/spreadsheets/d/1avBWJUj-2kB19aVQuEbAqcy2BmgyVPudZv9aqss9nDM/edit#gid=0")
  """
  Duplicate collection id present.
  """
  DUPLICATE_COLLECTION @deprecated(reason: "This error code has been deprecated to a generic one. See https://docs.google.com/spreadsheets/d/1avBWJUj-2kB19aVQuEbAqcy2BmgyVPudZv9aqss9nDM/edit#gid=0")
  """
  Duplicate product id present.
  """
  DUPLICATE_PRODUCT @deprecated(reason: "This error code has been deprecated to a generic one. See https://docs.google.com/spreadsheets/d/1avBWJUj-2kB19aVQuEbAqcy2BmgyVPudZv9aqss9nDM/edit#gid=0")
  """
  Duplicate variant id present.
  """
  DUPLICATE_VARIANT @deprecated(reason: "This error code has been deprecated to a generic one. See https://docs.google.com/spreadsheets/d/1avBWJUj-2kB19aVQuEbAqcy2BmgyVPudZv9aqss9nDM/edit#gid=0")
  """
  Cannot target each item when all items selected.
  """
  EACH_MUST_BE_FALSE @deprecated(reason: "This error code has been deprecated to a generic one. See https://docs.google.com/spreadsheets/d/1avBWJUj-2kB19aVQuEbAqcy2BmgyVPudZv9aqss9nDM/edit#gid=0")
  """
  End date should be after start date.
  """
  END_DATE_BEFORE_START_DATE @deprecated(reason: "This error code has been deprecated to a generic one. See https://docs.google.com/spreadsheets/d/1avBWJUj-2kB19aVQuEbAqcy2BmgyVPudZv9aqss9nDM/edit#gid=0")
  """
  Input value should be equal to allowed value.
  """
  EQUAL_TO
  """
  Exceeded maximum allowed value.
  """
  EXCEEDED_MAX
  """
  Exceeded maximum number of collections for this discount.
  """
  EXCEEDED_MAX_COLLECTION @deprecated(reason: "This error code has been deprecated to a generic one. See https://docs.google.com/spreadsheets/d/1avBWJUj-2kB19aVQuEbAqcy2BmgyVPudZv9aqss9nDM/edit#gid=0")
  """
  Exceeded maximum number of discounts for this shop.
  """
  EXCEEDED_MAX_NUMBER_OF_DISCOUNT @deprecated(reason: "This error code has been deprecated to a generic one. See https://docs.google.com/spreadsheets/d/1avBWJUj-2kB19aVQuEbAqcy2BmgyVPudZv9aqss9nDM/edit#gid=0")
  """
  Exceeded maximum number of products for this discount.
  """
  EXCEEDED_MAX_PRODUCT @deprecated(reason: "This error code has been deprecated to a generic one. See https://docs.google.com/spreadsheets/d/1avBWJUj-2kB19aVQuEbAqcy2BmgyVPudZv9aqss9nDM/edit#gid=0")
  """
  Exceeded maximum number of variants for this discount.
  """
  EXCEEDED_MAX_VARIANT @deprecated(reason: "This error code has been deprecated to a generic one. See https://docs.google.com/spreadsheets/d/1avBWJUj-2kB19aVQuEbAqcy2BmgyVPudZv9aqss9nDM/edit#gid=0")
  """
  Input value should be greater than minimum allowed value.
  """
  GREATER_THAN
  """
  Input value should be greater than or equal to minimum allowed value.
  """
  GREATER_THAN_OR_EQUAL_TO
  """
  Unexpected internal error happened.
  """
  INTERNAL_ERROR
  """
  Input value is invalid.
  """
  INVALID
  """
  Invalid collection id present.
  """
  INVALID_COLLECTION @deprecated(reason: "This error code has been deprecated to a generic one. See https://docs.google.com/spreadsheets/d/1avBWJUj-2kB19aVQuEbAqcy2BmgyVPudZv9aqss9nDM/edit#gid=0")
  """
  Invalid product id present.
  """
  INVALID_PRODUCT @deprecated(reason: "This error code has been deprecated to a generic one. See https://docs.google.com/spreadsheets/d/1avBWJUj-2kB19aVQuEbAqcy2BmgyVPudZv9aqss9nDM/edit#gid=0")
  """
  Invalid variant id present.
  """
  INVALID_VARIANT @deprecated(reason: "This error code has been deprecated to a generic one. See https://docs.google.com/spreadsheets/d/1avBWJUj-2kB19aVQuEbAqcy2BmgyVPudZv9aqss9nDM/edit#gid=0")
  """
  Input value should be less than maximum allowed value.
  """
  LESS_THAN
  """
  Input value should be less or equal to maximum allowed value.
  """
  LESS_THAN_OR_EQUAL_TO
  """
  Cannot have both minimum subtotal and quantity present.
  """
  MINIMUM_SUBTOTAL_AND_QUANTITY_RANGE_BOTH_PRESENT
  """
  Missing a required argument.
  """
  MISSING_ARGUMENT
  """
  Input value is not present.
  """
  PRESENT
  """
  Input value is already taken.
  """
  TAKEN
  """
  Input value is too long.
  """
  TOO_LONG
  """
  Too many arguments provided.
  """
  TOO_MANY_ARGUMENTS
  """
  Input value is too short.
  """
  TOO_SHORT
  """
  Value is outside allowed range.
  """
  VALUE_OUTSIDE_RANGE
  """
  Variant is already selected through product.
  """
  VARIANT_ALREADY_SELECTED_THROUGH_PRODUCT @deprecated(reason: "This error code has been deprecated to a generic one. See https://docs.google.com/spreadsheets/d/1avBWJUj-2kB19aVQuEbAqcy2BmgyVPudZv9aqss9nDM/edit#gid=0")
}

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

Version 2019-07 (Latest)

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

Show definition
"""
Possible error codes that could be returned by a discounts mutation.
"""
enum DiscountErrorCode {
  """
  Active period overlaps with other automatic discounts. At any given time, only one automatic discount can be active.
  """
  ACTIVE_PERIOD_OVERLAP
  """
  Input value is blank.
  """
  BLANK
  """
  Attribute selection contains conflicting settings.
  """
  CONFLICT
  """
  Input value is already present.
  """
  DUPLICATE
  """
  Input value should be equal to allowed value.
  """
  EQUAL_TO
  """
  Exceeded maximum allowed value.
  """
  EXCEEDED_MAX
  """
  Input value should be greater than minimum allowed value.
  """
  GREATER_THAN
  """
  Input value should be greater than or equal to minimum allowed value.
  """
  GREATER_THAN_OR_EQUAL_TO
  """
  Value is already present through another selection.
  """
  IMPLICIT_DUPLICATE
  """
  Unexpected internal error happened.
  """
  INTERNAL_ERROR
  """
  Input value is invalid.
  """
  INVALID
  """
  Input value should be less than maximum allowed value.
  """
  LESS_THAN
  """
  Input value should be less or equal to maximum allowed value.
  """
  LESS_THAN_OR_EQUAL_TO
  """
  Cannot have both minimum subtotal and quantity present.
  """
  MINIMUM_SUBTOTAL_AND_QUANTITY_RANGE_BOTH_PRESENT
  """
  Missing a required argument.
  """
  MISSING_ARGUMENT
  """
  Input value is not present.
  """
  PRESENT
  """
  Input value is already taken.
  """
  TAKEN
  """
  Input value is too long.
  """
  TOO_LONG
  """
  Too many arguments provided.
  """
  TOO_MANY_ARGUMENTS
  """
  Input value is too short.
  """
  TOO_SHORT
  """
  Value is outside allowed range.
  """
  VALUE_OUTSIDE_RANGE
}

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.

Version 2019-10 (Release candidate)

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

Show definition
"""
Possible error codes that could be returned by a discounts mutation.
"""
enum DiscountErrorCode {
  """
  Active period overlaps with other automatic discounts. At any given time, only one automatic discount can be active.
  """
  ACTIVE_PERIOD_OVERLAP
  """
  Input value is blank.
  """
  BLANK
  """
  Attribute selection contains conflicting settings.
  """
  CONFLICT
  """
  Input value is already present.
  """
  DUPLICATE
  """
  Input value should be equal to allowed value.
  """
  EQUAL_TO
  """
  Exceeded maximum allowed value.
  """
  EXCEEDED_MAX
  """
  Input value should be greater than minimum allowed value.
  """
  GREATER_THAN
  """
  Input value should be greater than or equal to minimum allowed value.
  """
  GREATER_THAN_OR_EQUAL_TO
  """
  Value is already present through another selection.
  """
  IMPLICIT_DUPLICATE
  """
  Unexpected internal error happened.
  """
  INTERNAL_ERROR
  """
  Input value is invalid.
  """
  INVALID
  """
  Input value should be less than maximum allowed value.
  """
  LESS_THAN
  """
  Input value should be less or equal to maximum allowed value.
  """
  LESS_THAN_OR_EQUAL_TO
  """
  Cannot have both minimum subtotal and quantity present.
  """
  MINIMUM_SUBTOTAL_AND_QUANTITY_RANGE_BOTH_PRESENT
  """
  Missing a required argument.
  """
  MISSING_ARGUMENT
  """
  Input value is not present.
  """
  PRESENT
  """
  Input value is already taken.
  """
  TAKEN
  """
  Input value is too long.
  """
  TOO_LONG
  """
  Too many arguments provided.
  """
  TOO_MANY_ARGUMENTS
  """
  Input value is too short.
  """
  TOO_SHORT
  """
  Value is outside allowed range.
  """
  VALUE_OUTSIDE_RANGE
}

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.

Sign up for a Partner account to get started.

Sign up