Skip to main content
enum

Possible error codes that can be returned by CartUserError.

Anchor to ADDRESS_FIELD_CONTAINS_EMOJISADDRESS_FIELD_CONTAINS_EMOJIS

The specified address field contains emojis.

Anchor to ADDRESS_FIELD_CONTAINS_HTML_TAGSADDRESS_FIELD_CONTAINS_HTML_TAGS

The specified address field contains HTML tags.

Anchor to ADDRESS_FIELD_CONTAINS_URLADDRESS_FIELD_CONTAINS_URL

The specified address field contains a URL.

Anchor to ADDRESS_FIELD_DOES_NOT_MATCH_EXPECTED_PATTERNADDRESS_FIELD_DOES_NOT_MATCH_EXPECTED_PATTERN

The specified address field does not match the expected pattern.

Anchor to ADDRESS_FIELD_IS_REQUIREDADDRESS_FIELD_IS_REQUIRED

The specified address field is required.

Anchor to ADDRESS_FIELD_IS_TOO_LONGADDRESS_FIELD_IS_TOO_LONG

The specified address field is too long.

The input value is invalid.

Anchor to INVALID_COMPANY_LOCATIONINVALID_COMPANY_LOCATION

Company location not found or not allowed.

Anchor to INVALID_DELIVERY_ADDRESS_IDINVALID_DELIVERY_ADDRESS_ID

The delivery address was not found.

Anchor to INVALID_DELIVERY_GROUPINVALID_DELIVERY_GROUP

Delivery group was not found in cart.

Anchor to INVALID_DELIVERY_OPTIONINVALID_DELIVERY_OPTION

Delivery option was not valid.

The quantity must be a multiple of the specified increment.

Anchor to INVALID_MERCHANDISE_LINEINVALID_MERCHANDISE_LINE

Merchandise line was not found in cart.

The metafields were not valid.

Anchor to INVALID_ZIP_CODE_FOR_COUNTRYINVALID_ZIP_CODE_FOR_COUNTRY

The given zip code is invalid for the provided country.

Anchor to INVALID_ZIP_CODE_FOR_PROVINCEINVALID_ZIP_CODE_FOR_PROVINCE

The given zip code is invalid for the provided province.

The input value should be less than the maximum value allowed.

The quantity must be below the specified maximum for the item.

The quantity must be above the specified minimum for the item.

Anchor to MISSING_CUSTOMER_ACCESS_TOKENMISSING_CUSTOMER_ACCESS_TOKEN

The customer access token is required when setting a company location.

Anchor to MISSING_DISCOUNT_CODEMISSING_DISCOUNT_CODE

Missing discount code.

Missing note.

The note length must be below the specified maximum.

Anchor to ONLY_ONE_DELIVERY_ADDRESS_CAN_BE_SELECTEDONLY_ONE_DELIVERY_ADDRESS_CAN_BE_SELECTED

Only one delivery address can be selected.

The given province cannot be found.

Anchor to TOO_MANY_DELIVERY_ADDRESSESTOO_MANY_DELIVERY_ADDRESSES

Too many delivery addresses on Cart.

Anchor to UNSPECIFIED_ADDRESS_ERRORUNSPECIFIED_ADDRESS_ERROR

A general error occurred during address validation.

Validation failed.

Anchor to ZIP_CODE_NOT_SUPPORTEDZIP_CODE_NOT_SUPPORTED

The given zip code is unsupported.


Was this section helpful?


Was this section helpful?