Skip to main content
Anchor to GiftCardProductSetUserErrorCode

GiftCardProductSetUserErrorCode

enum

Possible error codes that can be returned by GiftCardProductSetUserError.

Anchor to BARCODE_CHECKSUM_VALIDATION_FAILEDBARCODE_CHECKSUM_VALIDATION_FAILED

Barcode checksum validation failed.

Anchor to BARCODE_VALUE_TOO_LONGBARCODE_VALUE_TOO_LONG

Barcode value is too long.

Barcode value cannot be blank.

Anchor to CANNOT_COMBINE_LINKED_AND_NONLINKED_OPTION_VALUESCANNOT_COMBINE_LINKED_AND_NONLINKED_OPTION_VALUES

An option cannot have both metafield linked and nonlinked option values.

Anchor to CAPABILITY_VIOLATIONCAPABILITY_VIOLATION

The metafield violates a capability restriction.

Anchor to DUPLICATE_BARCODE_VALUEDUPLICATE_BARCODE_VALUE

Duplicate barcode value within the same variant.

Anchor to DUPLICATE_LINKED_OPTIONDUPLICATE_LINKED_OPTION

Cannot link multiple options to the same metafield.

Anchor to DUPLICATED_METAFIELD_VALUEDUPLICATED_METAFIELD_VALUE

Duplicated metafield value for linked option.

Anchor to DUPLICATED_OPTION_NAMEDUPLICATED_OPTION_NAME

Duplicated option name.

Anchor to DUPLICATED_OPTION_VALUEDUPLICATED_OPTION_VALUE

Duplicated option value.

Duplicated value.

Something went wrong, please try again.

Anchor to GIFT_CARD_ATTRIBUTE_CANNOT_BE_CHANGEDGIFT_CARD_ATTRIBUTE_CANNOT_BE_CHANGED

The product gift_card attribute cannot be changed after creation.

Anchor to GIFT_CARDS_NOT_ACTIVATEDGIFT_CARDS_NOT_ACTIVATED

Gift card products can only be created after they have been activated.

Handle already in use. Please provide a new handle.

The id field is not allowed if identifier is provided.

Anchor to INCOMPATIBLE_BARCODE_FIELDSINCOMPATIBLE_BARCODE_FIELDS

Cannot provide both 'barcode' and 'barcodes' for the same variant.

The identifier value does not match the value of the corresponding field in the input.

Anchor to INVALID_BARCODE_CHARACTERSINVALID_BARCODE_CHARACTERS

Barcode value contains invalid characters for its type.

Anchor to INVALID_BARCODE_LENGTHINVALID_BARCODE_LENGTH

Barcode value has an invalid length for its type.

Anchor to INVALID_BARCODE_PREFIXINVALID_BARCODE_PREFIX

Barcode value has an invalid prefix for its type.

Anchor to INVALID_BARCODE_SEPARATORSINVALID_BARCODE_SEPARATORS

Barcode value contains invalid spaces or hyphens for its type.

Anchor to INVALID_BARCODE_TYPEINVALID_BARCODE_TYPE

Barcode type is not supported. Allowed barcode types are: upc, ean, isbn, gtin, asin.

Input is not valid.

Metafield is not valid.

Anchor to INVALID_METAFIELD_VALUE_FOR_LINKED_OPTIONINVALID_METAFIELD_VALUE_FOR_LINKED_OPTION

Invalid metafield value for linked option.

Product is not valid.

Product variant is not valid.

Error processing request in the background job.

Anchor to LINKED_METAFIELD_DEFINITION_NOT_FOUNDLINKED_METAFIELD_DEFINITION_NOT_FOUND

No valid metafield definition found for linked option.

Anchor to LINKED_OPTIONS_NOT_SUPPORTED_FOR_SHOPLINKED_OPTIONS_NOT_SUPPORTED_FOR_SHOP

Linked options are currently not supported for this shop.

The input argument metafields (if present) must contain the customId value.

Anchor to MISSING_FIELD_REQUIREDMISSING_FIELD_REQUIRED

The input field corresponding to the identifier is required.

Resource matching the identifier was not found.

Anchor to OPTION_DOES_NOT_EXISTOPTION_DOES_NOT_EXIST

Option does not exist.

Anchor to OPTION_VALUE_DOES_NOT_EXISTOPTION_VALUE_DOES_NOT_EXIST

Option value does not exist.

Anchor to OPTION_VALUES_MISSINGOPTION_VALUES_MISSING

Each option must have at least one option value specified.

Anchor to OPTION_VALUES_OVER_LIMITOPTION_VALUES_OVER_LIMIT

Option values over limit.

Options over limit.

Anchor to PRODUCT_DOES_NOT_EXISTPRODUCT_DOES_NOT_EXIST

Product does not exist.

Anchor to PRODUCT_MUST_BE_GIFT_CARDPRODUCT_MUST_BE_GIFT_CARD

The specified product is not a gift card. The giftCardProductSet mutation can only be used with gift card products.

Anchor to PRODUCT_OPTIONS_INPUT_MISSINGPRODUCT_OPTIONS_INPUT_MISSING

Must specify product options when updating variants.

Product is suspended.

Anchor to PRODUCT_VARIANT_DOES_NOT_EXISTPRODUCT_VARIANT_DOES_NOT_EXIST

Product variant does not exist.

Can only specify a maximum of 20 barcodes per variant.

Anchor to VARIANTS_INPUT_MISSINGVARIANTS_INPUT_MISSING

Must specify variants when updating options.

Number of product variants exceeds shop limit.


Was this section helpful?

•OBJECT

Defines errors for GiftCardProductSet mutation.


Was this section helpful?