Skip to main content
Log inSign up
Anchor to ProductSetUserErrorCode

ProductSetUserErrorCode

enum

Possible error codes that can be returned by ProductSetUserError.

Anchor to CAPABILITY_VIOLATIONCAPABILITY_VIOLATION
•

The metafield violates a capability restriction.

Anchor to DUPLICATED_OPTION_NAMEDUPLICATED_OPTION_NAME
•

Duplicated option name.

Anchor to DUPLICATED_OPTION_VALUEDUPLICATED_OPTION_VALUE
•

Duplicated option 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.

•

Input is not valid.

•

Metafield is not valid.

•

Product is not valid.

•

Product variant is not valid.

•

Error processing request in the background job.

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_OPTIONS_INPUT_MISSINGPRODUCT_OPTIONS_INPUT_MISSING
•

Must specify product options when updating variants.

Anchor to PRODUCT_VARIANT_DOES_NOT_EXISTPRODUCT_VARIANT_DOES_NOT_EXIST
•

Product variant does not exist.

Anchor to VARIANTS_INPUT_MISSINGVARIANTS_INPUT_MISSING
•

Must specify variants when updating options.

•

Number of product variants exceeds shop limit.


Was this section helpful?


Was this section helpful?